create-effect-http-starter
v1.0.1
Published
Scaffold a new Effect HTTP server project with schema-first API design
Maintainers
Readme
create-effect-http-starter
Scaffold a new Effect HTTP server project with schema-first API design.
Usage
# npm
npm create effect-http-starter@latest -- my-app
# pnpm
pnpm create effect-http-starter my-app
# bun
bun create effect-http-starter my-app
# npx
npx create-effect-http-starter@latest my-appThen:
cd my-app
bun install # or pnpm install / npm install
bun dev # or pnpm dev / npm run devTemplates
Currently available:
- default — Schema-first HTTP API with in-memory CRUD, health check, and Scalar docs
More templates coming soon.
bun create effect-http-starter my-app --template defaultWhat's Included
The default template provides:
- Schema-first API using
HttpApi+HttpApiBuilder - Full CRUD on
/userswith in-memory storage - Health check at
/health - Scalar API docs at
/docs - OpenAPI spec at
/openapi.json - Hot reload via
bun --hot - Effect language service setup for IDE support
- Pre-configured
bun.lockfor reproducible installs
Project Structure
my-app/
├── src/
│ ├── Api.ts # API schema & endpoint definitions
│ ├── Server.ts # Server wiring & launch
│ ├── users/
│ │ └── Handlers.ts # User CRUD handlers & repo
│ └── system/
│ └── Handlers.ts # Health check handler
├── index.ts
├── package.json
├── tsconfig.json
├── .gitignore
└── .envLicense
MIT
