EXAMPLES
Real apps.
Real service graphs.
Every example is runnable in this repository. Explore its architecture, routes, tables and source before you clone it.
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
Resource plugin
A comments plugin built with defineResourcePlugin that attaches a typed comments namespace and CRUD routes to a parent resource.
- Plugins
- CRUD
- SQLite
- — defineResourcePlugin and resource extensions
- — Write hooks that trim and validate input
- — Compiled HTTP routes for list, count, update and delete
1 services · 8 actions · 2 tables
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