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

@aayushkumarsingh/create-mern-starter

v1.0.0

Published

Scaffold a MERN stack project (MongoDB, Express, React, Node) with TypeScript and optional Tailwind CSS

Readme

create-mern-starter

npm version license CI

Scaffold a production-ready MERN stack project (MongoDB, Express, React, Node.js) with TypeScript or JavaScript, optional Tailwind CSS v4, ESLint + Prettier, and Docker in seconds.


Quickstart

Run with npm create:

npm create @aayushkumarsingh/mern-starter@latest my-app

Or using npx:

npx @aayushkumarsingh/create-mern-starter my-app

With pnpm:

pnpm create @aayushkumarsingh/mern-starter my-app

With yarn:

yarn create @aayushkumarsingh/mern-starter my-app

With bun:

bun create @aayushkumarsingh/mern-starter my-app

Options & Flags

| Flag | Description | Default | |---|---|---| | [project-directory] | Target directory for your new project | Prompted (my-mern-app) | | --ts, --typescript | Use TypeScript for client and server | Prompted (typescript with -y) | | --js, --javascript | Use JavaScript for client and server | Prompted | | --tailwind / --no-tailwind | Include or omit Tailwind CSS (v4) | Prompted (true with -y) | | --install / --no-install | Install dependencies immediately | Prompted (true with -y) | | --git / --no-git | Initialize a Git repository with initial commit | Prompted (true with -y) | | --pm <npm\|pnpm\|yarn\|bun> | Force package manager selection | Auto-detected | | -y, --yes | Skip prompts and accept all defaults | false | | -h, --help | Display usage instructions and available options | false | | -v, --version | Display current CLI version | false |

Non-Interactive Example

npx @aayushkumarsingh/create-mern-starter my-app --yes

Or with custom flags:

npx @aayushkumarsingh/create-mern-starter my-app --no-tailwind --no-install --no-git

What You Get

  • Frontend:
    • React 19 + TypeScript or JavaScript
    • Vite 8 with instant HMR and dev proxy to /api
    • Optional Tailwind CSS v4 via @tailwindcss/vite (zero legacy config files)
    • ESLint 9 (flat config) with React rules
    • Typed API wrapper and interactive health check status dashboard
  • Backend:
    • Express 5 + Node.js with strict ESM ("module": "NodeNext")
    • Mongoose 9 with graceful offline boot fallback
    • Development live reload via tsx watch (TS) or native Node --watch (JS)
    • ESLint 9 (flat config) for Node
    • Centralized typed environment variables and error handling
  • Root Workspace & Tooling:
    • Concurrently runner (npm run dev) executing both client and server simultaneously
    • Docker & Docker Compose: Full-stack multi-stage containers for MongoDB, Server, and Client (with Nginx reverse proxy)
    • Prettier 3: Pre-configured root formatting (npm run format)
    • Production Deployment Guides: Step-by-step guides for MongoDB Atlas, Render, Railway, Vercel, Netlify, and Docker VPS in docs/deployment.md
    • Auto-generated .env and .gitignore

Generated Project Structure

my-app/
├── client/                     # Vite + React + TypeScript frontend
│   ├── src/
│   │   ├── components/         # Reusable UI components
│   │   ├── pages/              # Application views
│   │   ├── lib/api.ts          # Typed fetch client
│   │   ├── App.tsx             # Root application component
│   │   ├── main.tsx            # React root bootstrap
│   │   └── index.css           # Styling (Tailwind v4 or plain CSS)
│   ├── index.html
│   ├── vite.config.ts          # Vite configuration with /api proxy
│   ├── tsconfig.json
│   ├── tsconfig.app.json
│   ├── tsconfig.node.json
│   └── package.json
├── server/                     # Express + Mongoose + TypeScript backend
│   ├── src/
│   │   ├── config/             # Database connection and environment config
│   │   ├── controllers/        # Route controllers
│   │   ├── middleware/         # 404 handler and error middleware
│   │   ├── models/             # Mongoose schemas & models (User)
│   │   ├── routes/             # Express API routes (/api/health, /api/users)
│   │   ├── app.ts              # Express application assembly
│   │   └── index.ts            # Server entrypoint
│   ├── .env                    # Local environment variables
│   ├── .env.example
│   ├── tsconfig.json
│   └── package.json
├── package.json                # Root scripts (concurrently dev & build)
├── .gitignore
└── README.md

System Requirements

  • Node.js: >= 20.0.0 (Active LTS)
  • MongoDB: Local MongoDB community server or MongoDB Atlas cluster URI (optional during initial boot; server will boot offline with a warning).

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.


License

This project is licensed under the MIT License.