create-nwire
v0.7.1
Published
Scaffolder for new Nwire projects. Run `pnpm create nwire <name>` or `npm create nwire <name>` to bootstrap.
Downloads
103
Maintainers
Readme
create-nwire
Scaffold a new Nwire project.
# pnpm
pnpm create nwire my-app --template L2
# npm
npm create nwire my-app -- --template L2
# yarn
yarn create nwire my-app --template L2Templates
| Level | Shape | What you get |
| ----- | -------------- | -------------------------------------------------------------------------------------------------------- |
| L1 | Minimal | One POST route. httpInterface + endpoint. No app, no DI. ~30 LOC. |
| L2 | Service | Todo CRUD. Container, plugin lifecycle, structured errors, middleware, in-memory store. |
| L4 | Enterprise | Moderation queue. createApp, modules, actors, events, stateful workflow (saga), projection, resolvers. |
Pick the smallest level that fits — graduating up is just re-scaffolding into a new folder and porting your code one file at a time.
What ships with every level
- Zod-validated route handlers, automatic OpenAPI at
/openapi.json - Graceful shutdown via
@nwire/endpoint(SIGTERM drain + lightship probes) - K8s probes on port 9000 (
/readyz,/healthz) - TypeScript strict + Bundler module resolution for fast dev loops
After scaffold
cd my-app
pnpm install
pnpm devThen point nwire studio at the running app to get live traces +
manual dispatch.
Flags
| Flag | Effect |
| ------------ | ------------------------------------------------ |
| --template | L1 | L2 | L4 (defaults to L2) |
| --name | Override project name (defaults to dir basename) |
