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-stackflow

v1.0.18

Published

Interactive CLI for generating modern full-stack MERN applications.

Readme

create-stackflow

Professional interactive npm CLI for generating modern full-stack MERN and modern web applications.

npx create-stackflow

Overview

create-stackflow is a modern developer-focused CLI tool that automatically generates scalable full-stack applications with production-ready architecture.

The goal of StackFlow is to reduce repetitive setup time and instantly generate:

  • Frontend
  • Backend
  • Authentication
  • CRUD modules
  • Dashboard UI
  • API setup
  • Database connection
  • Protected routes
  • Upload system
  • Validation
  • Modern folder structure

Everything is generated automatically with interactive prompts.


Perfect For

create-stackflow is ideal for:

  • MERN Stack developers
  • Full-stack developers
  • SaaS starters
  • Admin dashboard projects
  • Startup MVPs
  • CRUD applications
  • Authentication systems
  • Portfolio projects
  • Client projects
  • Rapid prototyping
  • Agency development workflows

What StackFlow Generates

Frontend

Supports:

  • React + Vite
  • Next.js

Features:

  • JavaScript or TypeScript
  • Tailwind CSS
  • Shadcn UI
  • React Router DOM
  • Zustand / Redux Toolkit / Context API
  • React Hook Form
  • Zod / Yup validation (Joi is backend-only)
  • Axios API layer
  • TanStack Query
  • Protected routes
  • Dark mode
  • Toast notifications
  • Framer Motion
  • Charts
  • Drag & drop uploads

Backend

Supports:

  • Express.js
  • Fastify
  • NestJS

Features:

  • MongoDB
  • PostgreSQL
  • MySQL
  • SQLite
  • Mongoose / Prisma / Sequelize / Drizzle / TypeORM
  • JWT Authentication
  • bcryptjs / argon2
  • multer
  • Cloudinary
  • Cloudflare R2
  • AWS S3
  • UploadThing
  • Swagger Docs
  • Socket.IO
  • Winston / Morgan / Pino logging
  • Nodemailer
  • AWS SES
  • SendGrid
  • Mailgun
  • Postmark

Generated Features

StackFlow automatically generates:

  • Login page
  • Register page
  • Forgot password
  • Reset password
  • Role-based authentication
  • Refresh token support
  • Dashboard UI
  • CRUD APIs
  • CRUD frontend pages
  • API service layer
  • Validation structure
  • Auth middleware
  • Upload structure
  • Environment variables
  • MongoDB connection
  • Loading states
  • Toast notifications
  • Reusable component architecture

Generated Project Structure

my-app/
│
├── frontend/
│   └── package.json
│
├── backend/
│   └── package.json
│
└── node_modules/   (hoisted at project root after install)

Backend API Architecture

StackFlow uses a scalable modular API architecture.

Main Route File

Example:

router.use("/auth", authRoutes);

router.use("/users", userRoutes);

router.use("/products", productRoutes);

The main route file combines all module routes.


Separate Module Routes

Each module contains its own dedicated route file.

Example:

router.get("/");
router.post("/");
router.put("/:id");
router.delete("/:id");

This keeps the codebase:

  • clean
  • scalable
  • maintainable
  • enterprise-ready

Interactive Setup Questions

StackFlow asks setup questions like:

? Frontend framework?
❯ React
  Next.js

? Language?
❯ TypeScript
  JavaScript

? Database?
❯ MongoDB
  PostgreSQL

? Authentication strategy?
❯ JWT
  Session Auth

Everything is configured automatically based on user selections.


Local Development Workflow

Create Project

npx create-stackflow

Start Project

Start Backend

cd my-app/backend
npm run dev

Start Frontend

cd my-app/frontend
npm run dev

Local MongoDB

Default MongoDB connection:

MONGO_URI=mongodb://127.0.0.1:27017/myapp

CLI Architecture

src/
│
├── cli.js
│
├── commands/
│
├── generators/
│
├── templates/
│
├── prompts/
│
├── utils/
│
└── constants/

StackFlow Workflow

  1. Ask setup questions
  2. Validate project name
  3. Create frontend
  4. Create backend
  5. Install dependencies
  6. Configure Tailwind
  7. Configure Shadcn
  8. Configure backend
  9. Configure database
  10. Generate auth
  11. Generate CRUD
  12. Configure routes
  13. Generate dashboard
  14. Create env files
  15. Start project automatically

Dependency Strategy

StackFlow uses latest stable versions automatically.

Examples:

  • vite@latest
  • create-next-app@latest

Dependencies are dynamically installed based on selected features.


Auth Strategy

Generated authentication system includes:

  • JWT authentication
  • Password hashing
  • Protected APIs
  • Protected frontend routes
  • HTTP-only cookies
  • Refresh tokens
  • Role-based access

CRUD Strategy

StackFlow automatically generates:

Backend

  • Models
  • Controllers
  • Routes
  • Middleware
  • Validation

Frontend

  • Forms
  • Tables
  • Dashboard pages
  • API services
  • Loading states

Why StackFlow?

StackFlow helps developers:

  • save setup time
  • avoid repetitive boilerplate
  • follow scalable architecture
  • build production-ready projects faster
  • maintain consistent code structure

Recommended Stack

Frontend

  • React / Next.js
  • Tailwind CSS
  • Shadcn UI
  • Zustand
  • Axios
  • React Hook Form
  • Zod

Backend

  • Express.js
  • MongoDB
  • Mongoose
  • JWT
  • bcryptjs
  • multer
  • Cloudinary

Future Roadmap

Planned future support:

  • SaaS starters
  • AI application starters
  • React Native
  • Prisma
  • PostgreSQL
  • Redis
  • BullMQ
  • Docker
  • Admin generators
  • Visual generators

Local Testing

npm run smoke

node ./src/cli.js

Publishing

npm publish --access public

Install Globally

npx create-stackflow

License

MIT


Author

StackFlow CLI