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

create-enterprise-backend

v0.1.2

Published

Enterprise backend scaffolder (Express/Fastify + Mongo/Supabase)

Readme

🚀 Create Enterprise Backend

Create Enterprise Backend is a modern CLI tool to scaffold production-ready backend applications using Express or Fastify with MongoDB or Supabase, following enterprise best practices.

⚡ Zero setup. Secure defaults. Scalable structure.

✨ Features

🏗 Frameworks

  • Express
  • Fastify

🗄 Databases

  • MongoDB (Mongoose)
  • Supabase (Postgres + Auth)

🔐 Authentication Ready

  • JWT-based auth
  • Auth guards & middleware
  • Safe handling when DB/env is missing

🧱 Enterprise Architecture

  • Modular structure
  • Controllers / Services / Routes
  • Centralized error handling
  • Environment-based config

🛠 Developer Experience

  • Nodemon preconfigured
  • Clean logging
  • Safe defaults (no crash if DB not configured)

📦 Installation & Usage

You don't need to install anything globally.

Create a new backend project

npx create-enterprise-backend my-backend

or inside the current folder:

npx create-enterprise-backend .

🧭 Interactive Setup

The CLI will guide you through:

  • Framework selection (Express / Fastify)
  • Database selection (MongoDB / Supabase)
  • Dependency installation (Install now or later)

📁 Project Structure (Example)

src/
├── app.js
├── server.js
├── routes.js
├── config/
│   ├── env.js
│   ├── db.js          # Mongo
│   └── supabase.js    # Supabase
├── modules/
│   └── auth/
│       ├── auth.controller.js
│       ├── auth.routes.js
│       ├── auth.service.js
│       ├── auth.schema.js
│       └── user.model.js
├── middlewares/
├── services/
└── utils/
    ├── error-handler.js
    ├── jwt-guard.js
    └── db-guard.js

▶️ Running the Server

npm run dev

Output example:

⚠️ Supabase public client disabled (missing env vars)
⚠️ Supabase admin client disabled (missing env vars)
🚀 Server running at http://localhost:5000

This is intentional and safe — the app won't crash if env vars are missing.

🔑 Environment Variables

MongoDB

PORT=5000
MONGO_URI=mongodb://localhost:27017/myapp
JWT_SECRET=supersecret

Supabase

PORT=5000
SUPABASE_URL=https://xxxx.supabase.co
SUPABASE_ANON_KEY=public-key
SUPABASE_SERVICE_ROLE_KEY=service-role-key
JWT_SECRET=supersecret

🛡 Database Safety (Enterprise Behavior)

  • If DB is not connected, DB-dependent routes are automatically blocked
  • The server never crashes due to missing DB or env variables
  • Clear warnings are logged instead

🧪 Health Check

GET /health

Response:

{
  "status": "ok"
}

📌 Node Version

  • Node.js ≥ 18

🧠 Philosophy

This tool is built for:

  • SaaS backends
  • Admin dashboards
  • APIs at scale
  • Teams that care about structure & safety

It's meant to be extended, not locked.

🛣 Roadmap

  • PostgreSQL & MySQL templates
  • Docker & CI templates
  • CLI flags (--yes, --framework, --db)
  • Prisma / Drizzle support
  • RBAC & multi-tenant auth

🤝 Contributing

Contributions are welcome!

  • Fork the repo
  • Create a feature branch
  • Submit a PR

📄 License

MIT © Imad Hussain Khan

⭐ Support

If this tool helped you:

  • ⭐ Star the repo
  • 🐛 Report issues
  • 💡 Suggest features