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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@madhusha_99/exp-gen

v1.0.1

Published

This is a very simple and small generator for creating Express.js projects with TypeScript or Javascript. You can use it to quickly start a new API project.

Readme

exp-gen 🚀

exp-gen is a lightning-fast, interactive CLI tool designed to scaffold Express.js API projects in seconds. Whether you prefer TypeScript or JavaScript, exp-gen sets up your directory structure, configuration, and database boilerplate so you can start coding immediately.


🚀 Quick Start

To use the generator anywhere on your system, install it globally via npm:

npm install -g @madhusha_99/exp-gen

Once installed, you can initialize a new project using any of the following commands:

exp
# OR
gen
# OR
express-draft

🛠 User Guide

1. Initialize Project

Run exp in your terminal. The interactive CLI (powered by @clack/prompts) will guide you through the setup:

exp-gen

  • Project Name: Enter your project folder name (e.g., my-api).
  • Language: Choose between TypeScript (Recommended) or JavaScript.
  • Database: Select your preferred database.
    • Currently Supported: MongoDB (via Mongoose).
    • Coming Soon: MySQL, PostgreSQL (Prisma), and SQLite.
  • Install Dependencies: Choose Yes to let the CLI run npm install for you automatically.

2. Navigate and Run

After the scaffolding is complete, follow the on-screen instructions:

cd <your-project-name>
npm run dev

📁 Project Structure

exp-gen scaffolds a professional Layered Architecture, ensuring your code remains scalable and maintainable as it grows:

  • configs/: Environment variables and database connection logic.
  • controllers/: Bridges the routes and the business logic; handles requests/responses.
  • dtos/: Data Transfer Objects for validating and shaping incoming data.
  • interfaces/: TypeScript interfaces and types for strict type safety.
  • middlewares/: Custom Express middlewares (Auth, Error handling, Logging).
  • models/: Database schemas (e.g., Mongoose/MongoDB models).
  • repositories/: The data access layer; handles direct database operations.
  • routes/: API endpoint definitions and mapping to controllers.
  • services/: Core Business Logic layer; where the heavy lifting happens.
  • utils/: Shared helper functions and utility classes.
  • app.ts: The application entry point.

🤝 Contributing

We love open source! exp-gen is a community-driven project, and we welcome contributions to make it better.

How to contribute

  1. Add Database Templates: We are looking for contributors to help build out the MySQL, PostgreSQL, and SQLite templates in the src/templates folder.
  2. Report Bugs: Found a glitch? Open an issue.
  3. Feature Requests: Have an idea for a new feature? Let us know!

Local Development Setup

If you want to work on the CLI itself:

  1. Clone the repo: git clone https://github.com/Open-Core-Lab/exp-gen.git
  2. Install dependencies: npm install
  3. Make your changes and submit a Pull Request!

📄 License

This project is licensed under the MIT License.


Happy coding! 🚀 Maintained by Madhusha Prasad