[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73940":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},73940,"alchemy","alchemy-run\u002Falchemy","alchemy-run","Infrastructure as TypeScript","https:\u002F\u002Falchemy.run",null,"TypeScript",2133,137,11,105,0,12,25,91,36,100.02,"Apache License 2.0",false,"main",[],"2026-06-12 04:01:12","# Alchemy\n \n[![Ask DeepWiki](https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg)](https:\u002F\u002Fdeepwiki.com\u002Falchemy-run\u002Falchemy)\n\nAlchemy is an embeddable, TypeScript-native Infrastructure-as-Code (IaC) library for modeling Resources that are Created, Updated and Deleted automatically.\n\nUnlike similar tools like Pulumi, Terraform, and CloudFormation, Alchemy is implemented in pure ESM-native TypeScript code.\n\nResources are simple memoized async functions that can run in any JavaScript runtime, including the browser, serverless functions and durable workflows.\n\n```ts\nimport alchemy from \"alchemy\";\n\n\u002F\u002F initialize the app (with default state $USER)\nconst app = await alchemy(\"cloudflare-worker\");\n\n\u002F\u002F create a Cloudflare Worker\nexport const worker = await Worker(\"worker\", {\n  name: \"my-worker\",\n  entrypoint: \".\u002Fsrc\u002Findex.ts\",\n  bindings: {\n    COUNTER: counter,\n    STORAGE: storage,\n    AUTH_STORE: authStore,\n    GITHUB_CLIENT_ID: alchemy.secret(process.env.GITHUB_CLIENT_ID),\n    GITHUB_CLIENT_SECRET: alchemy.secret(process.env.GITHUB_CLIENT_SECRET),\n  },\n});\n\n\u002F\u002F finalize the alchemy app (triggering deletion of orphaned resources)\nawait app.finalize();\n```\n\n# Features\n\n- **JS-native** - no second language, toolchains, processes, services, etc. to lug around.\n- **Async-native** - resources are just async functions - no complex abstraction to learn.\n- **ESM-native** - built exclusively on ESM, with a slight preference for modern JS runtimes like Bun.\n- **Embeddable** - runs in any JavaScript\u002FTypeScript environment, including the browser!\n- **Extensible** - implement your own resources with a simple function.\n- **AI-first** - alchemy actively encourages you to use LLMs to create\u002Fcopy\u002Ffork\u002Fmodify resources to fit your needs. No more waiting around for a provider to be implemented, just do it yourself in a few minutes.\n- **No service** - state files are stored locally in your project and can be easily inspected, modified, checked into your repo, etc.\n- **No strong opinions** - structure your codebase however you want, store state anywhere - we don't care!\n\n# Examples\n\n- CloudFlare Worker with Queue, R2 Bucket, Durable Objects, Workflows and RPC: [examples\u002Fcloudflare-worker\u002F](.\u002Fexamples\u002Fcloudflare-worker\u002Falchemy.run.ts)\n- CloudFlare Worker Bootstrap with Queue and R2 End-to-End Testing: [examples\u002Fcloudflare-worker-bootstrap\u002F](.\u002Fexamples\u002Fcloudflare-worker-bootstrap\u002Findex.ts)\n- CloudFlare ViteJS Website + API Backend with Durable Objects: [examples\u002Fcloudflare-vite\u002F](.\u002Fexamples\u002Fcloudflare-vite\u002Falchemy.run.ts)\n- CloudFlare TanStack Start Application Deployment: [examples\u002Fcloudflare-tanstack-start\u002F](.\u002Fexamples\u002Fcloudflare-tanstack-start\u002Falchemy.run.ts)\n- CloudFlare RedwoodJS Application with D1 Database: [examples\u002Fcloudflare-redwood\u002F](.\u002Fexamples\u002Fcloudflare-redwood\u002Falchemy.run.ts)\n- CloudFlare React Router Application Deployment: [examples\u002Fcloudflare-react-router\u002F](.\u002Fexamples\u002Fcloudflare-react-router\u002Falchemy.run.ts)\n- CloudFlare Nuxt 3 Application with Pipeline and R2 Bucket: [examples\u002Fcloudflare-nuxt-pipeline\u002F](.\u002Fexamples\u002Fcloudflare-nuxt-pipeline\u002Falchemy.run.ts)\n- CloudFlare SvelteKit Application with KV and R2 Storage: [examples\u002Fcloudflare-sveltekit\u002F](.\u002Fexamples\u002Fcloudflare-sveltekit\u002Falchemy.run.ts)\n- Deploy an AWS Lambda Function with a DynamoDB Table and IAM Role: [examples\u002Faws-app\u002F](.\u002Fexamples\u002Faws-app\u002Falchemy.run.ts)\n\n# Getting Started\n\nSee the [Getting Started Guide](https:\u002F\u002Falchemy.run\u002Fgetting-started).\n","Alchemy 是一个使用 TypeScript 实现的基础设施即代码（IaC）库，用于自动创建、更新和删除资源。其核心功能包括纯 ESM-native TypeScript 代码实现，支持异步函数定义资源，并可在任何 JavaScript 运行时环境中运行，如浏览器、无服务器函数等。项目具有嵌入式、可扩展性以及AI优先等特点，无需额外的语言工具链或服务，状态文件本地存储便于管理和版本控制。适合需要在现代 JavaScript 环境下快速搭建和管理云资源的应用场景，特别是对于偏好TypeScript开发团队而言，Alchemy提供了一种更加灵活简便的资源配置方式。",2,"2026-06-11 03:48:01","high_star"]