Skip to content
Aspire logo

Aspire

Your stack, streamlined. đź’«

Code-First Control

Define your stack in code—no YAML. Aspire launches locally, then shifts to real cloud services without changing your architecture. Dev and deploy, fully wired.

Modular and Extensible

Orchestrate your existing stack—frontends, APIs, containers, databases, and more — without rewriting or replatforming. Extend Aspire for anything.

Observability from the Start

Logs, traces, health checks—all local, all wired up automatically. OpenTelemetry included with zero setup.

Flexible Deployments

Ship it how you want — to Kubernetes, your own infra, or managed services. Aspire adapts to your environment, not the other way around.

Describe your stack in code. Easily add services, connect them to each other, and get everything running locally with a single command.

index.ts
import { createBuilder } from "./.modules/distributed-application";
const builder = createBuilder();
// Add database service to orbit
const postgres = builder.addPostgres("db").addDatabase("appdata");
// Add API service and reference the database
const api = builder.addProject("api", "../api/ApiService")
.withReference(postgres);
// Add frontend service and reference the API
const frontend = builder.addNpmApp("frontend", "../frontend")
.withHttpEndpoint({ env: "PORT", targetPort: 3000 })
.withNpmPackageInstallation()
.withReference(api);
builder.build().run();

Local Development

aspire run
  • Runs with your local container runtime
  • Dashboard available on localhost
  • Uses dev secrets, volumes, dev-time config

Production Deployment

aspire publish
  • Same app structure, deployed where you want
  • Use managed cloud services or your own infra
  • Works with your pipeline, no code changes required

Get deep insights into your app while you build it—backed with OpenTelemetry, GitHub Copilot, D3.js resource graphs, and more.

Aspire integrates with your favorite platforms, services, databases, messaging systems, caching layers, programming languages, and more.

Get Aspire

View Docs

Ask & Answer Collaborate Community Discuss Watch