@krakennn/node-craft
v0.4.6
Published
NodeCraft — CLI and programmatic Node.js project scaffolding tool
Readme
Key Features
- Framework Flexibility: Choose between Express or Fastify.
- Database Agnostic: Support for PostgreSQL, MySQL, and MongoDB.
- Top-Tier ORMs: Integrated with Prisma, TypeORM, Sequelize, or Mongoose. -API Styles: Automatically generate REST APIs or GraphQL (Apollo Server v4). -Turnkey Security: Pre-configured JWT authentication, bcrypt hashing, Helmet, and CORS. -Data Modeling: Design your models directly in the CLI. Node-Craft will automatically generate the corresponding Prisma schemas, interfaces, controllers, and services for you. -Strict TypeScript: 100% typed output, from GraphQL resolvers to Request/Response objects.
💻 Quick Start
You can generate a new project instantly using npx (no installation required):
npx @krakennn/node-craft@latest createGlobal Installation
If you generate projects often, install it globally:
npm install -g @krakennn/node-craft@latest
# or using yarn
yarn global add @krakennn/node-craft@latestThen run the CLI wizard from anywhere:
node-craft createAdding New Models
Once you have generated your node-craft project, you don't have to start over to add a new model.
Navigate inside your generated project directory (where node-craft.json is located) and run:
node-craft addThis will launch the interactive wizard again specifically to add a new entity (like a Post, Comment, Order) to your existing project. Node-Craft will intelligently generate the new Controller, Service, Interfaces, and update your Prisma/TypeORM schema without overwriting your existing code!
After adding the module, remember to update your database:
npm run generate
npm run migrate