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

v1.3.4

Published

πŸš€ NEXTFORGE Architecture - Forge your next-gen e-commerce and SaaS app with speed and power. Use: npx create-nextforge@latest

Readme

create-nextforge

πŸš€ NEXTFORGE Architecture - Forge your next-gen app with speed and power. The ultimate full-stack foundation for modern e-commerce and SaaS applications

⚠️ Important: Use npx create-nextforge@latest to create a new project, NOT npm i create-nextforge

What is NEXTFORGE?

NEXTFORGE is a battle-tested, production-ready architecture that combines the best modern technologies to create a powerful foundation for e-commerce platforms and SaaS applications. Whether you're building the next Shopify, Stripe, or any complex business application, NEXTFORGE provides the robust infrastructure you need.

🎯 Perfect for:

  • E-commerce platforms - Online stores, marketplaces, multi-vendor platforms
  • SaaS applications - Business tools, productivity apps, subscription services
  • Content management - Blogs, corporate websites, documentation sites
  • Complex business applications - CRM, ERP, analytics dashboards

πŸ—οΈ Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Frontend      β”‚    β”‚   Backend       β”‚    β”‚  Infrastructure β”‚
β”‚   Next.js 15    │◄──►│  Payload CMS 3.0│◄──►│     Docker      β”‚
β”‚   React 19      β”‚    β”‚   PostgreSQL    β”‚    β”‚   PostgreSQL    β”‚
β”‚   TailwindCSS   β”‚    β”‚   GraphQL API   β”‚    β”‚     Redis       β”‚
β”‚ TanStack Query  β”‚    β”‚   TypeScript    β”‚    β”‚      N8N        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Installation

# Using npm (recommended)
npx create-nextforge@latest

# Alternative npm syntax
npm create nextforge@latest

# Using bun
bunx create-nextforge@latest

# Using yarn
yarn create nextforge@latest

# Using pnpm
pnpm create nextforge@latest

Usage

Interactive Mode

bunx create-nextforge@latest

With Command Line Options

bunx create-nextforge@latest my-saas-app --directory ./my-saas-app --skip-install

Available Options

  • --template <template> - Template to use (default: default)
  • --directory <directory> - Directory to create the project in
  • --skip-install - Skip dependency installation
  • --skip-git - Skip git repository initialization

πŸ“ Project Structure

After project creation, you'll get this enterprise-ready structure:

my-nextforge-app/
β”œβ”€β”€ frontend/              # Next.js application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ app/          # App Router (Next.js 15)
β”‚   β”‚   β”œβ”€β”€ components/   # Reusable UI components
β”‚   β”‚   └── providers/    # Context providers (TanStack Query)
β”‚   β”œβ”€β”€ public/           # Static assets
β”‚   └── package.json
β”œβ”€β”€ backend/              # Payload CMS backend
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ app/         # API routes
β”‚   β”‚   β”œβ”€β”€ collections/ # Data models (Products, Users, Orders, etc.)
β”‚   β”‚   └── payload.config.ts
β”‚   └── package.json
β”œβ”€β”€ infra/               # Docker infrastructure
β”‚   β”œβ”€β”€ docker-compose.yml
β”‚   └── redis.conf/
β”œβ”€β”€ scripts/             # Management scripts
β”‚   β”œβ”€β”€ start-all.sh
β”‚   β”œβ”€β”€ start-dev.sh
β”‚   └── stop-all.sh
β”œβ”€β”€ workflows/           # N8N automation workflows
β”œβ”€β”€ package.json         # Root package.json
└── README.md

⚑ Getting Started

  1. Create your project:

    bunx create-nextforge@latest my-ecommerce-store
    cd my-ecommerce-store
  2. Install dependencies:

    bun run setup
  3. Start development:

    bun run dev
  4. Access your services:

    • Frontend: http://localhost:3000
    • Backend (Payload CMS): http://localhost:3001
    • N8N Workflows: http://localhost:5678

πŸ› οΈ Available Commands

Main Commands

  • bun run dev - Start development server (without Docker)
  • bun run start - Start all services via Docker
  • bun run stop - Stop all services
  • bun run restart - Restart all services
  • bun run logs - View service logs

