New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details β†’
Socket
Book a DemoSign in
Socket

create-nextforge

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-nextforge

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

latest
Source
npmnpm
Version
1.3.4
Version published
Maintainers
1
Created
Source

create-nextforge

NEXTFORGE Logo

πŸš€ 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

  • Create your project:

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

    bun run setup
    
  • Start development:

    bun run dev
    
  • 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!

Keywords

nextjs

FAQs

Package last updated on 14 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts