create-effect
A full-stack Effect app on Cloudflare, from one command.
bunx @siebix/create-effectView the source on GitHubThree questions
It asks what it needs to know and nothing else. Every question has a flag, and --yes takes every default.
? Project name (my-app) › shop
? Install dependencies with bun? › yes
? Initialize a git repository? › yes
✔ Created shop
✔ Initialized a git repository
✔ Installed dependencies
cd shop
bun run devWhat you get
An Effect API on a Cloudflare Worker
Endpoints declared with HttpApi, so every request is validated against a schema before your handler runs.
A Foldkit website
Prerendered at build time, hydrated in the browser, and written in the Elm architecture on top of Effect.
One typed contract
The website's client is derived from the contract the API implements. Change one side and the other stops compiling.
The whole stack on your machine
bun run dev and bun run test start the API and the website locally. Neither needs a Cloudflare account.
Deployed with Alchemy
One stack file deploys both to Cloudflare, and every stage is its own copy.
Tooling that is already set up
Ultracite, oxlint with Effect rules, oxfmt and effect-tsgo, passing from the first commit.
What comes next
- A database: D1 or Neon Postgres
- Sign-in with better-auth
- CI/CD with a preview for every pull request