SkillAgentSearch skills...

Initgen

Generate project starters with zero setup.

Install / Use

/learn @PankajKumardev/Initgen
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

🚀 InitGen v2.1.0

npm version npm downloads GitHub stars License: MIT

A powerful, interactive command-line tool to scaffold modern web and backend projects with zero configuration. Create production-ready projects with your preferred tech stack in seconds!

📖 Full Documentation & Interactive Demo

🎉 What's New in v2.1.0

  • 🗄️ Database ORM Support - Added Prisma ORM and Drizzle ORM backend options with PostgreSQL
  • 🚀 Auto Database Creation - Drizzle templates now include db:create script for seamless database setup
  • 🔧 Enhanced Database Workflows - Complete database migration, schema management, and studio tools
  • Zero Configuration Databases - Database templates work out of the box with Docker PostgreSQL
  • 🛠️ Robust Environment Loading - Fixed environment variable loading for reliable database connections

✨ Previous Features (v2.0)

  • 🎨 shadcn/ui Integration - Ready-to-use setup for shadcn/ui with automatic configuration
  • 🔧 Enhanced Next.js Templates - Improved file structure with proper .jsx/.tsx extensions
  • 📦 Tailwind CSS v4 Support - Available in specific templates (Vite + Tailwind, shadcn variants)
  • 🎯 Better JavaScript Support - Proper .jsx extensions for JavaScript projects
  • Automatic Setup - Pre-configured project structure and dependencies

✨ Features

  • 🎨 Beautiful Interactive UI - Animated CLI with colorful prompts
  • 🔧 12 Tech Stacks Supported - React, Next.js, Vue, Node.js, Python frameworks + shadcn/ui + Database ORMs
  • �️ Database ORM Integration - Prisma and Drizzle ORM with PostgreSQL support
  • �📦 Automatic Dependency Installation - npm install & pip install handled automatically
  • 🎯 TypeScript Support - Choose JS or TS for React, Vue, Next.js, Node.js, and Database projects
  • 🎨 Tailwind CSS v4 - Modern styling in Tailwind-specific templates
  • 🧩 shadcn/ui Setup - Ready-to-use configuration for adding shadcn components
  • 🚀 Database Tools - Migration, schema generation, database studio, and auto-creation scripts
  • 📝 Auto-generated Files - README, .gitignore, and project structure
  • Ready to Run - Projects work immediately after creation
  • 🔧 Smart File Extensions - Proper .jsx/.tsx extensions based on language choice

📋 Supported Stacks

Frontend Frameworks

  • React (Vite) - Lightning-fast React development with Vite
  • Vite + React + Tailwind v4 - React with modern Tailwind CSS
  • Vite + shadcn/ui - Complete React + Tailwind + shadcn component library
  • Next.js - The React framework for production with Tailwind v4
  • Next.js + shadcn/ui - Next.js with shadcn components and Tailwind v4
  • Vue (Vite) - Progressive JavaScript framework

Backend Frameworks

  • Node.js + Express - Fast, minimalist web framework
  • Node.js + Express + Prisma (PostgreSQL) - 🆕 Express with Prisma ORM and PostgreSQL database
  • Node.js + Express + Drizzle (PostgreSQL) - 🆕 Express with Drizzle ORM and PostgreSQL database
  • Python + Flask - Lightweight WSGI web framework
  • Python + Django - High-level Python web framework

🛠️ Installation

Quick Start (Recommended)

Use npx to run without installation:

npx initgen

Global Installation

Install once, use anywhere:

npm install -g initgen

Then run with:

initgen

Local Installation (for development)

Clone the repository:

git clone https://github.com/PankajKumardev/initgen.git
cd initgen
npm install

Run locally:

node index.js

Link globally (optional):

npm link

🚀 Usage

Run the CLI

node index.js

Or if you've linked it globally:

initgen

Interactive Prompts

  1. Choose your tech stack - Select from 7 different frameworks
  2. Project name - Enter your project name
  3. Choose language - Select JavaScript or TypeScript (where applicable)
  4. Initialize git - Optionally set up git repository

Example

$ initgen

Project Structure Generator 🚀
  ___       _ _    ____
 |_ _|_ __ (_) |_ / ___| ___ _ __
  | || '_ \| | __| |  _ / _ \ '_ \
  | || | | | | |_| |_| |  __/ | | |
 |___|_| |_|_|\__|\____|\___|_| |_|

Welcome to InitGen CLI!

? Choose your tech stack: React (Vite)
? Project name: my-app
? Choose language: TypeScript
? Initialize git repository? Yes

🔨 Creating your project...
📦 Installing dependencies...
✓ Installed dependencies
✓ Project created successfully!

📁 Project: my-app
📍 Location: /path/to/my-app

🚀 Next steps:

   cd my-app
   npm run dev

✨ Happy coding! ✨

📦 What Gets Created

React (Vite) / Vue

my-app/
├── src/
│   ├── App.jsx/tsx
│   ├── App.css
│   └── main.jsx/tsx
├── public/
├── index.html
├── package.json
├── .gitignore
└── README.md

Vite + shadcn/ui

