No magic#
Kiln avoids hidden behavior. When a feature needs a convention, the convention is written in the file tree, a named export, or a documented option.
What you can read#
- Routes: the file tree and
kiln routes. - Rendering: the filename suffix.
- Titles: the
<kiln:title>tag in the page. - Loaders: a named
loaderexport. - Handlers: named HTTP method exports in
app/api.
What is generated#
Kiln writes a small set of files into .kiln/ when it runs. These are default entries for the client and server, and type declarations for <kiln:title>. Your app can replace the entries by creating app/client.tsx or app/server.ts. The generated files are listed in .gitignore and are never edited by hand.
What is injected#
The Vite plugin adds a prelude to the entry files that stores the route table on globalThis. This is the only injection. You can see it in the built output, and you never import the route table yourself.

