Kanoniq documentation
One model.
Every diagram derived from it.
Write your architecture once, as elements and relationships in plain-text .kq files kept in git. Kanoniq builds, checks and draws every view from that one model.
All models are wrong, but some are useful.
How to model with Kanoniq: write an architecture in .kq files, check it, and see it drawn.
Kanoniq is an architecture repository built on one canonical model. You state each element and relationship once, in plain-text files kept in git beside your code, and every view is drawn from them. A view holds no data of its own, so it never disagrees with the model.
What Kanoniq does
- Write a model in the
.kqlanguage: ecosystems, domains and functions; platforms, components and their interfaces; brokers and channels; storages and the data they hold. - Check it against over a hundred rules, as you type in VS Code and with
kq validatein CI. - Keep its identity. Every element has an Id that survives renaming and moving, kept in a file Kanoniq writes for you.
- See it in VS Code beside the editor: each Domain's layered view, the whole model through lenses, and an entity-relationship diagram of a Domain's data. Export a view as PNG or SVG.
- Publish it as a static site of navigation pages, each opening a view already set up.
What's new
Kanoniq 0.4.1, released on 2026-11-02:
- A built portal names no machine's folders.
Every release: Release notes.
Start here
- Get started: install Kanoniq, write a first model, build it and see it.
- Concepts: what a model is, how elements are named and identified, and what is written, added or drawn.
- Views and notation: what Kanoniq draws, and how to move around in it.
- Working in VS Code: what the extension does as you write.
Reference
- Language areas: its areas, and in each what every element means and how to write it.
- Assumptions: marking what you have not checked with
#assumed, and where it shows. - What
kq buildadds: the elements Kanoniq adds for you, orphans, andkq prune. - The
kqcommand line:init,build,validate,audit,prune,fmt,arrange,materialize,dissolve,guide,license,login,logout,svg,pngandportal:build. - The portal: pages of tiles in your repository's
portal/folder, and the sitekq portal:buildmakes of them. - Validation: every rule, what it reports and how to fix it.
- Your license: which features need one, and where Kanoniq finds it.
© 2026 Extenza Works. All rights reserved.