Skip to content

Templates Overview

Theatrical templates are complete applications scaffolded from theatrical init. Four templates are available:

Available templates

TemplateDescription
defaultMinimal TypeScript project with the SDK client wired up (mock mode when no API key is set)
fullstackExpress API + the default scaffold — typed endpoints over the SDK
workerBackground worker skeleton for event processing
react-ticketingLiving cinema booking demo — real @theatrical/events watchers driving a React UI (deploys to Vercel)

Using a template

Terminal window
# Default template
npx @theatrical/cli init my-cinema-app
# The full booking demo
npx @theatrical/cli init my-cinema --template react-ticketing

Template structure

Every scaffold ships with:

  • Complete source code — runnable immediately, no API key required
  • Environment variable configuration (.env.example)
  • .gitignore and 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.