App template
Database
Linked tables in a typed grid with every field kind, saved views as a table, board, list, calendar or form, and records on their own pages.
Use this template
Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.
npx shadcn@latest add checkfu/uicontext/tables- Run itLoad from your page’s script. It builds the app with
createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, renderTables, which brings its own in-memory router. - Connect your backendEvery read and write goes through
Basein . Implement it over your API and pointBaseLiveat your Layer. - Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .
Screens
Home
/The first table on its first saved view.
Table
/tables/:tableA typed grid over one table, with the field editor and the docked assistant.
Saved view
/tables/:table/views/:viewAny saved view: a table, board, list, calendar or intake form.
Record
/tables/:table/records/:idOne record editable in place, with its linked records as links.
Where your backend plugs in
Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Base service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:
export const BaseLive = Base.sample
// becomes your Layer, such as
export const BaseLive = Layer.effect(Base, makeHttpBase)The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.
What to delete
- services/seed.ts, and Base.sample in services/Base.ts
- The assistant, if your app has none: the panel in App.ts and its queries
To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .