A lightweight CLI tool to scaffold REST or GraphQL APIs with Express.js — in seconds.
- Generate REST API boilerplate
- Generate GraphQL API boilerplate
- Interactive prompts OR direct CLI flags
- Ready-to-use folder structures
- Professional boilerplates with
Express
,Apollo
, and MongoDB setup
Install genapi with npm
npm install -g genapi
Interactive mode
genapi-cli
Direct mode
genapi-cli my-api --framework express --type rest
genapi-cli my-api --framework express --type graphql
my-api/
├── server.js
├── schema/
│ ├── resolvers.js
│ └── typeDefs.js
└── package.json
Contributions are always welcome!
Please read our Contributing Guide to get started and make your contributions effective.
Also, adhere to the project's Code of Conduct to ensure a welcoming community for all contributors.