my-app/
├── src/
│   ├── components/
│   │   └── ui/
│   │       ├── Button.jsx/tsx
│   │       └── Card.jsx/tsx
│   ├── lib/
│   │   └── utils.js/ts
│   ├── App.jsx/tsx
│   └── main.jsx/tsx
├── public/
├── index.html
├── tailwind.config.js
├── components.json
├── package.json
├── .gitignore
└── README.md

Next.js

my-app/
├── src/
│   └── app/
│       ├── page.jsx/tsx
│       ├── layout.jsx/tsx
│       └── globals.css
├── public/
├── tailwind.config.js
├── package.json
├── .gitignore
└── README.md

Next.js + shadcn/ui

my-app/
├── src/
│   ├── components/
│   │   └── ui/
│   │       ├── button.jsx/tsx
│   │       └── card.jsx/tsx
│   ├── lib/
│   │   └── utils.js/ts
│   └── app/
│       ├── page.jsx/tsx
│       ├── layout.jsx/tsx
│       └── globals.css
├── public/
├── tailwind.config.js
├── components.json
├── package.json
├── .gitignore
└── README.md

Node.js + Express

my-app/
├── src/
│   ├── index.js
│   ├── routes/
│   ├── controllers/
│   └── models/
├── package.json
├── .env.example
├── .gitignore
└── README.md

Node.js + Express + Prisma (PostgreSQL) 🆕

my-app/
├── src/
│   └── index.js/ts
├── prisma/
│   └── schema.prisma
├── package.json
├── .env.example
├── .gitignore
└── README.md

Node.js + Express + Drizzle (PostgreSQL) 🆕

my-app/
├── src/
│   ├── index.js/ts
│   └── db/
│       ├── index.js/ts
│       ├── schema.js/ts
│       ├── create.js/ts
│       ├── migrate.js/ts
│       └── migrations/
├── drizzle.config.js
├── package.json
├── .env.example
├── .gitignore
└── README.md

Python + Flask

my-app/
├── app/
│   ├── __init__.py
│   ├── routes/
│   └── models/
├── run.py
├── requirements.txt
├── .gitignore
└── README.md

Python + Django

my-app/
└── my-app/
    ├── my-app/
    │   ├── settings.py
    │   ├── urls.py
    │   ├── wsgi.py
    │   └── asgi.py
    ├── app/
    │   ├── views.py
    │   └── urls.py
    ├── manage.py
    ├── requirements.txt
    └── .gitignore

🎨 Templates

All templates come with:

  • Minimal Professional Design - Clean black background with gradient accents
  • Responsive Layout - Works on all screen sizes
  • Production Ready - Optimized configuration
  • Pre-configured Routes - Basic API endpoints included
  • Developer Experience - Hot reload, fast refresh, auto-restart
  • Tailwind CSS v4 - Available in Tailwind-specific templates
  • Smart File Extensions - Proper .jsx/.tsx based on language choice

Template Features

Frontend Templates

  • Full-width black background
  • Gradient hero text with Tailwind v4 styling
  • 3-column feature grid with responsive design
  • Minimal footer with creator credit
  • Framework-specific optimizations
  • Automatic Tailwind configuration

shadcn/ui Templates

  • Ready-to-use shadcn/ui setup (no pre-installed components)
  • Automatic dependency management (clsx, tailwind-merge, class-variance-authority)
  • Proper TypeScript/JavaScript project structure
  • shadcn CLI configuration (components.json)
  • Tailwind v4 compatibility with CSS variables
  • Ready for npx shadcn@latest add commands

Backend Templates

  • RESTful API structure
  • Health check endpoint
  • Environment variable support
  • Development server configuration
  • Organized folder structure

Database Templates 🆕

Prisma ORM Templates

  • Complete Prisma setup with PostgreSQL
  • Auto-generated Prisma Client
  • Database migration support
  • Prisma Studio for database visualization
  • TypeScript/JavaScript support
  • Commented schema examples for quick start

Drizzle ORM Templates

  • Lightweight Drizzle ORM setup with PostgreSQL
  • Automatic database creation (db:create script)
  • Schema generation and migration tools
  • Drizzle Studio for database management
  • TypeScript/JavaScript support
  • Robust environment variable handling
  • Zero-config Docker PostgreSQL compatibility

🔧 Configuration

Stack Commands

Located in src/config/stackCommands.js

Gitignore Templates

Located in src/config/gitignoreTemplates.js

Template Files

Located in src/templates/

  • reactVite.js - React + Vite template
  • tailwind.js - Tailwind CSS v4 setup
  • shadcn.js - Vite + React + shadcn/ui template (New in v2.0)
  • nextjs.js - Next.js template with shadcn/ui support (Enhanced in v2.0)
  • vue.js - Vue template
  • manualProjects.js - Node.js, Flask, Django templates

📝 Scripts

{
  "scripts": {
    "start": "node index.js",
    "dev": "node index.js"
  }
}

🤝 Dependencies

CLI Tools

  • chalk - Terminal styling
  • gradient-string - Gradient text effects
  • chalk-animation - Animated text
  • figlet - ASCII art text
  • inquirer

Related Skills

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated1mo ago
Forks1

Languages

JavaScript

Security Score

90/100

Audited on Mar 3, 2026

No findings