Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
vercel-labs avatar

Next Forge

  • 1.1k installs
  • 229 repo stars
  • Updated July 27, 2026
  • vercel-labs/vercel-plugin

next-forge provides documented workflows for next-forge expert guidance - production-grade Turborepo monorepo SaaS starter by Vercel. Use when working in a next-forge project, scaffolding with `npx next-fo

About

The next-forge skill next-forge expert guidance - production-grade Turborepo monorepo SaaS starter by Vercel. Use when working in a next-forge project, scaffolding with `npx next-forge init`, or editing @repo/* workspace packages. # next-forge next-forge is a production-grade Turborepo template for building Next.js SaaS applications. It provides a monorepo structure with multiple apps, shared packages, and integrations for authentication, database, payments, email, CMS, analytics, observability, security, and more. ## Quick Start Initialize a new project: ```bash npx next-forge@latest init ``` The CLI prompts for a project name and package manager (bun, npm, yarn, or pnpm). Set the `DATABASE_URL` in `packages/database/.env` pointing to a PostgreSQL database (Neon recommended). Run database migrations: `bun run migrate` 3. Add any optional integration keys to the appropriate `.env.local` files. Start development: `bun run dev` All integrations besides the database are optional. Missing environment variables gracefully disable features rather than causing errors. ## Architecture Overview The monorepo contains apps and packages.

  • Set the `DATABASE_URL` in `packages/database/.env` pointing to a PostgreSQL database (Neon recommended).
  • Run database migrations: `bun run migrate`
  • Add any optional integration keys to the appropriate `.env.local` files.
  • Start development: `bun run dev`
  • `apps/app/.env.local` - Main app keys (Clerk, Stripe, etc.)

Next Forge by the numbers

  • 1,082 all-time installs (skills.sh)
  • Ranked #222 of 1,048 Mobile Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

next-forge capabilities & compatibility

Capabilities
set the `database_url` in `packages/database/.en · run database migrations: `bun run migrate` · add any optional integration keys to the appropr · start development: `bun run dev` · `apps/app/.env.local` main app keys (clerk, st
Use cases
documentation
From the docs

What next-forge says it does

# next-forge next-forge is a production-grade Turborepo template for building Next.js SaaS applications.
SKILL.md
It provides a monorepo structure with multiple apps, shared packages, and integrations for authentication, database, payments, email, CMS, analytics, observability, security, and more.
SKILL.md
npx skills add https://github.com/vercel-labs/vercel-plugin --skill next-forge

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.1k
repo stars229
Security audit2 / 3 scanners passed
Last updatedJuly 27, 2026
Repositoryvercel-labs/vercel-plugin

How do I use next-forge for the task described in its SKILL.md triggers?

next-forge expert guidance - production-grade Turborepo monorepo SaaS starter by Vercel. Use when working in a next-forge project, scaffolding with `npx next-forge init`, or editing @repo/* workspa.

Who is it for?

Teams invoking next-forge when the user request matches documented triggers and prerequisites.

Skip if: Skip when cached docs are missing, the request is a negative trigger, or another sibling skill owns the workflow.

When should I use this skill?

next-forge expert guidance - production-grade Turborepo monorepo SaaS starter by Vercel. Use when working in a next-forge project, scaffolding with `npx next-forge init`, or editing @repo/* workspace packages.

What you get

Step-by-step guidance grounded in next-forge documentation and reference files.

Files

SKILL.mdMarkdownGitHub ↗

next-forge

next-forge is a production-grade Turborepo template for building Next.js SaaS applications. It provides a monorepo structure with multiple apps, shared packages, and integrations for authentication, database, payments, email, CMS, analytics, observability, security, and more.

Quick Start

Initialize a new project:

npx next-forge@latest init

The CLI prompts for a project name and package manager (bun, npm, yarn, or pnpm). After installation:

1. Set the DATABASE_URL in packages/database/.env pointing to a PostgreSQL database (Neon recommended). 2. Run database migrations: bun run migrate 3. Add any optional integration keys to the appropriate .env.local files. 4. Start development: bun run dev

All integrations besides the database are optional. Missing environment variables gracefully disable features rather than causing errors.

Architecture Overview

The monorepo contains apps and packages. Apps are deployable applications. Packages are shared libraries imported as @repo/<package-name>.

Apps (in /apps/):

AppPortPurpose
app3000Main authenticated SaaS application
web3001Marketing website with CMS and SEO
api3002Serverless API for webhooks, cron jobs
email3003React Email preview server
docs3004Documentation site (Mintlify)
storybook6006Design system component workshop
studio3005Prisma Studio for database editing

Core Packages: auth, database, payments, email, cms, design-system, analytics, observability, security, storage, seo, feature-flags, internationalization, webhooks, cron, notifications, collaboration, ai, rate-limit, next-config, typescript-config.

For detailed structure, see references/architecture.md.

Key Concepts

Environment Variables

Environment variable files live alongside apps and packages:

  • apps/app/.env.local — Main app keys (Clerk, Stripe, etc.)
  • apps/web/.env.local — Marketing site keys
  • apps/api/.env.local — API keys
  • packages/database/.envDATABASE_URL (required)
  • packages/cms/.env.local — BaseHub token
  • packages/internationalization/.env.local — Languine project ID

Each package has a keys.ts file that validates environment variables with Zod via @t3-oss/env-nextjs. Type safety is enforced at build time.

Inter-App URLs

Local URLs are pre-configured:

  • NEXT_PUBLIC_APP_URL=http://localhost:3000
  • NEXT_PUBLIC_WEB_URL=http://localhost:3001
  • NEXT_PUBLIC_API_URL=http://localhost:3002
  • NEXT_PUBLIC_DOCS_URL=http://localhost:3004

Update these to production domains when deploying (e.g., app.yourdomain.com, www.yourdomain.com).

Server Components First

page.tsx and layout.tsx files are always server components. Client interactivity goes in separate files with 'use client'. Access databases, secrets, and server-only APIs directly in server components and server actions.

Graceful Degradation

All integrations beyond the database are optional. Clients use optional chaining (e.g., stripe?.prices.list(), resend?.emails.send()). If the corresponding environment variable is not set, the feature is silently disabled.

Common Tasks

Running Development

bun run dev                  # All apps
bun dev --filter app         # Single app (port 3000)
bun dev --filter web         # Marketing site (port 3001)

Database Migrations

After changing packages/database/prisma/schema.prisma:

bun run migrate

This runs Prisma format, generate, and db push in sequence.

Adding shadcn/ui Components

npx shadcn@latest add [component] -c packages/design-system

Update existing components:

bun run bump-ui

Adding a New Package

Create a new directory in /packages/ with a package.json using the @repo/<name> naming convention. Add it as a dependency in consuming apps.

Linting and Formatting

bun run lint                 # Check code style (Ultracite/Biome)
bun run format               # Fix code style

Testing

bun run test                 # Run tests across monorepo

Building

bun run build                # Build all apps and packages
bun run analyze              # Bundle analysis

Deployment

Deploy to Vercel by creating separate projects for app, web, and api — each pointing to its respective root directory under /apps/. Add environment variables per project or use Vercel Team Environment Variables.

For detailed setup and customization instructions, see:

  • references/setup.md — Installation, prerequisites, environment variables, database and Stripe CLI setup
  • references/packages.md — Detailed documentation for every package
  • references/customization.md — Swapping providers, extending features, deployment configuration
  • references/architecture.md — Full monorepo structure, Turborepo pipeline, scripts

Related skills

FAQ

What does next-forge do?

next-forge expert guidance - production-grade Turborepo monorepo SaaS starter by Vercel. Use when working in a next-forge project, scaffolding with `npx next-forge init`, or editing @repo/* workspace packages.

When should I use next-forge?

next-forge expert guidance - production-grade Turborepo monorepo SaaS starter by Vercel. Use when working in a next-forge project, scaffolding with `npx next-forge init`, or editing @repo/* workspace packages.

What are common prerequisites?

--- name: next-forge description: next-forge expert guidance - production-grade Turborepo monorepo SaaS starter by Vercel.

Is Next Forge safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.