▲ / next-forge 
Production-grade Turborepo template for Next.js apps. 
Overview 
next-forge  is a production-grade Turborepo  template for Next.js  apps. It's designed to be a comprehensive starting point for building SaaS applications, providing a solid, opinionated foundation with minimal configuration required.
Built on a decade of experience building web applications, next-forge balances speed and quality to help you ship thoroughly-built products faster.
Philosophy 
next-forge is built around five core principles:
Fast  — Quick to build, run, deploy, and iterate onCheap  — Free to start with services that scale with youOpinionated  — Integrated tooling designed to work togetherModern  — Latest stable features with healthy community supportSafe  — End-to-end type safety and robust security posture 
Demo 
Experience next-forge in action:
Web  — Marketing websiteApp  — Main applicationStorybook  — Component libraryAPI  — API health check 
Features 
next-forge comes with batteries included:
Apps 
Web  — Marketing site built with Tailwind CSS and TWBlocksApp  — Main application with authentication and database integrationAPI  — RESTful API with health checks and monitoringDocs  — Documentation site powered by MintlifyEmail  — Email templates with React EmailStorybook  — Component development environment 
Packages 
Authentication  — Powered by Clerk Database  — Type-safe ORM with migrationsDesign System  — Comprehensive component library with dark modePayments  — Subscription management via Stripe Email  — Transactional emails via Resend Analytics  — Web (Google Analytics ) and product (Posthog )Observability  — Error tracking (Sentry ), logging, and uptime monitoring (BetterStack )Security  — Application security (Arcjet ), rate limiting, and secure headersCMS  — Type-safe content management for blogs and documentationSEO  — Metadata management, sitemaps, and JSON-LDAI  — AI integration utilitiesWebhooks  — Inbound and outbound webhook handlingCollaboration  — Real-time features with avatars and live cursorsFeature Flags  — Feature flag managementCron  — Scheduled job managementStorage  — File upload and managementInternationalization  — Multi-language supportNotifications  — In-app notification system 
Getting Started 
Prerequisites 
Node.js 20+ 
pnpm  (or npm/yarn/bun)Stripe CLI  for local webhook testing 
Installation 
Create a new next-forge project:
1 npx next-forge@latest init 
Setup 
Configure your environment variables 
Set up required service accounts (Clerk, Stripe, Resend, etc.) 
Run the development server 
 
For detailed setup instructions, read the documentation .
Structure 
next-forge uses a monorepo structure managed by Turborepo:
2 ├── apps/           # Deployable applications 
3 │   ├── web/        # Marketing website (port 3001) 
4 │   ├── app/        # Main application (port 3000) 
6 │   ├── docs/       # Documentation 
7 │   ├── email/      # Email templates 
8 │   └── storybook/  # Component library 
9 └── packages/       # Shared packages 
Each app is self-contained and independently deployable. Packages are shared across apps for consistency and maintainability.
Documentation 
Full documentation is available at next-forge.com/docs , including:
Detailed setup guides 
Package documentation 
Migration guides for swapping providers 
Deployment instructions 
Examples and recipes 
 
Contributing 
We welcome contributions! See the contributing guide  for details.
Contributors 
Made with contrib.rocks .
License 
MIT