create-wizhype
v1.7.7
Published
Scaffolding tool for wizhypejs projects — file-based backend routing project generator
Maintainers
Readme
create-wizhype
A tiny CLI to scaffold a new wizhypejs project with sensible defaults — TypeScript and JavaScript templates included. Get started quickly with an opinionated file-based backend routing structure and working dev scripts.
Quick demo
npx create-wizhype my-app
cd my-app
npm install
npm run devThe generated project includes a minimal server entry and example routes so you can curl the API immediately:
curl http://localhost:3000/helloFeatures
- Scaffolds TypeScript or JavaScript projects
- Adds
src/routes/with example API routes - Includes working dev/build/start scripts
- Small, focused template ideal for microservices and prototypes
CLI usage
Create a new project (TypeScript is the default):
npx create-wizhype my-appCreate with JavaScript instead of TypeScript:
npx create-wizhype my-app --language js
# or short form
npx create-wizhype my-app -l jsGenerated project structure
The scaffolded app contains everything you need to start:
my-app/
├─ package.json # scripts: dev, build, start
├─ src/
│ ├─ index.ts # server entry
│ └─ routes/
│ ├─ hello/route.ts
│ └─ health/route.ts
├─ tsconfig.json # when TS selected
└─ README.mdExample route
// src/routes/hello/route.ts
import { HypeResponse } from "wizhypejs";
export async function GET(req: any) {
const item="Get method is called"
return HypeResponse.json({ status: 'ok', data:item })
}Tips
- Run
npm run devto start with hot reload during development. - Use
npm run buildandnpm startfor production.
Learn more
- Project: https://github.com/wizforge/wizhypejs
- Routing docs: see
src/routesin the scaffolded app
Contributing
If you'd like to improve the templates, open a PR in this repository. Tests and small quality-of-life templates (auth, DB, uploads) are welcome.
License
MIT
