Templates Overview
Theatrical templates are complete applications scaffolded from theatrical init. Four templates are available:
Available templates
| Template | Description |
|---|---|
default | Minimal TypeScript project with the SDK client wired up (mock mode when no API key is set) |
fullstack | Express API + the default scaffold — typed endpoints over the SDK |
worker | Background worker skeleton for event processing |
react-ticketing | Living cinema booking demo — real @theatrical/events watchers driving a React UI (deploys to Vercel) |
Using a template
# Default templatenpx @theatrical/cli init my-cinema-app
# The full booking demonpx @theatrical/cli init my-cinema --template react-ticketingTemplate structure
Every scaffold ships with:
- Complete source code — runnable immediately, no API key required
- Environment variable configuration (
.env.example) .gitignoreand strict TypeScript config
The react-ticketing template additionally includes SPA routing, a vercel.json deployment config, and a setup README.
See React Ticketing for a detailed walkthrough.