Skip to Content
Alzo

Alzo

Local development environments described as a dependency graph of Docker containers and host processes, with a separate instance for every git worktree.

Important

Alzo is an unpublished pre-release. Its packages are private: build them from this repository and install the tarballs into your project, as Installation describes. The configuration surface is not yet a public compatibility promise.

import { defineConfig, defineIngress, defineService } from 'alzo';

const local = defineIngress({ hostname: 'example.dev', tls: 'internal' });

const db = defineService({
  name: 'db',
  ports: { pg: 5432 },
  env: { POSTGRES_DB: 'acme', POSTGRES_PASSWORD: 'dev' },
  provision: { image: 'postgres:17' },
  ready: { exec: 'pg_isready -h 127.0.0.1 -U postgres -d acme', in: 'container' },
});

const api = defineService({
  name: 'api',
  ports: { api: { ingress: local } },
  run: (self) => `pnpm dev --port ${self.port.api}`,
  cwd: './services/api',
  dependsOn: [db.available],
  env: () => ({ DATABASE_URL: `postgres://postgres:dev@${db.address.pg}/acme` }),
});

export default defineConfig({
  name: 'acme',
  nodes: () => [api],
});
$ alzo up
  ✓ db     ready in 3.1s   db.example.dev:20001
  ✓ api    ready in 1.4s   https://api.example.dev

That is the entire configuration. db starts first because api depends on it, and api waits for it to be ready, not merely started. db.address.pg is the database's host:port as api reaches it. The database is a container and the API is an ordinary host process; both are nodes in one graph, on one dashboard. Check the repository out into a second git worktree and that copy gets its own instance: its own ports, hostnames, containers and volumes, with nothing to coordinate by hand.

The example assumes an existing pnpm dev application in services/api; the quickstart supplies a complete runnable one. The example.dev hostname requires DNS and HTTPS setup; without it, Alzo reports allocated loopback URLs.

Docker Compose makes readiness opt-in per edge, keeps host processes outside the graph and leaves the ports of a second checkout to you. The Kubernetes inner-loop tools answer some of that with a dependency model built for a cluster. Alzo takes the middle position: containers and host processes in one typed graph, with no cluster and no manifests. Why Alzo makes the argument and compares the tools.

Documentation

New to Alzo? Install it, run the quickstart, then read Configuration basics and the configuration pages after it in order. In a checkout of the Alzo repository, pnpm docs:dev serves these pages as a local site with search.

Get started

  • Installation: requirements, building the private packages and installing them into a project.
  • Quickstart: run a supplied API and PostgreSQL, edit the API, then stop and remove it.

Configure

  • Configuration basics: the configuration file, the kinds of node and how references between them work.
  • Services: long-running containers and host processes, their ports, outputs and sidecars.
  • Dependencies and readiness: the two dependency graphs, readiness probes and their timing.
  • Builds: watch and one-shot builds, image platforms and private build dependencies.
  • Tasks: migrations, seeds and other work that runs to completion.
  • Storage: named volumes, bind mounts, generated files and managed source mirrors.
  • Lifecycle: file watching, stopping, restarting and when a node starts.
  • Container options: resource limits, network isolation, labels and Docker-specific capabilities.
  • Provisioning: building, adopting or running a node natively, from one definition.
  • Networking: loopback and HTTPS addresses, the names a node has, and references between nodes.
  • Parallel environments: one isolated instance per git worktree.
  • Profiles and settings: alternative shapes of the graph and configuration-wide settings.
  • Secrets and parameters: credentials from the environment and typed run-time flags.

Use

  • Everyday development: stopping and resuming, edit loops, migrations, debugging, worktrees and troubleshooting.
  • CLI: commands, targets, machine-readable output and exit codes.
  • Dashboard and telemetry: the built-in dashboard, its panels and the OpenTelemetry receiver.
  • AI agents: the MCP server and headless automation.
  • Patterns: use cases that look like missing features, and the configuration that answers each one.

Learn

  • Coming from Docker Compose: migrating a Compose file and the differences to expect.
  • Why Alzo: motivation, principles, a comparison with similar tools and measured configuration sizes.
  • FAQ: Kubernetes, TypeScript, blocking up, restarts and .env files.

Licence

Alzo is licensed under the Apache License, Version 2.0.

On this page