Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

next-forge

> 前端框架
Open source

Production-grade Turborepo template for Next.js apps.

7.1K stars0 likes3 views
WebsiteGitHub

About

Production-grade Turborepo template for Next.js apps.

▲ / 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 on
  • Cheap — Free to start with services that scale with you
  • Opinionated — Integrated tooling designed to work together
  • Modern — Latest stable features with healthy community support
  • Safe — End-to-end type safety and robust security posture

Demo

Experience next-forge in action:

  • Web — Marketing website
  • App — Main application
  • Storybook — Component library
  • API — API health check

Features

next-forge comes with batteries included:

Apps

  • Web — Marketing site built with Tailwind CSS and TWBlocks
  • App — Main application with authentication and database integration
  • API — RESTful API with health checks and monitoring
  • Docs — Documentation site powered by Mintlify
  • Email — Email templates with React Email
  • Storybook — Component development environment

Packages

  • Authentication — Powered by Clerk
  • Database — Type-safe ORM with migrations
  • Design System — Comprehensive component library with dark mode
  • Payments — 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 headers
  • CMS — Type-safe content management for blogs and documentation
  • SEO — Metadata management, sitemaps, and JSON-LD
  • AI — AI integration utilities
  • Webhooks — Inbound and outbound webhook handling
  • Collaboration — Real-time features with avatars and live cursors
  • Feature Flags — Feature flag management
  • Cron — Scheduled job management
  • Storage — File upload and management
  • Internationalization — Multi-language support
  • Notifications — In-app notification system

Getting Started

Prerequisites

  • Node.js 20+
  • Bun (or npm/yarn/pnpm)
  • Stripe CLI for local webhook testing

Installation

Create a new next-forge project:

bash
npx next-forge@latest init

Setup

  1. Configure your environment variables
  2. Set up required service accounts (Clerk, Stripe, Resend, etc.)
  3. Run the development server

For detailed setup instructions, read the documentation.

Structure

next-forge uses a monorepo structure managed by Turborepo:

next-forge/
├── apps/           # Deployable applications
│   ├── web/        # Marketing website (port 3001)
│   ├── app/        # Main application (port 3000)
│   ├── api/        # API server
│   ├── docs/       # Documentation
│   ├── email/      # Email templates
│   └── storybook/  # Component library
└── packages/       # Shared packages
    ├── design-system/
    ├── database/
    ├── auth/
    └── ...

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

Issues· 33 open

View all issuesOpen on GitHub
  • #753

    Init command fails with ERESOLVE due to React 19.2.4 vs 19.2.7 mismatch

    bugUpdated Sep 2, 2026
  • #759

    npm install fails with ERESOLVE peer dependency conflict on react-dom/streamdown

    bugUpdated Aug 22, 2026
  • #762

    fix(database): Prisma + Neon throws "Unexpected server response: 101" due to forced ws constructor

    Updated Aug 16, 2026
  • #760

    fix: empty optional environment variables fail Zod validation

    Updated Aug 15, 2026
  • #754

    Add Eve (durable AI agents) to the stack — an agent tier for next-forge

    Updated Jul 16, 2026
  • #733

    CLI init: app scripts hardcode bun --bun regardless of selected package manager

    bugUpdated Jul 14, 2026
  • #755

    Docs: packages/meta.json lists 'ai' and 'testing' pages that don't exist

    Updated Jul 7, 2026
  • #362

    Feature Request: Custom Authentication Form

    enhancementUpdated Jun 20, 2026
  • #749

    App shows error page after login

    bugUpdated May 30, 2026
  • #750

    site is busted

    bugUpdated May 28, 2026

> Tags

TypeScriptbetterstackboilerplateclerkdark-mode

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 22, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架