PRO

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.

Install
npx shadcn@latest add https://ui.aryank.space/r/effect-cloudflare-event-api.json

Installs from ui.aryank.space. To add it by hand, copy the files in Files below, or register the @compronents namespace via the docs.

Visualization
outcome
request
unknown
service
unknown
response
const event = yield* events.create(input); return yield* json({ event }, 201)

A schema validates the HTTP boundary, a traced service runs, KV persists, and waitUntil finishes background work after the response is sent.

Files

Dependencies