npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

kickstart-express

v2.2.9

Published

A powerful CLI tool to quickly scaffold Express.js projects with modern tooling and best practices

Readme

Kickstart Express v2

License: ISC Downloads

Buy me a coffee

A powerful CLI tool to quickly scaffold Express.js projects with modern tooling and best practices. Get up and running with a fully configured Express server in seconds!

npm TypeScript Docker

⚡ Quick Demo

# Install globally
npm install -g kickstart-express

# Create a new project (default behavior)
kickstart-express --name my-api --language ts --docker --src --structured

# Add features to existing projects
kickstart-express add database

# Navigate and start
cd my-api && pnpm dev

Your Express server will be running at http://localhost:3000 with a fully configured TypeScript setup, Docker containers, and organized project structure!

📋 Table of Contents

🚀 Features

  • Simplified CLI - No more "create" command needed - scaffolding is the default behavior
  • Feature Addition - Use add command to extend existing projects with databases, auth, and more
  • Interactive & Non-Interactive CLI - Use prompts or pass arguments for instant scaffolding
  • Graceful Interruption Handling - Safe Ctrl+C handling with automatic cleanup of partial projects
  • TypeScript & JavaScript Support - Choose your preferred language
  • Flexible Project Structure - From simple to enterprise-ready architectures
  • Docker Ready - Optional Docker configuration included
  • Modern Tooling - Pre-configured with ESLint, hot reloading, and build scripts
  • Best Practices - CORS, environment variables, and structured routing

📦 Installation

Global Installation (Recommended)

npm install -g kickstart-express

Using npx (No Installation Required)

npx kickstart-express

🛠️ Usage

Creating New Projects

Interactive Mode (Default)

Simply run the command and follow the interactive prompts to create a new Express.js project:

kickstart-express

The CLI will ask you:

  1. Project name - Name for your new project directory
  2. Language - Choose between TypeScript or JavaScript
  3. Include Dockerfile - Optional Docker configuration
  4. Source folder structure - Simple or organized structure
  5. Structured architecture - Controllers, services, and routes separation

Non-Interactive Mode (CLI Arguments)

You can also pass arguments to skip prompts and scaffold projects instantly:

kickstart-express --name my-api --language ts --docker --src --structured

Available CLI Options for Project Creation:

  • -n, --name <project-name> - Specify the project name
  • -l, --language <ts|js> - Choose language (default: ts)
  • -d, --docker - Include Dockerfile and docker-compose.yml
  • -s, --src - Create src folder structure
  • --structured - Use structured architecture (controllers, services, routes)
  • -h, --help - Display help information
  • -V, --version - Display version number

Adding Features to Existing Projects

Kickstart Express v2 introduces the add command to extend your existing projects with both interactive and non-interactive modes:

kickstart-express add <feature> [options]

Available Features:

  • database or db - Add database support (MongoDB/PostgreSQL with Mongoose/Prisma/Drizzle)
  • auth - Add authentication support (JWT or Clerk)

Interactive Mode (Default)

When run without CLI options, prompts guide you through feature configuration:

# Interactive database setup
kickstart-express add db

# Interactive authentication setup
kickstart-express add auth

Non-Interactive Mode (CLI Arguments)

Skip prompts by providing configuration options directly:

Database CLI Options:

  • --db-type <mongodb|postgres> - Database type selection
  • --orm <mongoose|prisma|drizzle> - ORM/ODM selection

Authentication CLI Options:

  • --auth-type <jwt|clerk> - Authentication type selection

Examples:

Interactive Mode:

# Add database support (interactive prompts)
kickstart-express add database

# Add authentication (interactive prompts)
kickstart-express add auth

Non-Interactive Mode:

# Add MongoDB with Mongoose
kickstart-express add db --db-type mongodb --orm mongoose

# Add PostgreSQL with Prisma
kickstart-express add db --db-type postgres --orm prisma

# Add PostgreSQL with Drizzle
kickstart-express add db --db-type postgres --orm drizzle

# Add JWT authentication
kickstart-express add auth --auth-type jwt

# Add Clerk authentication
kickstart-express add auth --auth-type clerk

Fallback Behavior: When run outside a kickstart-express project, the add command will prompt to create a new project instead.

Examples

Create Projects:

TypeScript project with all features:

kickstart-express -n my-awesome-api -l ts -d -s --structured

Simple JavaScript project:

kickstart-express --name simple-app --language js

Partial arguments (will prompt for missing options):

kickstart-express --name my-app --docker

Quick TypeScript project with src folder:

kickstart-express -n quick-api -s

Add Features:

Interactive Mode:

# Add database support with prompts
cd my-existing-project
kickstart-express add database

# Add authentication with prompts
kickstart-express add auth

Non-Interactive Mode:

cd my-existing-project

