Examples
Every example is a complete, working app. Pick the one closest to what you are building and use it as a starting point.
All examples use in-memory storage by default. Swap to Postgres, SQLite, MongoDB, or Redis with a one-line change. See Production Databases.
What are you building?
Section titled “What are you building?”| I am building… | Start with |
|---|---|
| A CRUD API with user accounts | Auth Setup |
| A forum, comments, or discussion feature | Forum App |
| A multi-tenant SaaS | SaaS Foundations |
| A chat, team, or collaboration product | Collaboration Workspace |
| A CMS, blog, or publishing platform | Content Platform |
| An entity-driven domain (inventory, tickets, CRM) | Config-Driven Domain |
| A platform with background jobs or pipelines | Orchestration |
| Durable workflow workers on Redis | Orchestration with BullMQ |
| Tenant workspaces and membership | Organizations |
| Customer webhook delivery | Webhooks |
| A marketplace or e-commerce backend | SaaS Foundations + entities |
| An internal tool or admin dashboard | Auth Setup + custom routes |
| A game backend or realtime app | Game Engine |
| An API-first product | Config-Driven Domain |
| A notification system | Forum App (includes notifications) |
| Something with live browser updates | Realtime with SSE |
| Something with search | Adding Search |
Complete app compositions
Section titled “Complete app compositions” Auth Setup Email/password, JWT sessions, OAuth, MFA, passkeys. The identity baseline every app needs.
Forum App Auth + community + permissions + notifications. A working discussion product.
SaaS Foundations Auth + organizations + per-resource permissions + search. Multi-tenant from day one.
Collaboration Workspace Chat + community + polls + reactions + assets + emoji + embeds + GIFs + deep links.
Content Platform Search + assets + SSR + SSG + edge-ready delivery for docs, media, or publishing.
Config-Driven Domain Define an entity, add operations, wrap it in a plugin. The core authoring pattern.
Orchestration Background tasks, workflows, protected routes, and runtime job management.
Orchestration with BullMQ Durable Redis-backed workflow execution for production workers.
Organizations Organization workspaces, membership roles, invitations, and groups.
Webhooks Signed outbound event delivery with endpoint governance.
Game Engine Realtime game state, player sessions, and server-authoritative logic.
How-to recipes
Section titled “How-to recipes” Custom Plugin Build a plugin with routes, events, middleware, and cross-plugin state from scratch.
Adding Search Attach full-text search to your entities with Meilisearch, Elasticsearch, or Typesense.
Production Databases Switch from in-memory to SQLite, Postgres, MongoDB, or Redis with one line.
Realtime with SSE Stream entity events to browser clients in real time.
Custom Event Bus Replace the default in-process bus with Redis or BullMQ for multi-instance delivery.
Capability map
Section titled “Capability map”| Example | Auth | Entities | Events | Realtime | Permissions | Search | Jobs |
|---|---|---|---|---|---|---|---|
| Auth Setup | x | ||||||
| Forum App | x | x | x | x | |||
| SaaS Foundations | x | x | x | x | x | ||
| Collaboration Workspace | x | x | x | x | x | ||
| Content Platform | x | x | x | x | |||
| Config-Driven Domain | x | x | |||||
| Orchestration | x | x | |||||
| Orchestration with BullMQ | x | x | |||||
| Organizations | x | x | x | x | |||
| Webhooks | x | x | |||||
| Game Engine | x | x | x |
Recommended progression
Section titled “Recommended progression”- Quick Start — get something running
- The example closest to your app — study the composition
- Guides — production concerns before you ship
Ready for production
Section titled “Ready for production”- Security — CORS, CSRF, rate limits, secrets
- Testing — unit, integration, and entity route testing
- Deployment — Docker, serverless, managed hosting
- Horizontal Scaling — stateless workers, external event buses