Encore Templates
Templates to help you build backend applications with Encore.
This repo contains two types of templates:
If this is the first time you're using Encore, you first need to install the CLI that runs the local development environment. Use the appropriate command for your system:
brew install encoredev/tap/encorecurl -L https://encore.dev/install.sh | bashiwr https://encore.dev/install.ps1 | iexCreate a local app from a template by running:
encore app create [app-name] --example=[folder-name]
E.g. encore app create my-app --example=ts/hello-world
| Name | Description | Primitives |
|---|---|---|
| ts/hello-world | REST API Starter | APIs |
| ts/saas-starter | SaaS Starter (Encore.ts backend, Next.js frontend, Clerk, Stripe) | Microservices, APIs, Auth, SQL, Frontend |
| ts/mcp-example | MCP Server Starter (build your own MCP server) | |
| ts/ai-chat | LLM chat application which let's you create and chat with personalized bots. Integrates with OpenAI, Anthropic and Slack | Microservices, APIs, SQL Database, Pub/Sub, External Requests, Configs |
| ts/streaming | Examples of the different WebSocket Streaming APIs | Streaming API, Static Endpoint, Frontend |
| ts/react-starter | Encore + React Web App Starter | APIs, Frontend |
| ts/nextjs-starter | Encore + Next.js Web App Starter | Microservices, APIs, Frontend |
| https://github.com/encoredev/nextjs-starter/ † | Encore + Next.js Web App Starter (separate dependencies) | Microservices, APIs, Frontend |
| ts/graphql | Apollo GraphQL Server Starter | APIs, GraphQL |
| ts/streaming-chat | Simple Chat app using the Streaming API to create a WebSocket stream | Streaming API, Static Endpoint, Frontend |
| ts/simple-event-driven | Simple Event-Driven Application | Microservices, SQL Database, Pub/Sub, Secrets |
| ts/uptime | Event-Driven Architecture Starter (Uptime Monitor) | Microservices, SQL Databases, Pub/Sub, Cron Jobs |
| ts/gpt-functions | ChatGPT Functions with Encore Example | APIs |
| ts/url-shortener | Basic url shortener | APIs, SQL Database |
| ts/nestjs | Encore + NestJS Example | APIs, SQL Database, Auth |
| ts/slack-bot | Slack Bot Starter | APIs, Raw Endpoint |
| ts/auth0-react-sdk | Auth0 React SDK Authentication + Encore Example | APIs, Auth, Frontend |
| ts/clerk | Clerk React SDK Authentication + Encore Example | APIs, Auth, Frontend |
| ts/supabase | Supabase Authentication + Encore Example | APIs, Auth, Frontend |
| ts/elevenlabs | ElevenLabs AI Speech SDK + Encore Example | APIs, Raw Endpoints, Frontend |
| ts/sequelize | Encore + Sequelize TypeScript Example | APIs, SQL Database |
| ts/drizzle | Encore + Drizzle TypeScript Example | APIs, SQL Database |
| ts/knex | Encore + Knex TypeScript Example | APIs, SQL Database |
| ts/prisma | Encore + Prisma TypeScript Example | APIs, SQL Database |
| ts/expressjs-migration | Express.js migration guide examples | APIs, Raw Endpoints, Auth, Databases |
| ts/file-upload | Upload files from frontend example | Raw Endpoints |
| ts/static-files | Serving static files example | Static Endpoints |
| ts/middleware | Rate limiting and Authorization middleware examples | APIs, Auth, Middleware |
| ts/template-engine | Using a templating engine | Raw Endpoints, Static Endpoints |
| ts/ai-agent-api | AI Agent API Backend with Claude | Microservices, APIs, SQL Database, Secrets |
| ts/multi-service-saas | Multi-Service SaaS Backend Starter | Microservices, APIs, SQL Database, Pub/Sub |
| ts/webhook-processor | Webhook Processor with Pub/Sub fan-out | Microservices, APIs, SQL Database, Pub/Sub, Secrets |
| ts/langfuse-openrouter | LangFuse + OpenRouter AI Starter | APIs, SQL Database, Secrets |
| ts/daytona | Daytona AI Agent Infrastructure Starter | APIs, Secrets |
| ts/resend | Resend Email Integration Example | APIs, Secrets |
| ts/betterauth | BetterAuth Authentication Example | APIs, Auth, SQL Database |
| ts/autumn | Autumn Billing Integration Example | APIs, Secrets |
| ts/polar | Polar Payment Integration Example | APIs, Secrets |
| ts/polar-file-sharing | Polar File Sharing Example | APIs, Secrets |
| ts/clerk-simple | Simple Clerk Authentication Example | APIs, Auth |
| ts/replicate-image-generator | Replicate Image Generator Example | APIs, Secrets |
| ts/socket-io | Socket.IO Real-time Communication Example | APIs, Raw Endpoints |
| ts/inbound | Inbound Webhook Handler Example | APIs, Raw Endpoints |
| Name | Description | Primitives |
|---|---|---|
| hello-world | REST API Starter | APIs |
| sql-database | PostgreSQL database Starter |
$ claude mcp add examples \
-- python -m otcore.mcp_server <graph>