Alchemy makes a resource an async function and state a file you can read
Infrastructure as TypeScript
At a glance
- What is it?
- The infrastructure-as-code library from this project replaces the declarative configuration file with memoized async functions, which means resources run wherever your JavaScript runs and untracked resources are deleted when they fall out of scope. The cost is that convergence is now a property of your program's control flow rather than of a plan you inspect first.
- Who is it for?
- Adopt Alchemy if you deploy from TypeScript and want one language across application and infrastructure, since the resources are functions you can read, extend and copy, and the extensibility story is genuinely better than waiting for a provider abstraction to be written for you.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 114 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- alchemy-run/alchemy-async2,212 ★ · +2
| Repository | 2026-09-30 | 2026-11-23 |
|---|---|---|
| alchemy-run/alchemy-async | 2.2k | 2.2k |
2 Stars in the last 54 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
A resource is a memoized function, which is the entire abstraction
The example in the readme is short enough to read as a design document:
import alchemy from "alchemy";
const app = await alchemy("cloudflare-worker");
export const worker = await Worker("worker", {
name: "my-worker",
entrypoint: "./src/index.ts",
});
await app.finalize();You import the library, await a call that initialises an application and names a provider, then await a resource constructor that takes a name and a configuration object, and finally await a finalize call whose comment says it triggers deletion of orphaned resources. Each of those is a function call. There is no schema, no plan file, no separate language. The readme's own framing is that resources are simple memoized async functions that can run in any JavaScript runtime, including the browser, serverless functions and durable workflows, and that async-native means resources are just async functions with no complex abstraction to learn. The consequence worth thinking about is what memoization buys. If a resource is memoized by name, calling the same constructor twice in one run returns the same handle rather than creating two things, which is what stops a diamond-shaped dependency graph from creating duplicate resources. It also means a resource's identity is its name plus its scope, which is why the example threads other resources through the bindings of a worker: the bindings reference objects returned by earlier calls, so the dependency is expressed as a value rather than as a string reference that has to be resolved later. That is a genuinely different shape from the string-and-block configuration of other tools, and it is the reason the readme says the library is embeddable.
finalize is where the risk lives
The last line of the example is the one to understand before you run anything. Finalising the application triggers deletion of orphaned resources, and the word orphaned covers several cases. It covers a resource you removed from your code, which is the intended behaviour and the reason a stack can be torn down. It covers a resource whose name you changed, which deletes the old one and creates a new one, so a typo in a name is a delete and a create. And it covers a resource that failed to register properly, where a partially applied resource is not in state and therefore cannot be cleaned up, which is the case that leaves things behind. That last one is the hard problem in any infrastructure-as-code tool and Alchemy does not claim to have solved it differently. The concurrency case is the other one to think about. If state is a local file, then two processes reconciling at once have two views of what exists, and the readme's suggestion that you check the state file into your repository is convenient for review and dangerous for concurrency, because a pull request that changes the state file is now a proposal to change infrastructure. Nothing in the readme discusses locking, so treat concurrent runs as unsupported unless you find otherwise in the documentation. The readme does say state can be stored anywhere and that the tool has no strong opinions about structure, which is freedom and also means the concurrency answer is yours to solve.
Local state files, and what checking them into git really means
The no-service feature says state files are stored locally in your project and can be easily inspected, modified, checked into your repo. Each of those four claims is a decision, and the combination is unusual enough to be worth taking apart. Inspected means you can read what exists without a dashboard, a login or a CLI, which for a tool managing production infrastructure is a real property during an incident. Modified means you can hand-edit state, which is powerful and also means the tool has to tolerate a file that describes reality it did not create, so it has to detect drift rather than assume. Checked into the repository means infrastructure changes are reviewed like code, which is the practice every team wants and the one that exposes a design tension: if the state file is in git, then a change to it is a change to production, and a reviewer reading a diff of state is reading a diff of what will be deleted and created. That is a good review artefact if the diff is comprehensible, and an incomprehensible one if your resource names are hashes. No service also means no shared state between machines, so a developer on a laptop and a deploy pipeline each have their own view unless you copy the file between them, and the readme's suggestion to check it in is the mechanism for that. The test and destroy scripts in the package manifest suggest the project expects you to be able to tear down a stack completely, which is the feature that makes the local-state model tolerable.
The AI-first claim is really an extensibility claim
The feature list includes an item about being AI-first, and the phrasing is worth parsing because it is doing something specific. It says the project actively encourages using models to create, copy, fork or modify resources to fit your needs, and that there is no more waiting around for a provider to be implemented because you can do it yourself in a few minutes. Strip the framing and the technical claim is: because a resource is a function, adding support for something the library does not implement is writing a function, not writing a plugin against an extension point, waiting for a pull request, or writing a provider module in a second language. That is a real property of the design and it is the strongest argument for the library, and it happens to be easier to do with a model in the loop because a resource definition is a small, self-contained piece of code with a clear shape. The companion claim is extensibility in the plain sense: implement your own resources with a simple function. The risk is the same one that comes with any fork-friendly design. A resource written by a model against a provider's current API is correct until the provider changes, and you own that code forever, which is a different ownership model from a library that absorbs the change. That is a good trade for infrastructure you understand and a bad one for infrastructure you do not, and the readme's own warning about not waiting for a provider is really a statement that you have taken on the maintenance.
The example set is the feature list, and it is broad
Read the examples list rather than the feature bullets, because filenames tell you what actually works. The Cloudflare side is deep: a worker with a queue, an object storage bucket, durable objects, workflows and remote procedure calls; a worker bootstrap example with end-to-end testing; single-page and server-rendered framework deployments including Vite, TanStack Start, Redwood, React Router, Nuxt with a pipeline and bucket, SvelteKit with key-value and object storage, Astro, Prisma, and a container example; plus durable object websockets, email, a vector database example, a container loader, a virtual private cloud service, and a containerised build. The AWS example is one: a Lambda function with a table and an identity role. That ratio is the honest picture. Cloudflare is where this is being developed, and AWS support is present but thin, which matters if you read the no strong opinions claim as provider neutrality. A PlanetScale example with an ORM and a Docker example sit alongside, so the boundary is not strictly cloud providers. The readme also notes a preference for a modern JavaScript runtime, and the repository's lock file and configuration are for one, so if you are on another runtime the library claims to work but the project develops on that one. A quickstart guide is linked rather than inlined, which is sensible for something with this many providers.
A monorepo that deploys itself, which tells you about the project stage
The top-level entries and the package manifest together describe how the project is worked on, and the detail is a little telling. It is a workspace monorepo with a package catalog, holding the library, a web package, template packages, the example directories and something called stacks. There are tests configured through a single test runner with a fast variant that excludes the two slowest suites and an all variant behind an environment flag, which is the pattern of a suite that talks to cloud providers and therefore cannot be run on every save. Build scripts compile the library, generate types, and type-check, with a separate check target that type-checks and verifies formatting. Then there are deployment scripts that run files from the stacks directory, and one that deploys the website with a matching destroy script, which means the project dogfoods its own library on its own documentation site. One script fetches secrets from an external secrets manager into a local environment file, which tells you the project's own infrastructure has credentials it does not want in the repository. There is a script that generates a control surface from the AWS side, which suggests part of the provider support is machine-generated. Alongside that sit editor configuration for several tools, an agent instruction file, a contributor guide, a changelog, and a submodules file. A submodules entry in a JavaScript monorepo is unusual and worth a look before you clone.
Editorial conclusion
Adopt Alchemy if you deploy from TypeScript and want one language across application and infrastructure, since the resources are functions you can read, extend and copy, and the extensibility story is genuinely better than waiting for a provider abstraction to be written for you. Do not adopt it if your team needs to review a deployment plan before it executes, because a resource is a function call and a finalize call that deletes orphans, so the plan is the program and reviewing it means reading code. Four things to verify. That the runtime supports what your resources need, since the readme says it runs anywhere JavaScript runs, including a browser, and that includes environments with no credentials. How the state file behaves in continuous integration, since state is stored locally and the readme says you can check it into your repository, which means the file is the source of truth for what exists and a mistake in it is a mistake in your infrastructure. Whether finalize's deletion of orphans is safe in a concurrent run, since two processes reconciling the same state is the failure mode this model inherits from every other tool. And the version cadence, because the releases are below one with a patch number in the dozens, so you should pin exactly. The licence is Apache-2.0 and version 0.94.0 was released on 2026-08-01.
Frequently asked questions
What is Alchemy and how does it differ from Terraform or Pulumi?
It is an embeddable infrastructure-as-code library written in ESM-native TypeScript, where resources are memoized async functions rather than declarations in a separate language. The readme positions this as removing the second language, toolchain and processes that other tools require, and says resources run in any JavaScript runtime including the browser.
How does Alchemy decide what to delete?
You call a finalize function on the application after declaring resources, and its documented role is to trigger deletion of orphaned resources. The readme does not describe locking or concurrent reconciliation, so treat two processes running against the same state as a case to check before relying on.
Where does Alchemy store state?
Locally in your project, in state files that the readme says can be inspected, modified and checked into your repository. The project runs no service, and the readme also says you can store state anywhere and that it has no strong opinions about your structure.
Which cloud providers does Alchemy support?
The example directory is dominated by Cloudflare targets, covering workers, queues, object storage, durable objects, workflows, containers and many web frameworks, with one AWS example covering a Lambda function, a table and an identity role. A database service example and a Docker example also exist, so provider coverage is broad but uneven in depth.
How do I add support for a resource Alchemy does not implement?
Write a function. The readme's extensibility claim is that you implement your own resources with a simple function, and its AI-first item says the project encourages copying, forking or modifying resources rather than waiting for a provider to be implemented, which means you own the maintenance of anything you write.
What licence is Alchemy released under?
Apache-2.0. The repository root package manifest is a private workspace root at version 0.0.0, while the published versions are below one, with the newest release v0.94.0 on 2026-08-01 and the last commit on the same day.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/alchemy-run-alchemy-async)Star history chart for your README
[](https://hysenlabs.com/projects/alchemy-run-alchemy-async)Was this useful?