Skip to content
FossShelf
Home / Categories / For Engineers

Alchemy

Type-safe cloud infrastructure and app logic in one TypeScript program

Replaces Pulumi Cloud, Sst Console

1.98K starsApache-2.0reviewed 1 Nov 2026last commit 16 Nov 2026
Screenshot of Alchemy

Who it's for

Cloudflare Workers developers adding persistent storage and services

Alchemy's Cloudflare provider covers Workers, Durable Objects, R2 buckets, Queues, and Websites. A Worker that reads from R2 or writes to a Queue gets its binding wired at deploy time by the same Layer that provisions the resource. No manual wrangler.toml editing, no separate infrastructure step.

If you are already happy with Wrangler and have no need to manage cloud resources beyond Cloudflare Workers, Wrangler's native deployment is simpler and has no Effect dependency.

AI engineers deploying agent infrastructure across multiple cloud providers

Alchemy's TypeScript-native model lets AI coding agents read and modify the same program that provisions their cloud resources. The llms.txt index and documented agent workflow make it practical for a Claude Code or Cursor session to scaffold, deploy, and iterate on infrastructure.

If your infrastructure needs are static and straightforward, a more opinionated framework like SST or a managed service like Railway may require less initial setup.

Teams replacing a managed IaC backend with a local-first alternative

Alchemy's Apache 2.0 license and file-based state require no Pulumi Cloud or SST Console account. Teams that want the TypeScript-in-infrastructure pattern without paying for a managed control plane can replace those tools while keeping the same deployment workflow.

If your team relies on Pulumi Cloud's shared state history, drift detection, or audit logs, Alchemy does not currently offer an equivalent. Migrating would require building or adopting your own state management.

Effect users adding cloud infrastructure to an existing TypeScript service

Teams already writing application code with Effect can add Alchemy Layers directly to their existing service, reusing the same dependency injection pattern for cloud resources. Infrastructure and business logic share one mental model and one module tree.

If your team does not use Effect for application code, adopting Alchemy means learning both Effect and Alchemy simultaneously. Consider whether the type-system benefits justify the upfront investment.

The problem

Infrastructure-as-code tools traditionally require two separate programs, one for infrastructure and one for application code. Teams using Terraform, Pulumi, or CDK write cloud resources in one program and application logic in another. When a feature needs a new storage bucket, queue, or IAM policy, both programs must change, both deployments must coordinate, and any type mismatch between them is caught at runtime in production rather than at compile time in the editor. The feedback loop is slow. Deploying to test a configuration change takes minutes. Local development environments that mirror cloud services are complex to set up and rarely complete, so developers often test against shared staging environments or skip cloud integration entirely until the configuration breaks in a real deployment.

How it works

Infrastructure and app code in one TypeScript program

Other IaC tools split a project into two separate programs. In Alchemy, a Layer owns both the infrastructure it creates and the service implementation that uses it. An R2 bucket, its read/write binding, and the Worker that calls it are declared in one place, so a missing binding fails the type checker before it reaches the cloud.

Type-checked cloud resources at compile time

Every cloud API call, IAM policy, and resource binding is typed. Alchemy uses the Effect library's type system to track what each Layer provides and what it requires. Leave out a dependency and the TypeScript compiler flags it in the editor in milliseconds, before any deployment runs.

Local emulation with alchemy dev

Alchemy runs Cloudflare Workers, Durable Objects, queues, and R2 buckets on the developer's machine using emulated services. Set `dev: true` in a test file and the same test suite runs against those services locally, giving sub-second feedback without deploying to the cloud.

Per-PR preview stages in CI

The included GitHub Action deploys each pull request to an isolated stage, runs the test suite against it, and posts the preview URL as a comment. The comment updates on every push and is deleted with the stage when the PR closes. The preview and its comment are both resources in the Alchemy program.

OpenTelemetry observability as a Layer

Provide one Layer and every request is traced and logged with OpenTelemetry from the first deploy. Axiom datasets, dashboards, and alert monitors are resources in the same program. Swap the Layer to send telemetry to a different backend, and the infrastructure change compiles before it deploys.

Multi-cloud support in one program

Alchemy ships providers for Cloudflare, AWS, GCP, Fly, Hetzner, Railway, Kubernetes, Neon, PlanetScale, Stripe, and GitHub. Resources from different providers are composed in the same Effect program, so a Cloudflare Worker that reads from a Neon Postgres database is wired up by type rather than by environment variable convention.

