View code β the payoff
Why. The last item on the rail turns your model into a technical blueprint β a strong starting point for developers.
How. The View code panel presents your model across tabs: data types, an API, on-screen structure, permissions, processes, agents, and deployment. The toolbar groups three things:
- Check β have an AI review, auto-fix, and test the generated code.
- Run app β boot the generated app locally and open it in a new browser tab (see below).
- Export β download just the scaffold, a runnable app with AI-written logic, or the whole Full-Stack project as a zip.
It's scaffolding, not the finished software β a base that developers extend by hand.
Run app β see the outcome before you exportβ
Click βΆ Run app to actually use the software your model describes, before you commit to it. Kiln starts the generated app on your own machine and opens it in a new tab: a working admin UI with a screen per entity, typed create forms, the actions (commands) you modelled, and a live event log β backed by a real database, so records you create persist and commands fire real events.
This closes the loop: describe β adjust the model β run it β see the result β export. It needs the local service running (you'll see "Server" storage in the sidebar) and Node β₯ 22, and it works fully offline β no account, no cloud, no build step. The preview is a fast, dependency-light stand-in for the polished client in the export; use Export β Full-Stack when you're ready to hand it to developers.
The exported repo carries a complete model.json β every layer of your business as one versionable
document. It's the durable record the generated code (and any regeneration) is built from. Commit it to
git; import it to recall and iterate. See Protecting your fixes.