Encore.ts
Encore.go

Batteries included Go framework
for building distributed systems

Define services and infrastructure in code using structured patterns.
Encore automates provisioning, wiring, documentation, and observability.

EncoreEncore Cloud

Deploy a test app in minutes

Quickstart

Start locally

Install the CLI and create an app

$ brew install encoredev/tap/encore
Cursor
url/url.go
1package url
2
3import (
4 "context"
5)
6
7//encore:api public method=POST path=/url
8func Shorten(ctx context.Context, p *ShortenParams) (*URL, error) {
9 id := generateID()
10 _, err := pool.Exec(ctx,
11 "INSERT INTO urls (id, url) VALUES ($1, $2)", id, p.URL)
12 if err != nil { return nil, err }
13 return &URL{ID: id, ShortURL: "/url/" + id}, nil
14}
15
16//encore:api public method=GET path=/url/:id
17func Get(ctx context.Context, id string) (*URL, error) {
18 var url string
19 err := pool.QueryRow(ctx,
20 "SELECT url FROM urls WHERE id = $1", id).Scan(&url)
21 if err != nil { return nil, err }
22 return &URL{URL: url}, nil
23}
Existing codebase
Terminal
Encore Local Development Dashboard
localhost:9400/url-shortener
Run `encore run` to see architecture

Loved by engineering teams who refuse to slow down
See what teams are building with Encore

Groupon
Bookshop.org
Echo
Quiqup
Carla
Pave Bank
Gradient Labs
Vet-AI
Caribou
Harbinger
Dutch
Pallet
Toolzz
Playwire
Reservamos

A framework you and your AI will love

Encore provides structured patterns and built-in infrastructure guardrails, so you and your AI can build production-grade distributed systems with confidence.

Infrastructure Generation
Robust patterns for integrating databases, pub/sub, cron jobs, and more. Encore runs everything locally for you and provisions it seamlessly in preview and production
MCP for Introspection
Built-in MCP server lets AI understand your services, APIs, schemas, and traces
Standardization & Guardrails
Encore's compiler ensures generated code follows established service structures and API conventions

Define your infrastructure as type-safe objects in code

Declare what your application needs directly in Go, and Encore automatically provisions it across local development, preview environments, and production.

database
PostgreSQL database provisioned & migrated

All the tools you need, from day one

Try the local development experience:
$ brew install encoredev/tap/encore &&
$ encore app create --example=hello-world

Automated local infra with hot reload

encore run starts your app and all infrastructure. Forget YAML, Docker Compose, and the usual headaches.

Service Catalog & API Explorer

Automatically updated Service Catalog with full API documentation, and an API Explorer for testing your APIs.

Tracing & Logging

The local dashboard includes tracing for API requests, database calls, and Pub/Sub messages.

Architecture Diagrams

Automatic architecture diagrams give you a real-time overview of your application.

Turn functions into APIs
with one line of code

Add the //encore:api annotation to a Go function and Encore generates all communication boilerplate at compile-time.

hello.go
API defined - Encore generates boilerplate at compile-time

Built-in developer tools

From your application code, Encore automatically generates documentation and architecture diagrams, and provides distributed tracing out of the box.

Service Catalog

Service Catalog with API explorer and auto-generated docs from your Go types.

Architecture Diagrams

Real-time architecture diagrams showing services, APIs, databases, Pub/Sub topics, and their connections.

Distributed Tracing

Built-in tracing for API calls, database queries, and Pub/Sub messages — no instrumentation needed.

Works with your existing stack

  • AWS
  • GCP
  • DigitalOcean
  • Neon
  • Temporal
  • Kubernetes
  • Datadog
  • Grafana
  • Next.js
  • Remix
  • Astro
  • Vue
  • Svelte
  • Prisma
  • Gorm
  • Connect
  • GitHub
  • Vercel
  • Netlify

No need for a big rewrite

Start small with new services and unlock immediate benefits, then migrate at your own pace.

Encore is our foundation for all new development. Since adopting it, we've seen a 2–3x increase in development speed and 90% shorter project lead times.

Groupon Logo
Josef Sima
Engineering Director, Groupon

We've run Encore in prod for over 2 years and we've reduced time spent on DevOps by 95%.

Bookshop.org Logo
Mason Stewart
CTO, Bookshop.org

Encore fit the service oriented patterns that we were used to, and let us build a robust backend from day one without worrying about infra, deployments and observability.

Echo Logo
Will
Founder, Echo

Join a growing community of pioneering developers

Encore's open source community is the driving force behind the project — full of friendly developers supporting each other with feedback, bug fixes, and wisdom.

        Get started now

        EncoreEncore CloudRecommended

        Start by deploying an example project

        Get started →
        or

        Start locally

        1. Install Encore
        macOS
        Windows
        Linux
        Brew
        $ brew install encoredev/tap/encore
        2. Create app
        $ encore app create
        3. Run locally
        $ encore run