# Add MongoDB with Mongoose
kickstart-express add db --db-type mongodb --orm mongoose

# Add PostgreSQL with Prisma
kickstart-express add db --db-type postgres --orm prisma

# Add JWT authentication
kickstart-express add auth --auth-type jwt

Complete Workflow:

# 1. Create project
kickstart-express -n my-api -l ts -d -s --structured

# 2. Add database support
cd my-api
kickstart-express add db --db-type postgres --orm prisma

# 3. Add authentication
kickstart-express add auth --auth-type jwt

📁 Project Templates

Simple Structure

my-app/
├── src/
│   └── index.ts
├── package.json
├── tsconfig.json (TS only)
├── .env
└── .gitignore

Structured Architecture

my-app/
├── src/
│   ├── controllers/
│   │   └── calculator.controller.ts
│   ├── routes/
│   │   └── calculator.route.ts
│   ├── services/
│   │   └── calculator.service.ts
│   ├── models/
│   │   └── calculation.model.ts
│   └── index.ts
├── package.json
├── tsconfig.json (TS only)
├── .env
└── .gitignore

With Docker

my-app/
├── src/
├── Dockerfile
├── docker-compose.yml
├── package.json
└── ...

🏃‍♂️ Quick Start Examples

Create New Projects

Interactive Mode

# Install the CLI
npm install -g kickstart-express

# Create a new project interactively
kickstart-express

# Follow the prompts:
# ✓ Project name: my-awesome-api
# ✓ Language: TypeScript
# ✓ Include Dockerfile: Yes
# ✓ Source folder: Yes
# ✓ Structured architecture: Yes

# Navigate to your project
cd my-awesome-api

# Install dependencies (if not already done)
pnpm install

# Start development server
pnpm dev

Non-Interactive Mode

# Install the CLI
npm install -g kickstart-express

# Create a new project with CLI arguments
kickstart-express --name my-awesome-api --language ts --docker --src --structured

# Navigate to your project
cd my-awesome-api

# Install dependencies (if not already done)
pnpm install

# Start development server
pnpm dev

Add Features to Existing Projects

# Navigate to your existing kickstart-express project
cd my-existing-project

# Add database support
kickstart-express add database

# Add authentication
kickstart-express add auth

Your Express server will be running at http://localhost:3000!

📋 Available Scripts

All generated projects come with these npm scripts:

TypeScript Projects

pnpm dev      # Start development server with hot reload
pnpm build    # Build for production
pnpm start    # Start production server

JavaScript Projects

pnpm dev      # Start development server with nodemon
pnpm start    # Start production server

Docker Projects

docker-compose up --build  # Build and run with Docker

🔧 Requirements

  • Node.js >= 18.0.0
  • pnpm (recommended) or npm
  • Git (for project initialization)

🌟 What's Included

Project Scaffolding

  • Express.js - Fast, unopinionated web framework
  • CORS - Cross-origin resource sharing middleware
  • dotenv - Environment variable management

Feature Addition (New in v2)

  • Database Support - MongoDB/PostgreSQL with multiple ORMs
  • Authentication - JWT or Clerk authentication systems

TypeScript Projects Include

  • TypeScript - Static type checking
  • tsx - TypeScript execution and watch mode
  • @types/express - Express type definitions

JavaScript Projects Include

  • nodemon - Automatic restart on file changes

Optional Docker Setup

  • Multi-stage Dockerfile - Optimized for production
  • docker-compose.yml - Ready for development and deployment
  • pnpm integration for fast installs

🚀 Generated API Example

The structured template includes a sample calculator API:

// GET /api/calculator
{
  "message": "Calculator API is working!"
}

// POST /api/calculator/add
{
  "a": 5,
  "b": 3
}
// Response: { "result": 8 }

📝 Project Structure Explained

Controllers

Handle HTTP requests and responses, delegating business logic to services.

Routes

Define API endpoints and middleware, connecting URLs to controller methods.

Services

Contain business logic, data processing, and external API calls.

Models

Define data structures, interfaces, and type definitions.

📚 Documentation

For comprehensive documentation, visit our online docs at docs.kickstart.express:

v2 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for detailed information on:

  • Setting up the development environment
  • Code style guidelines
  • Testing procedures
  • Pull request process

Quick Development Setup

git clone https://github.com/bhaveshsinghal95182/kickstart-express.git
cd kickstart-express
npm install

Testing the CLI

node index.js --name test-project --language ts --src

💖 Support

If you find this tool helpful, please consider:

📄 License

This project is licensed under the ISC License - see the LICENSE file for details.

🙏 Acknowledgments

  • Built with Inquirer.js for interactive CLI
  • Uses Ora for elegant terminal spinners
  • Inspired by modern Express.js best practices

Happy coding! 🎉

Made with ❤️ by bhaveshsinghal95182

GitHub followers GitHub stars