Create or connect a project
Use Create your first app to create the backend and frontend. Runbijection dev from the project directory to work on them
together.
The dev loop
An app is one tree of declarations.bijection/app.ts exports
app(tree), and every name in the app is a path in that tree: the table
notes.items, the query notes.list. A function with allow is exposed at
its path. A function without allow is internal.
bijection/notes.ts
bijection/app.ts
bijection dev installs the changed tree on your
development deployment. The client is typed from the tree itself
(api<typeof App>()), so your frontend’s TypeScript follows the same
change with no generated bindings.
Before you commit
- Run
bijection check. It checks the tree’s types, the lexicon and every label flow, and analyzes your guards. - If the app’s exposure or authority changed, run
bijection check --write-lock, review thebijection.lockdiff and commit it with the source.bijection devrewrites it on save and prints the diff. Deploy refuses a stale lock. - Run your tests on the real kernel
with
kernel(app).