All blocks

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.

10 records
CompanyStageOwnerIndustryARRWin chanceHealthEmployeesWebsiteContactsPeopleARR per seatRenewalLast touchChampionContracts
1Morrow StudioWonICIris ChenDesign$48,000100%★★★★★28morrow.exampleAvery Grant1$1,714Jan 16Nov 26Master agreement.pdfOrder form.pdf
2FieldworkNegotiationTRTheo RobinsonSoftware$126,00070%★★★★★74fieldwork.exampleSamira DesaiGrace Liu2$1,703Dec 20Nov 25Master agreement.pdfOrder form.pdf
3Common ThreadProposalLOLena OrtizRetail$88,00045%★★★★★103commonthread.exampleOwen Brooks1$854Feb 5Nov 24
4NorthlineQualifiedRelay (agent)Logistics–30%★★★★★0northline.exampleLucas Meyer1#ERRORNov 23
5Pollen LabsWonICIris ChenResearch$32,000100%★★★★★16pollen.exampleMiles Park1$2,000Dec 11Nov 22Master agreement.pdfOrder form.pdf
6Paper PlaneLeadTRTheo RobinsonEducation$21,00010%★★★★★42paperplane.exampleJulian Rivera1$500Nov 20
7WayfinderNegotiationLOLena OrtizLogistics$240,00065%★★★★★210wayfinder.exampleSydney Hall1$1,143Dec 24Nov 19Master agreement.pdfOrder form.pdf
8Harbor & PineLostTRTheo RobinsonHospitality$54,0000%★★★★★61harborpine.example0$885Nov 1
9Lumen HealthProposalICIris ChenHealthcare$310,00040%★★★★★380lumenhealth.exampleIman Okafor1$816Mar 3Nov 27
10BrightwaterQualifiedRelay (agent)Energy$120,00025%★★★★★145brightwater.exampleNadia Haddad1$828Nov 21
10 rows

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
  1. 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, render Tables, which brings its own in-memory router.
  2. Connect your backendEvery read and write goes through Base in . Implement it over your API and point BaseLive at your Layer.
  3. 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/:table

    A typed grid over one table, with the field editor and the docked assistant.

  • Saved view

    /tables/:table/views/:view

    Any saved view: a table, board, list, calendar or intake form.

  • Record

    /tables/:table/records/:id

    One 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 .