Skip to main content
Version: 0.4.1

The model is the files

A model is every .kq file under the model/ folder of a repository, subdirectories included, read together as one. A repository is a directory holding a kanoniq.repository.json file, and the model takes that directory's name. kq init makes one, with model/ for the model and portal/ for the navigation pages. A model holds no other: a second kanoniq.repository.json anywhere under model/ is an error on that file, KB056, and the model does not build until it moves. The file also holds the repository's permanent id and its settings, among them what the portal generates (see The auto-generated landscape), the properties its models may give an element (see Open properties), and how strictly its policies are checked (see Governance). It is JSON with // and /* … */ comments, which VS Code shows as comments once the Kanoniq extension is installed; a trailing comma is still an error, KB057.

Which file a declaration sits in means nothing, but for a scoped file, which is read inside the element its folder names. A connection in one file may name a component declared in another, in any folder. Split a model by ecosystem, by team or by whatever is convenient to review. Directories whose name starts with ., and node_modules, are skipped.

The .kq files in git are the model. Nothing else is: the .model.json that kq build writes, every view and every export can be rebuilt from them. There is no database to keep in step.

Next​

  • Three sides: function, application, and motivation and strategy.
  • Skip to install, and come back to the concepts when you need them.

© 2026 Extenza Works. All rights reserved.