Alchemy is a runtime for fast, isolated, strongly typed compute functions.
It runs each invocation in a Firecracker microVM, checks every input and output against the function's contract, and records every call. A function is an OCI image or Python, TypeScript, Go or Rust source, plus a contract.
Run Alchemy as a service with its API and web UI, or deploy it to your own machines with KVM.
Warning
Alchemy is in early development. APIs, the Helm chart and the database schema may change between releases before v1.0.0, so pin a version and read the release notes before you upgrade. Keep NATS, the hosts and the API on a private network, and turn on authentication for anything reachable from outside it.
Install the Helm chart from GitHub Container Registry:
helm upgrade --install alchemy oci://ghcr.io/galaxy-io/charts/alchemy --set existingSecret=alchemy-runtimeSee Installation for the images and how to verify a release.
Install the alchemy CLI on macOS via Homebrew:
brew install --cask galaxy-io/tap/alchemyPrebuilt binaries for Linux and macOS are on the releases page.
To run Alchemy locally, install Go, Docker, just, Node.js, pnpm and Lima. On macOS, the repository's Brewfile installs Go, just, Lima, Buf and golangci-lint:
brew bundleFirecracker needs KVM, so on macOS hosts run in a Lima VM with nested virtualization (Apple M3 or later, macOS 15 or later).
Start the infrastructure and the VM, then run Alchemy:
just infra
just vm
just devOpen http://localhost:5174 to use the web UI. The quickstart creates a function and invokes it.
When you are finished, stop the local infrastructure with:
just vm down
just infra downKubernetes with Helm is the recommended way to run Alchemy in production. Hosts need /dev/kvm, so they run on bare metal or VMs with nested virtualization. See the Kubernetes deployment guide and the Helm chart README for all supported values.
Alchemy builds a function's image into a root filesystem once, boots it and snapshots the microVM. Invocations run in microVMs restored from that snapshot, which stay warm between calls. A contract, a JSON Schema or an Arrow schema, checks every input and output.
The server queues every invocation in NATS JetStream. Hosts take invocations whenever they have a free slot, so a busy fleet makes calls wait rather than fail. PostgreSQL stores functions, versions and finished invocations, and servers are stateless, so any number run side by side.
Call a function by POSTing its input to /functions/<function-id>/invoke. See Call functions over HTTP for retries, idempotency and async calls.
Alchemy is written in Go, with a React and TypeScript web UI. Contributions to the runtime, the UI, deployment tooling, tests and documentation are welcome.
See Local development for setup, code generation and tests.
- Read the Alchemy documentation.
- Ask questions and meet other users in the Galaxy Slack community.
- Report bugs or propose features through GitHub Issues.