# Alchemy: define your cloud infrastructure in TypeScript

Canonical URL: https://geekist.co/github/alchemy-define-your-cloud-infrastructure-in-typescript/
Source repository: https://github.com/alchemy-run/alchemy
Topics: DevOps &amp; Developer Tools

[Stars2.1k](https://github.com/alchemy-run/alchemy "alchemy-run/alchemy - Stars: 2.1k")[Forks323](https://github.com/alchemy-run/alchemy "alchemy-run/alchemy - Forks: 323")[Updatedtoday](https://github.com/alchemy-run/alchemy "alchemy-run/alchemy - Updated: today")[LanguageTypeScript](https://github.com/alchemy-run/alchemy "alchemy-run/alchemy - Language: TypeScript")[LicenseApache-2.0](https://github.com/alchemy-run/alchemy "alchemy-run/alchemy - License: Apache-2.0")

## **What it is**

A small SaaS can quickly accumulate a database, a queue and a Worker. Each resource has settings and relationships that somebody must remember when deploying the next version.

[Alchemy](https://geekist.co/?post_type=geek_repo_cur&p=6102) lets you describe those resources in TypeScript alongside your application. It tracks dependencies and reconciles your declarations with recorded infrastructure state.

For example, you can declare a database and the Worker that uses it in the same project rather than copying resource identifiers between dashboards and configuration files.

## **What’s new**

Alchemy’s [2.0.0-beta.87 release on 12 November 2026](https://alchemy.run/blog/2026-11-12-beta-87/) introduces six sandbox providers for running untrusted workloads, including E2B, Daytona, Modal and AWS ECS. It also improves the local development loop by avoiding unnecessary restarts and reapplying D1 migrations when simulator data is lost.

Our research used this beta. The [current development branch](https://geekist.co/?post_type=geek_repo_cur&p=6102) also contains new model integrations for Anthropic and OpenAI. Check their release availability before using them; the 2.x APIs are still evolving.

## **What else is similar to it**

[**SST**](https://github.com/sst/sst) offers an application-oriented infrastructure workflow. Compare its supported resources and underlying state management.

[**Pulumi**](https://github.com/pulumi/pulumi) also lets you define infrastructure using general-purpose programming languages.

[**OpenTofu**](https://github.com/opentofu/opentofu) uses declarative configuration with a broad provider ecosystem. Native Wrangler may be enough if you only need a few Cloudflare resources.

## **Why it’s different**

Our isolated local experiment created a Worker and D1 database, applied a migration and preserved a record across restart. A second migration exposed an interesting detail: the source watcher rebuilt the Worker before reconciling the database schema. Restarting the stage applied the migration.

**Keep schema changes compatible with the application versions that may still be running.** The trial demonstrated local behaviour, rather than live cloud adoption or recovery.

Alchemy’s inspected packages use Apache-2.0. You still pay for the cloud resources you provision and remain responsible for infrastructure state and backups.

## **How to get started**

1.  Use the runtime and package versions described in the [current guide](https://alchemy.run/getting-started/).
2.  Start with a disposable local stage and avoid live provider credentials until you intend to provision resources.

1.  Create a small stack using the guide’s Worker and D1 example, including a migration and binding.
2.  Run the documented `alchemy dev` command and write a test record through your Worker.
3.  Change the schema using a compatible migration, restart the local stage and verify the record is still readable.

1.  Inspect state and planned replacements before applying anything to a live account.
2.  Keep a separate backup and recovery plan; successful local reconciliation does not establish safe production migration.

**Explore further:** [Documentation](https://alchemy.run/) · [Releases](https://geekist.co/?post_type=geek_repo_cur&p=6102) · [GitHub](https://geekist.co/?post_type=geek_repo_cur&p=6102).