Development Commands

  • bun run dev:frontend - Start frontend only
  • bun run dev:backend - Start backend only
  • bun run dev:local - Start frontend and backend locally

Docker Commands

  • bun run docker:up - Start infrastructure via Docker
  • bun run docker:down - Stop Docker containers
  • bun run docker:build - Build Docker images
  • bun run docker:logs - View Docker logs

πŸ”§ Configuration

Environment Variables

Backend (.env)

PAYLOAD_SECRET=your-secret-key-here
DATABASE_URI=postgresql://admin:StrongPass@localhost:5432/nextforge

# Next.js Configuration
NEXT_PUBLIC_SERVER_URL=http://localhost:3001
NEXT_PUBLIC_PAYLOAD_URL=http://localhost:3001

# Development
NODE_ENV=development

Frontend (.env.local)

NEXT_PUBLIC_API_URL=http://localhost:3001
NEXT_PUBLIC_PAYLOAD_URL=http://localhost:3001

Workflows (.env)

N8N_HOST=localhost
N8N_PORT=5678
N8N_PROTOCOL=http
N8N_EDITOR_BASE_URL=http://localhost:5678

# Database
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=localhost
DB_POSTGRESDB_PORT=5432
DB_POSTGRESDB_DATABASE=nextforge
DB_POSTGRESDB_USER=admin
DB_POSTGRESDB_PASSWORD=StrongPass

# Redis
QUEUE_BULL_REDIS_HOST=localhost
QUEUE_BULL_REDIS_PORT=6379

πŸ—οΈ Technology Stack

Frontend

  • Next.js 15 - React framework with App Router
  • React 19 - Latest React with concurrent features
  • TypeScript - Type-safe JavaScript
  • TailwindCSS 4 - Utility-first CSS framework
  • TanStack Query - Server state management
  • Shadcn/ui - Beautiful, accessible UI components

Backend

  • Payload CMS 3.0 - Headless CMS with admin panel
  • PostgreSQL - Robust relational database
  • GraphQL - Flexible API layer
  • Lexical - Rich text editor
  • TypeScript - Full type safety

Infrastructure

  • Docker - Containerization
  • PostgreSQL - Primary database
  • Redis - Caching and session storage
  • N8N - Workflow automation and integrations

Development Tools

  • Bun - Fast JavaScript runtime and package manager
  • ESLint - Code linting
  • Prettier - Code formatting
  • TypeScript - Type checking

🎯 Why NEXTFORGE for E-commerce & SaaS?

βœ… Built for Scale

  • Microservices architecture - Independent scaling of frontend and backend
  • Docker containerization - Easy deployment and scaling
  • PostgreSQL - Handles complex business data relationships
  • Redis caching - Fast response times for high-traffic applications

βœ… Developer Experience

  • Full TypeScript - Catch errors at compile time
  • Hot reloading - Instant feedback during development
  • Modern tooling - Bun, ESLint, Prettier for fast development
  • Comprehensive scripts - One-command setup and deployment

βœ… Business Features

  • Payload CMS - Built-in admin panel for content management
  • N8N Integration - Automate business processes and integrations
  • GraphQL API - Flexible data fetching for complex UIs
  • Rich text editing - Lexical editor for content creation

βœ… Production Ready

  • Security - Built-in authentication and authorization
  • Performance - Optimized for speed and SEO
  • Monitoring - Logging and error tracking
  • Deployment - Docker-based deployment strategy

πŸ“‹ Requirements

  • Node.js >= 18.0.0
  • Bun (recommended) or npm/yarn/pnpm
  • Docker and Docker Compose
  • Git

πŸš€ Deployment

NEXTFORGE is designed for easy deployment on:

  • Vercel (Frontend)
  • Railway/Render (Backend)
  • AWS/GCP/Azure (Full stack)
  • DigitalOcean (VPS deployment)

🀝 Support

Need help? We're here for you:

Create by komvnich

πŸ“„ License

MIT License - see LICENSE file for details.

🀝 Contributing

We welcome contributions! Please read CONTRIBUTING.md for information on how to contribute to the project.


Built with ❀️ for the modern web development community

Start building your next big e-commerce or SaaS application today with NEXTFORGE!