Next.js
In-depth entryby Vercel · Framework · also known as Next, NextJS
React framework from Vercel for full-stack web applications with file-based routing, server components, server-side rendering, static generation and API route handlers
Overview
Next.js is an open-source React framework developed by Vercel and released under the MIT license. It supplies the pieces React leaves to the application: a file-system router (the App Router) with nested layouts, React Server Components that render on the server and send no JavaScript for static parts, server actions for mutations, route handlers for JSON APIs, and a build pipeline that chooses static generation, server rendering or streaming per route. Image, font and script components handle common performance work, and the Turbopack bundler is the default in recent versions.
Next.js runs as a Node.js server (or on Bun), as a fully static export, or on Vercel's managed platform where it was designed; self-hosting with PM2 or a container behind a reverse proxy is well documented and common. It is a frequent choice for marketing sites, dashboards, documentation portals and the front ends of data products, including several sites in this encyclopedia's ecosystem, because one codebase covers rendering, data fetching and small APIs.
The framework's breadth is also its cost. The App Router introduced a new mental model (server versus client components, caching layers, streaming) that differs from the older Pages Router, and migrations between major versions regularly require code changes. Caching behavior has been revised across releases, which can surprise teams. Some features work best or only on Vercel's infrastructure, so self-hosters should check parity. Build output and memory use are heavier than lighter frameworks, and the Content Security Policy configuration for server components needs care.
Capabilities
- File-system routing with nested layouts
- React Server Components and streaming server rendering
- Static site generation and incremental regeneration
- Server actions and API route handlers
- Image, font and script optimization components
- Turbopack-based development and production builds
- Middleware for request rewriting and authentication
- Static export mode for CDN hosting
Typical workflows
- Build a data dashboard that fetches on the server and streams to the client
- Ship a static marketing site exported to a CDN
- Co-locate a JSON API with the React front end in one repository
- Self-host behind Caddy with PM2 on a cluster node
Strengths
- Complete full-stack toolkit around React
- Flexible rendering per route
- Large community and template ecosystem
- MIT license
Limitations
- Complex mental model and frequent major-version changes
- Caching semantics have shifted across releases
- Some features favor Vercel's platform
- Heavier builds than minimal frameworks
Prerequisites
- Node.js or Bun; React
Who it is for
- Front-end and full-stack developers
- Teams building content sites and dashboards
- Developers deploying on Vercel or self-hosting Node
Alternatives & comparison
React alone is a UI library; Next.js adds routing, rendering strategies and server features on top of it. Vite with React gives a lighter client-side setup for single-page applications that do not need server rendering. Express or Hono paired with a Vite front end is the traditional alternative when the API and the UI are deployed separately rather than inside one Next.js server.
- Docusaurus
React-based static site generator from Meta for documentation sites with MDX content, versioning, localization and a plugin architecture
Open sourceOpen source - Express
Minimal, unopinionated web framework for Node.js with routing and middleware, the long-standing default for HTTP servers in the Node ecosystem
Open sourceOpen source - FastAPI
Python web framework for building HTTP APIs from type-annotated functions, with automatic validation through Pydantic and generated OpenAPI documentation
Open sourceOpen source - Hono
Small TypeScript web framework built on Web Standard APIs that runs unchanged on Cloudflare Workers, Deno, Bun, Node.js and other JavaScript runtimes
Open sourceOpen source - React
Component-based JavaScript library for building user interfaces, created at Meta, with hooks, a declarative rendering model and server components
Open sourceOpen source - Vite
Front-end build tool and development server that serves native ES modules during development and bundles for production, with a plugin API shared by many frameworks
Open sourceOpen source
Sources & verification
Primary sources consulted for this record. Claims are tied to the fields each source supports; the automated link checker re-verifies every URL on a schedule.
- Licensehttps://github.com/vercel/next.js/blob/canary/license.mdchecked Nov 1, 2026
Supports: license_spdx
- Official documentationchecked Nov 1, 2026
- Official sitechecked Nov 1, 2026
- Repositorychecked Nov 1, 2026
- Confidence
- High
- Reviewed
- Nov 1, 2026
- Links
- Verified · Nov 2, 2026
Spotted an error?
More in Web frameworks & UI
FastAPI
Sebastián Ramírez (tiangolo) and FastAPI contributors · API development & tooling
Python web framework for building HTTP APIs from type-annotated functions, with automatic validation through Pydantic and generated OpenAPI documentation
Node.js
OpenJS Foundation · Programming languages & runtimes
Server-side JavaScript runtime built on the V8 engine, governed by the OpenJS Foundation, with npm as its package ecosystem
TypeScript
Microsoft · Programming languages & runtimes
Statically typed superset of JavaScript from Microsoft that compiles to plain JavaScript and powers editor tooling across the web ecosystem
Vercel
Vercel Inc. · Cloud & hosting providers
Front-end cloud from the makers of Next.js that deploys web applications from git with preview environments, serverless and edge functions and a global CDN
shadcn/ui
shadcn · Web frameworks & UI
Collection of accessible React components built on Radix primitives and Tailwind CSS that are copied into a project's source rather than installed as a dependency
Turborepo
Vercel · CI/CD & build automation
Build system for JavaScript and TypeScript monorepos from Vercel that runs package tasks in dependency order with local and remote caching