GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alchemy-run/alchemy-async: Infrastructure as TypeScript

BranchesTags
Open more actions menu

Latest commit

 

History

1,431 Commits
1,431 Commits

Folders and files

NameName
Last commit message
Last commit date
.cursor/rules
.cursor/rules
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
.zed
.zed
 
 
alchemy-web
alchemy-web
 
 
alchemy
alchemy
 
 
example-monorepo
example-monorepo
 
 
examples
examples
 
 
public
public
 
 
scripts
scripts
 
 
stacks
stacks
 
 
tests/smoke-test-flatten-website
tests/smoke-test-flatten-website
 
 
.cursorrules
.cursorrules
 
 
.eslintignore
.eslintignore
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
.oxfmtrc.json
.oxfmtrc.json
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
bun.lock
bun.lock
 
 
bunfig.toml
bunfig.toml
 
 
package.json
package.json
 
 
tsconfig.base.json
tsconfig.base.json
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 
vitest.setup.ts
vitest.setup.ts
 
 

Repository files navigation

Alchemy

Ask DeepWiki

Alchemy is an embeddable, TypeScript-native Infrastructure-as-Code (IaC) library for modeling Resources that are Created, Updated and Deleted automatically.

Unlike similar tools like Pulumi, Terraform, and CloudFormation, Alchemy is implemented in pure ESM-native TypeScript code.

Resources are simple memoized async functions that can run in any JavaScript runtime, including the browser, serverless functions and durable workflows.

import alchemy from "alchemy";

// initialize the app (with default state $USER)
const app = await alchemy("cloudflare-worker");

// create a Cloudflare Worker
export const worker = await Worker("worker", {
  name: "my-worker",
  entrypoint: "./src/index.ts",
  bindings: {
    COUNTER: counter,
    STORAGE: storage,
    AUTH_STORE: authStore,
    GITHUB_CLIENT_ID: alchemy.secret(process.env.GITHUB_CLIENT_ID),
    GITHUB_CLIENT_SECRET: alchemy.secret(process.env.GITHUB_CLIENT_SECRET),
  },
});

// finalize the alchemy app (triggering deletion of orphaned resources)
await app.finalize();

Features

  • JS-native - no second language, toolchains, processes, services, etc. to lug around.
  • Async-native - resources are just async functions - no complex abstraction to learn.
  • ESM-native - built exclusively on ESM, with a slight preference for modern JS runtimes like Bun.
  • Embeddable - runs in any JavaScript/TypeScript environment, including the browser!
  • Extensible - implement your own resources with a simple function.
  • AI-first - alchemy actively encourages you to use LLMs to create/copy/fork/modify resources to fit your needs. No more waiting around for a provider to be implemented, just do it yourself in a few minutes.
  • No service - state files are stored locally in your project and can be easily inspected, modified, checked into your repo, etc.
  • No strong opinions - structure your codebase however you want, store state anywhere - we don't care!

Examples

  • CloudFlare Worker with Queue, R2 Bucket, Durable Objects, Workflows and RPC: examples/cloudflare-worker/
  • CloudFlare Worker Bootstrap with Queue and R2 End-to-End Testing: examples/cloudflare-worker-bootstrap/
  • CloudFlare ViteJS Website + API Backend with Durable Objects: examples/cloudflare-vite/
  • CloudFlare TanStack Start Application Deployment: examples/cloudflare-tanstack-start/
  • CloudFlare RedwoodJS Application with D1 Database: examples/cloudflare-redwood/
  • CloudFlare React Router Application Deployment: examples/cloudflare-react-router/
  • CloudFlare Nuxt 3 Application with Pipeline and R2 Bucket: examples/cloudflare-nuxt-pipeline/
  • CloudFlare SvelteKit Application with KV and R2 Storage: examples/cloudflare-sveltekit/
  • Deploy an AWS Lambda Function with a DynamoDB Table and IAM Role: examples/aws-app/

Getting Started

See the Getting Started Guide.

About

Infrastructure as TypeScript

v1.alchemy.run

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

2.2k stars

Watchers

10 watching

Forks

138 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.