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

next-project-scaffolder

v1.0.3

Published

πŸš€ The ultimate React/Next.js project scaffolder with authentication, theming, UI libraries, role-based authorization, and seamless backend integration

Readme

Next Project Scaffolder

npm version npm downloads license

πŸš€ The ultimate Next.js project scaffolder - Create production-ready React applications with authentication, theming, UI libraries, role-based authorization, and seamless backend integration in seconds!

✨ Features

  • πŸ” Complete Authentication System - NextAuth.js with OAuth providers (Google, GitHub) + credentials
  • πŸ”‘ Two-Factor Authentication - Optional 2FA setup with QR codes
  • 🎭 Dark/Light Theming - Built-in theme switching with next-themes
  • 🎨 Multiple UI Libraries - Tailwind CSS, shadcn/ui, Material-UI, Chakra UI support
  • πŸšͺ Role-Based Access Control - Admin/user roles with protected routes
  • πŸ—„οΈ Database Integration - Prisma, Drizzle ORM, MongoDB ready
  • πŸ”’ API Middlewares - Authentication, CORS, rate limiting included
  • ⚑ Modern Stack - Next.js 14, TypeScript, App Router, Server Components
  • πŸ”§ Professional Tooling - ESLint, Prettier, VS Code settings, EditorConfig
  • πŸ“± Responsive Design - Mobile-first approach with Tailwind CSS

πŸš€ Quick Start

NPM (Recommended)

# Create a new project (interactive mode)
npx next-project-scaffolder

# Quick setup with defaults
npx react-quick my-awesome-app

Global Installation

npm install -g next-project-scaffolder

# Then use anywhere
next-project-scaffolder
react-quick my-project

Local Development

git clone https://github.com/yourusername/next-project-scaffolder.git
cd next-project-scaffolder
node bin/create-react-project.js

🎬 Demo

Watch the scaffolder in action:

npx next-project-scaffolder my-app

Answer the prompts:

  • Project name: my-app
  • TypeScript: Yes
  • UI Library: shadcn/ui
  • Authentication: Yes
  • Google OAuth: Yes
  • GitHub OAuth: Yes
  • 2FA: Yes
  • Theming: Yes
  • Database: Prisma
  • README: Yes
  • Package manager: npm
  • Install deps: Yes
  • Git init: Yes

Result: A fully-featured Next.js app with auth, theming, and database ready!

πŸ“± Generated Project Structure

my-app/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                    # Next.js 14 App Router
β”‚   β”‚   β”œβ”€β”€ auth/              # Auth pages (signin, register, 2fa)
β”‚   β”‚   β”œβ”€β”€ dashboard/         # Protected dashboard
β”‚   β”‚   β”œβ”€β”€ api/               # API routes with auth middleware
β”‚   β”‚   β”‚   └── auth/         # NextAuth configuration
β”‚   β”‚   β”œβ”€β”€ layout.tsx         # Root layout with providers
β”‚   β”‚   └── page.tsx           # Home page
β”‚   β”œβ”€β”€ components/            # React components
β”‚   β”‚   β”œβ”€β”€ providers/        # Theme & Auth providers
β”‚   β”‚   β”œβ”€β”€ auth/             # Auth guards & utilities
β”‚   β”‚   └── ui/               # UI components
β”‚   β”œβ”€β”€ lib/                   # Utilities & middleware
β”‚   └── styles/                # Global styles
β”œβ”€β”€ prisma/                    # Database schema
β”œβ”€β”€ middleware.ts              # Route protection
β”œβ”€β”€ .env.local                 # Environment variables
└── Configuration files (next, tailwind, typescript)

πŸ” Authentication Features

  • NextAuth.js Integration - Industry standard authentication
  • Multiple Providers - Google, GitHub, and credentials
  • Role-Based Access - Admin/user roles with permissions
  • Protected Routes - Middleware-based route protection
  • 2FA Support - Optional two-factor authentication
  • Session Management - Secure JWT sessions
  • API Authentication - Middleware for API routes

Demo credentials:

🎨 UI Library Support

Tailwind CSS

  • Utility-first CSS framework
  • Dark mode support
  • Responsive design

shadcn/ui

  • Beautiful components built on Radix UI
  • Fully customizable
  • TypeScript support

Material-UI

  • Google's Material Design
  • Comprehensive component library
  • Theme system

Chakra UI

  • Simple and modular
  • Accessible components
  • Easy theming

πŸ—„οΈ Database Options

Prisma

  • Type-safe database access
  • Automatic migrations
  • Visual database browser

Drizzle ORM

  • Lightweight TypeScript ORM
  • SQL-like syntax
  • Edge runtime compatible

MongoDB

  • NoSQL database
  • Mongoose integration
  • Flexible schema

πŸš€ What You Get

πŸ“± Complete App

  • βœ… Authentication system with OAuth
  • βœ… Dark/light theme toggle
  • βœ… Responsive dashboard
  • βœ… Protected API routes
  • βœ… Role-based permissions
  • βœ… Database integration
  • βœ… Production-ready configuration

πŸ”§ Development Tools

  • βœ… TypeScript configuration
  • βœ… ESLint & Prettier setup
  • βœ… VS Code settings
  • βœ… Git hooks ready
  • βœ… Environment variables
  • βœ… Build optimization

πŸš€ Usage Examples

Create a SaaS Starter

npx next-project-scaffolder saas-app
# Choose: TypeScript, shadcn/ui, Auth with Google+GitHub, Prisma, 2FA

Create an E-commerce Admin

npx next-project-scaffolder admin-panel
# Choose: TypeScript, Material-UI, Auth with roles, Prisma

Create a Blog Platform

npx next-project-scaffolder blog-platform
# Choose: TypeScript, Tailwind, Auth with GitHub, MongoDB

🌟 Why Use This Scaffolder?

✨ Save Hours of Setup - Get a production-ready app in minutes
πŸ”’ Security First - Built-in auth, CORS, rate limiting
🎨 Beautiful UI - Multiple design systems supported
πŸšͺ Role-Based Access - Admin panels and user management
πŸ“ˆ Scalable - Professional folder structure and patterns
πŸ”§ Developer Experience - TypeScript, ESLint, Prettier included

πŸš€ Perfect For

  • πŸš€ Startup MVPs - Get to market faster
  • 🏒 Enterprise Projects - Professional structure and security
  • πŸŽ“ Learning - Best practices and modern patterns
  • πŸ‘₯ Team Development - Consistent project setup

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

πŸ“ License

MIT License - see LICENSE file for details.

πŸš€ Author

Created with ❀️ by Your Name


⭐ Star this repository if it helped you!