Effect Cloudflare Event API
A production-shaped Effect 4 beta API for Cloudflare Workers. It includes schema-validated HTTP boundaries, branded identifiers, tagged domain and infrastructure errors, Context.Service modules, explicit Layer composition, KV persistence, traced service functions, structured logs, waitUntil background work, and an Alchemy stack with local development and observability.
npx shadcn@latest add https://ui.aryank.space/r/effect-cloudflare-event-api.jsonInstalls from ui.aryank.space. To add it by hand, copy the files in Files below, or register the @compronents namespace via the docs.
outcome
request
service
response
A schema validates the HTTP boundary, a traced service runs, KV persists, and waitUntil finishes background work after the response is sent.