Features

  • Infrastructure and app code in one TypeScript program
  • Type-checked cloud resources at compile time
  • Local emulation with alchemy dev
  • Per-PR preview stages in CI
  • OpenTelemetry observability as a Layer
  • Multi-cloud support in one program

How to install

Install Alchemy and the Effect library with your package manager to set up a new project.

pnpm add alchemy@latest effect

Recommended for this setup

Strengths

  • No paid backend or external account required: Alchemy is Apache 2.0 licensed and installs with `pnpm add alchemy@latest effect`. State is stored in a local file; there is no managed control plane, no account creation, and no usage billing. Teams running it commercially, internally, or in CI have no license fee or API quota to manage.
  • Type errors catch broken cloud configs before deploying: A misconfigured IAM policy, a missing binding, or a wrong resource parameter fails the TypeScript compiler in the editor. The Alchemy website describes type-check feedback as answering in milliseconds, contrasted with minutes for a cloud deployment. Misconfigured stacks fail before reaching the cloud rather than failing mid-deploy and leaving partial state.
  • Local emulation runs tests in seconds without cloud credentials: Running `alchemy dev` emulates Workers, Durable Objects, and R2 buckets on the developer's machine. The same test suite that runs locally runs against a real cloud deployment by removing the `dev: true` flag. No cloud credentials are needed for local development, and no separate mock setup is required.
  • Infrastructure readable by AI coding agents: Alchemy provides an `llms.txt` documentation index and documents a workflow for bootstrapping with Claude Code, Cursor, or other agents. Because infrastructure is TypeScript, an AI agent can read, modify, and deploy the same program that provisions cloud resources without switching between IaC tooling and application code.

Trade-offs

  • Version 2 is in beta with breaking changes expected: The GitHub README states that v2 is in beta and breaking changes should be expected. Teams building on Alchemy for production workloads should pin a version and review the changelog before updating. The project was created in October 2025 and is approximately one year old.
  • Requires familiarity with the Effect library: Alchemy uses Effect, a TypeScript library for typed effects and dependency injection, as its core model. Teams unfamiliar with Effect's Layer, Effect.gen, and Context patterns face a steeper initial learning curve than with CDK or Terraform, where resources are instantiated with plain class constructors.
  • 240 open issues at time of research: The repository had 240 open issues as of the research date. For a one-year-old project in beta, this count is expected, but teams should review open issues in the areas they plan to use before committing Alchemy to production.
  • No team collaboration dashboard: Alchemy stores state in a local file and provides no built-in UI for shared teams. Pulumi Cloud and SST Console each offer dashboards with deployment history, access controls, and audit logs. Teams that need those features must build their own state management or wait for Alchemy to add them.

Tech stack

Languages
TypeScript, MDX, Astro, Dockerfile, CSS, JavaScript, HTML, Python, Vue, Shell, Go, Svelte, Lua
Frameworks
React
Databases
—
Tooling
—

FAQ

Does Alchemy require a Pulumi or SST account to use?

No. Alchemy is Apache 2.0 licensed and stores state in a local file. There is no managed backend, no account required, and no usage billing. Teams can run it entirely on their own infrastructure.

Which cloud providers does Alchemy support?

Alchemy ships providers for Cloudflare, AWS, GCP, Fly, Hetzner, Railway, Kubernetes, Neon, PlanetScale, Stripe, and GitHub. Resources from multiple providers can be composed in the same TypeScript program. Provider coverage varies; check the docs for specific services within each cloud.

Is Alchemy ready for production use?

The README states that v2 is in beta and breaking changes should be expected. The project was created in October 2025 and has 1,821 GitHub stars and 240 open issues. Teams using it in production should pin a version and monitor the changelog. The repository shows active development with commits as recent as October 31, 2026.

What is the Effect library and do I need to learn it to use Alchemy?

Effect is a TypeScript library for typed functional effects, dependency injection, and structured concurrency. Alchemy uses Effect's Layer system to model infrastructure dependencies. Some familiarity with Effect's core patterns (Layer, Effect.gen, Context) is needed to write Alchemy programs. The Effect docs at effect.website cover these concepts.

How does local development work with Alchemy?

Running `alchemy dev` starts a local emulator for Cloudflare Workers, Durable Objects, R2 buckets, and queues on the developer's machine. Tests run against these emulated services by setting `dev: true`, or against a real cloud deployment by removing the flag. No cloud credentials are required for local development.

Similar tools

More in Engineers