Understanding your Leap app
Encore Services
How encore.service.ts files work to define APIs, databases, and business logic with automatic infrastructure
The core of any Leap-generated app is built with Encore.ts services. Each encore.service.ts
file defines a microservice with its APIs, database connections, and business logic.
How services work
What makes this special
- Automatic infrastructure: Encore creates the database, HTTP endpoints, and connections
- Type safety: Full TypeScript support across services with automatic validation
- Service communication: Services can call each other with type-safe RPC
- Built-in observability: Automatic tracing, metrics, and logging
Learn more: Encore.ts handles all the infrastructure complexity so you can focus on business logic. See how services work →