Skip to content
galaxy-ioPublic

About

Runtime for fast, isolated, strongly typed compute functions

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

68 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Alchemy: fast, isolated, strongly typed compute functions

Release Tests License: Apache 2.0 Ask DeepWiki Slack

Alchemy

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

Install the Helm chart from GitHub Container Registry:

helm upgrade --install alchemy oci://ghcr.io/galaxy-io/charts/alchemy --set existingSecret=alchemy-runtime

See Installation for the images and how to verify a release.

Install the alchemy CLI on macOS via Homebrew:

brew install --cask galaxy-io/tap/alchemy

Prebuilt binaries for Linux and macOS are on the releases page.

Getting started

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 bundle

Firecracker 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 dev

Open 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 down

Deploying Alchemy

Kubernetes 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.

How it works

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.

Developing Alchemy

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.

Community

About

Runtime for fast, isolated, strongly typed compute functions

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages