The best way to control Claude Code, Codex and more from any computer or phone

main
ts 20 lines 542 Bytes
Raw
1 import * as Cloudflare from "@alchemy.run/cloudflare";
2 import * as Stripe from "@alchemy.run/stripe";
3 import * as Alchemy from "alchemy";
4 import * as Effect from "effect/Effect";
5 import * as Layer from "effect/Layer";
6 import Api from "./src/Api.ts";
7
8 export default Alchemy.Stack(
9 "StripeBillingExample",
10 {
11 providers: Layer.mergeAll(Cloudflare.providers(), Stripe.providers()),
12 state: Alchemy.localState(),
13 },
14 Effect.gen(function* () {
15 const api = yield* Api;
16 return {
17 url: api.url.as<string>(),
18 };
19 }),
20 );