MCPcopy Index your code
hub / github.com/encoredev/examples

github.com/encoredev/examples @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3,004 symbols 6,549 edges 887 files 487 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

encore icon

Encore Templates

Templates to help you build backend applications with Encore.

Template types

This repo contains two types of templates:

  • Starters: Runnable Encore applications to use as they are or to take inspiration from.
  • Bits: Small re-usable parts solving common development patterns or integrating Encore applications with third-party APIs and services.

Prerequisite: Install Encore

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:

  • macOS: brew install encoredev/tap/encore
  • Linux: curl -L https://encore.dev/install.sh | bash
  • Windows: iwr https://encore.dev/install.ps1 | iex

Starters

Create 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

TypeScript starters

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

Go starters

Name Description Primitives
hello-world REST API Starter APIs
sql-database PostgreSQL database Starter

Extension points exported contracts — how you extend this code

ChannelClient (Interface)
ChannelClient is a client for a specific channel in a provider [3 implementers]
ai-chat/chat/service/client/client.go
GreetingRepositoryPort (Interface)
(no doc) [4 implementers]
ts/encore-clean-arch-starter/greeting/domain/ports/greeting-repository.port.ts
APIErrorResponse (Interface)
* APIErrorDetails represents the response from an Encore API in the case of an error
firebase-auth/frontend/src/lib/client.ts
APIErrorResponse (Interface)
* APIErrorDetails represents the response from an Encore API in the case of an error
nextjs-starter/frontend/app/lib/client.ts
APIErrorResponse (Interface)
* APIErrorDetails represents the response from an Encore API in the case of an error
booking-system/frontend/src/lib/client.ts
Client (Interface)
Client is the interface that all LLM clients must implement.
ai-chat/llm/service/client/client.go
APIErrorResponse (Interface)
* APIErrorDetails represents the response from an Encore API in the case of an error
uptime/frontend/src/client.ts
APIErrorResponse (Interface)
* APIErrorDetails represents the response from an Encore API in the case of an error
ts/nextjs-starter/app/lib/client.ts

Core symbols most depended-on inside this repo

cn
called by 198
ts/saas-starter/frontend/lib/cn.ts
parse
called by 74
ts/ai-chat/llm/provider/provider.ts
Scan
called by 73
ai-chat/chat/service/db/sqlc_models.go
get
called by 50
ts/nestjs/src/cats/cats.service.ts
now
called by 28
ts/encore-clean-arch-starter/greeting/application/ports/clock.port.ts
on
called by 28
ts/react-starter/src/lib/client.ts
Add
called by 25
uptime/site/site.go
Info
called by 23
ai-chat/chat/service/client/client.go

Shape

Function 1,026
Method 943
Interface 439
Class 319
Struct 247
Enum 25
TypeAlias 4
FuncType 1

Languages

TypeScript71%
Go29%

Modules by API surface

graphql/graphql/generated/generated.go153 symbols
ts/uptime/frontend/app/lib/client.ts70 symbols
ts/streaming/frontend/src/lib/client.ts67 symbols
ts/saas-starter/frontend/lib/api/encore-client.ts67 symbols
ts/nextjs-starter/app/lib/client.ts60 symbols
ts/streaming-chat/frontend/src/lib/client.ts59 symbols
ts/clerk/frontend/src/lib/client.ts59 symbols
ts/supabase/frontend/src/lib/client.ts58 symbols
ts/react-starter/src/lib/client.ts58 symbols
ts/auth0-react-sdk/frontend/src/lib/client.ts58 symbols
ai-chat/chat/provider/local/static/src/client.ts51 symbols
booking-system/frontend/src/lib/client.ts39 symbols

For agents

$ claude mcp add examples \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact