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

scaffold-my-stack

v1.0.0

Published

Interactive CLI to scaffold a full-stack project — pick your frontend, backend, database and ORM.

Readme

scaffold-my-stack

An interactive CLI that scaffolds a full-stack project — you pick the frontend, backend, database, and ORM, it generates working boilerplate wired together.

Usage

Without publishing (run locally):

npm install
node bin/cli.js my-app

After publishing to npm:

npx scaffold-my-stack my-app

CLI flags (powered by commander)

Usage: scaffold-my-stack [options] [project-name]

Arguments:
  project-name    name of the project / folder to create

Options:
  -v, --version   print the current version
  -y, --yes       skip prompts and use defaults (React + Express + PostgreSQL + Prisma)
  --no-git        skip git repository initialization
  --no-docker     skip docker-compose.yml generation
  --pm <manager>  package manager to use (npm, pnpm, yarn) (default: "npm")
  -h, --help      display help for command

Examples:

scaffold-my-stack                          # fully interactive
scaffold-my-stack my-app                    # interactive, name pre-filled
scaffold-my-stack my-app --yes              # instant scaffold with sane defaults
scaffold-my-stack my-app --pm pnpm --no-docker

You'll be walked through prompts like:

? Which frontend do you want? › React (Vite + TypeScript) / Next.js / Vue 3 / None
? Which backend do you want? › Express / Fastify / Go + Gin / None
? Which database do you want? › PostgreSQL / MySQL / MongoDB / SQLite / None
? Which ORM/client for Node.js? › Prisma / Raw driver
? Package manager? › npm / pnpm / yarn
? Generate docker-compose.yml for your database? › yes / no
? Initialize a git repository? › yes / no

What it generates

my-app/
├── frontend/         # chosen frontend, dev server proxies /api to :4000
├── backend/          # chosen backend, wired to your chosen database
├── docker-compose.yml  # if you picked a containerized database
├── README.md         # exact setup commands for YOUR chosen stack
└── .gitignore

Every combination generates real, runnable code:

  • Node backends get a working /api/health route plus a sample /api/items CRUD route wired to Prisma, Mongoose, or a raw driver depending on what you chose.
  • Go backend gets a Gin server with a health route and a stub for your chosen database client (GORM or the Mongo driver).
  • Frontends ship a page that calls the backend's /api/health endpoint so you can confirm the stack is talking to itself.

Supported options

| Layer | Options | |-----------|---------| | Frontend | React (Vite + TS), Next.js (TS), Vue 3 (Vite + TS), none | | Backend | Express (TS), Fastify (TS), Go + Gin, none | | Database | PostgreSQL, MySQL, MongoDB, SQLite, none | | ORM | Prisma, Mongoose, or a raw driver (pg / mysql2 / better-sqlite3) |

Extending it

Each layer is its own generator module under src/generators/:

  • frontend.js — add a new if (choice === 'your-framework') block and a new choice in src/questions.js.
  • backend.js — same pattern; nodeDeps() centralizes dependency wiring per database/ORM.
  • database.js-related logic (Prisma schema, Mongoose model, raw client) lives inside backend.js since it's backend-specific.
  • docker.js — add a services[...] entry for a new containerized database.

Publishing

npm login
npm publish --access public

Make sure the name field in package.json is unique on the npm registry first (npm view scaffold-my-stack to check).