brick.ts

Real apps.
Real service graphs.

Every example is runnable in this repository. Explore its architecture, routes, tables and source before you clone it.

Comments plugin

A comments plugin built with definePlugin: it owns its table, checks typed options, hooks into the host resource's CRUD writes and ships a dashboard extension.

  • Plugins
  • CRUD
  • SQLite
  • — definePlugin with owned tables and typed options
  • — Host CRUD hooks: deleting a page deletes its comments
  • — Catalog event comments.added and a dashboard extension

1 services, 16 actions, 2 tables

Pages

A publishing app: TanStack Start frontend, an in-process Brick API, Better Auth, Postgres and MCP tools in one server.

  • Full stack
  • Postgres
  • Auth
  • MCP
  • — CRUD resource with authorized and scoped access policies
  • — Better Auth and OAuth provider tables
  • — Typed client with a type-only API contract

1 services, 10 actions, 13 tablesLive demo

Showcase

The smallest Brick service: one typed action served over HTTP and callable in process. The source behind the home page.

  • Starter
  • Typed actions
  • — defineService and typed actions
  • — In-process calls and HTTP routes from one definition
  • — Seeded in-memory data, no database needed

1 services, 1 actions, 0 tables