Scaffold production-ready REST APIs in seconds. Express, Fastify, or Hono — your choice.
npx create-api my-api- ⚡ Multiple frameworks — Express, Fastify, Hono
- 📦 TypeScript ready — Full type support out of the box
- 🔐 Auth included — JWT authentication setup
- 🗄️ Database options — Prisma, Drizzle, or none
- 🧪 Testing setup — Vitest configured
- 📝 API docs — Swagger/OpenAPI ready
- 🐳 Docker — Dockerfile & docker-compose included
- 🚀 Production ready — ESLint, Prettier, Husky
npx create-apinpx create-api my-apinpx create-api my-api --framework express --typescript --auth --db prisma| Flag | Description | Choices |
|---|---|---|
--framework |
Backend framework | express, fastify, hono |
--typescript |
Use TypeScript | — |
--auth |
Include JWT auth | — |
--db |
Database ORM | prisma, drizzle, none |
--docker |
Include Docker files | — |
--git |
Initialize git repo | — |
--install |
Install dependencies | — |
my-api/
├── src/
│ ├── routes/
│ │ ├── index.ts
│ │ └── auth.ts
│ ├── middleware/
│ │ └── auth.ts
│ ├── utils/
│ │ └── response.ts
│ └── index.ts
├── prisma/
│ └── schema.prisma
├── tests/
│ └── api.test.ts
├── .env.example
├── .gitignore
├── Dockerfile
├── docker-compose.yml
├── package.json
├── tsconfig.json
└── README.md
npx create-api my-api -f express -t -d prismanpx create-api my-api -f fastify -t -d drizzlenpx create-api my-api -f hono -tcd my-api
npm run dev # Start development server
npm run build # Build for production
npm run test # Run testsMIT
built by @sharey1332
