# blade47/next.js > AI-generated documentation for github.com/blade47/next.js ## Technical docs: Getting Started - [Overview](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/orientation/overview): Next.js orchestrates its architecture through a structured ecosystem comprising programmatic server entry points like Server Architecture and Development Server, public export facades, dual runtime... - [Quick Start](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/orientation/quick-start): Getting started with Next.js involves initializing development environments, configuring project scaffolding via Create Next App, and compiling the framework packages from source. These foundationa... - [Project Structure](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/orientation/project-structure): The Next.js repository is structured as a monorepo containing standalone web applications, core core compiler and runtime packages, and specialized developer utilities. This architecture partitions... - [Monorepo Workspace](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/orientation/monorepo-workspace): The Next.js repository is structured as a multi-package and multi-engine monorepo governed by declarative workspace configurations. It combines Node.js package management with Rust workspace orches... ## Technical docs: Server Runtime - [Server Architecture](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/server-runtime/server-architecture): The Next.js server architecture provides the foundational runtime environment, HTTP request processing pipeline, and modular routing infrastructure that drives both development and production serve... - [Request Lifecycle](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/server-runtime/request-lifecycle): The request lifecycle orchestrates how HTTP requests are received, parsed, routed, and fulfilled across both Node.js and Edge Runtime environments. It manages request metadata propagation via Async... - [Route Handlers](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/server-runtime/route-handlers): Route Handlers provide a unified mechanism for executing custom server-side request handlers and API endpoints within Next.js, bridging both the App Router (via AppRouteRouteModule) and the Pages A... - [Edge Runtime](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/server-runtime/edge-runtime): The Edge Runtime powers Next.js middleware, edge API routes, and edge-rendered App and Pages router components by executing userland code in a lightweight, web-standard V8 sandbox. Built on top of ... - [Incremental Cache](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/server-runtime/incremental-cache): The incremental cache system in Next.js serves as the central coordination layer for persisting, retrieving, and revalidating cached application data, route responses, and server component executio... - [Async Storage](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/server-runtime/async-storage): Next.js uses asynchronous storage infrastructure built on AsyncLocalStorage to propagate request-scoped execution contexts, render metadata, and dynamic states across asynchronous boundaries. By ma... - [Dynamic Rendering](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/server-runtime/dynamic-rendering): Dynamic Rendering encompasses the mechanisms Next.js uses to track runtime data access, manage partial prerendering (PPR) shells, and defer or evaluate dynamic route segments, search parameters, an... ## Technical docs: Rendering Pipeline - [App Rendering](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/app-rendering/app-rendering): App Rendering manages the generation, transmission, and client-side coordination of React Server Component (RSC) trees across the App Router. It bridges server-side layout and page module execution... - [RSC Transport](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/app-rendering/rsc-transport): RSC Transport defines the wire formats, serialization schemas, and transport tree data structures used to transmit React Server Component responses between server renderers and client routers in Ne... - [Pages Rendering](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/app-rendering/pages-rendering): Pages rendering governs the server-side execution, component tree assembly, and HTML serialization pipeline for legacy Pages Router routes. It provides request dispatching through route modules, co... - [Stream Handling](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/app-rendering/stream-handling): Stream handling manages the asynchronous generation, transformation, piping, and consumption of response data across both Node.js streams and Web standard streams within Next.js. It bridges dispara... - [Server Actions](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/app-rendering/server-actions): Server Actions enable secure remote procedure calls from client-side components to server-side functions by orchestrating compile-time manifest generation, encrypted bound argument serialization, a... - [Instant Validation](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/app-rendering/instant-validation): Instant Validation provides development and build-time verification for React Server Component routes opting into the instant segment configuration, ensuring that prefetched shells and dynamic rend... ## Technical docs: Client Runtime - [Client Runtime](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/client-runtime/client-runtime): The Next.js client runtime acts as the browser-side execution foundation responsible for initializing the application environment, hydrating server-rendered React trees, patching native browser his... - [App Router](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/client-runtime/app-router): The App Router coordinates client-side navigation, React Server Component (RSC) tree reconciliation, and route segment caching in Next.js applications. It processes client actions sequentially, han... - [Router Reducer](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/client-runtime/router-reducer): The router reducer is the centralized state engine for the client-side AppRouter, responsible for computing and transitioning the application's top-level router state across user actions, navigatio... - [Segment Cache](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/client-runtime/segment-cache): The segment cache is a client-side subsystem in the Next.js App Router responsible for storing, coordinating, and incrementally retrieving React Server Component (RSC) route segments and shell data... ## Technical docs: Build System - [Build Pipeline](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/build-pipeline): The build pipeline orchestrates the complete production compilation process for Next.js applications, transforming source files into optimized distribution bundles through CLI Commands, Route Disco... - [Route Discovery](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/route-discovery): Route Discovery handles locating, scanning, and processing all file-based endpoints across the pages and app directories, turning filesystem conventions into structured route metadata and manifests... - [Static Generation](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/static-generation): Static Generation in Next.js pre-renders pages at build time across both the App Router and Pages Router, producing static HTML, React Server Component payloads, and cache artifacts that eliminate ... - [SWC Compiler](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/swc-compiler): The SWC compiler integration in Next.js serves as the high-performance native compilation and minification engine, replacing traditional JavaScript-based toolchains for parsing, transforming, and b... - [Turbopack Engine](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/turbopack-engine): The Turbopack engine coordinates high-performance compilation, route processing, manifest loading, and telemetry workflows within Next.js. Built on Rust-based SWC Compiler bindings, it manages prod... - [Webpack Configuration](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/webpack-configuration): Next.js coordinates its build pipeline and development server by dynamically constructing compiler options Build Pipeline, Hot Reloading. The Webpack configuration system assembles specialized comp... - [Webpack Loaders](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/webpack-loaders): Next.js employs a specialized suite of webpack loaders to synthesize routing structures, handle SWC Compiler transformations, manage React Server Component boundaries, and optimize production bundl... - [Manifest Plugins](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/build-system/manifest-plugins): Manifest Plugins form the backbone of Next.js asset management and runtime dependency resolution by intercepting compiler compilation hooks to generate, serialize, and persist critical JSON and Jav... ## Technical docs: Development Tooling - [Development Server](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/development/development-server): The development server manages the runtime execution, on-demand compilation, routing, and hot module replacement loop for Next.js applications in development. Built around the core Server Architect... - [Hot Reloading](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/development/hot-reloading): Hot Reloading powers the Next.js development experience by propagating code modifications, build status updates, and runtime errors instantly between the Development Server and the browser Client R... - [Developer Overlay](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/development/developer-overlay): The developer overlay is an interactive debugging interface built into Next.js development servers packages/next/src/server/mcp/tools/get-errors.ts:36-42. It acts as a bridge between the running br... - [Request Insights](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/development/request-insights): Request Insights provides diagnostic telemetry for App Router requests and server fetches in development, capturing span trees, timing data, and cache behaviors without requiring an external OpenTe... ## Technical docs: CLI and Telemetry - [CLI Commands](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/cli-telemetry/cli-commands): The command-line interface infrastructure of Next.js provides the primary entrypoint for managing application lifecycles, development workflows, production builds, and diagnostic reporting. Rooted ... - [Upgrade and Codemods](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/cli-telemetry/upgrade-and-codemods): The @next/codemod package provides automated AST transformation pipelines and upgrade tooling designed to modernize Next.js codebases, update deprecated configurations, and safely migrate dependenc... - [Telemetry](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/cli-telemetry/telemetry): Next.js telemetry provides an anonymous data collection system designed to capture usage patterns, feature adoption, compilation results, and performance diagnostics, helping shape product roadmaps... - [Trace Profiling](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/cli-telemetry/trace-profiling): Next.js incorporates robust tracing and performance profiling subsystems designed to capture, record, and export telemetry data across both compilation pipelines and runtime request handlers. By le... ## Technical docs: Built-In Features - [Image Optimization](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/built-in-features/image-optimization): Next.js Image Optimization provides an integrated pipeline for resizing, reformatting, and caching raster and vector graphics to maximize web performance and core web vitals. The subsystem spans cl... - [Font Optimization](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/built-in-features/font-optimization): The font optimization subsystem in Next.js automatically self-hosts Google Fonts and local font files at build time to eliminate external network requests, enhance privacy, and optimize performance... - [Metadata Generation](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/built-in-features/metadata-generation): Metadata Generation handles the discovery, accumulation, resolution, and HTML rendering of static and dynamic metadata across route segment hierarchies in the App Rendering engine. It bridges user-... - [Third Party Libraries](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/built-in-features/third-party-libraries): The @next/third-parties package provides optimized React components and utility functions for popular third-party libraries and services in Next.js applications. By integrating directly with Next.j... - [TypeScript Plugin](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/built-in-features/typescript-plugin): The Next.js TypeScript plugin acts as an integrated language service extension that enhances the developer experience within the app directory by enforcing correct file conventions, validating segm... ## Technical docs: Companion Packages - [Create Next App](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/companion-packages/create-next-app): create-next-app serves as the official scaffolding utility for initializing Next.js applications, automating the end-to-end setup process from command-line parsing to a ready-to-run repository pack... - [Bundle Analyzer](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/companion-packages/bundle-analyzer): The Bundle Analyzer provides an interactive web-based interface and data pipeline for visualizing, traversing, and diffing bundle sizes and module compositions across Next.js application builds. By... - [ESLint Rules](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/companion-packages/eslint-rules): The Next.js ESLint integration provides specialized linting rules through [[ESLint Rules]] in packages like @next/eslint-plugin-next and [[eslint-config-next]] to enforce framework best practices, ... - [Benchmark Harness](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/companion-packages/benchmark-harness): The @vercel/devlow-bench benchmark harness is a specialized CLI-driven performance measurement tool designed to evaluate developer workflows and runtime characteristics in Next.js applications pack... - [Routing Utility](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/companion-packages/routing-utility): Routing utilities orchestrate incoming HTTP request evaluation, path matching, middleware coordination, and destination compilation across Next.js routing layers. Provided primarily via @next/routi... ## Technical docs: How It Works - [Cache Miss Route Fetching](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/how-it-works/cache-miss-route-fetching): The execution flow starting from fetchRouteOnCacheMiss down to encodeCacheBustingSearchParam coordinates fetching prefetch route information when a segment cache miss occurs, and ensures network re... - [Middleware Request Cookie Parsing](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/technical/how-it-works/middleware-request-cookie-parsing): The HandleCatchallMiddlewareRequest -> GetCookieParser process describes how Next.js catches incoming requests intended for middleware handling, validates them against defined route matchers and co... ## User guide: Getting Started - [Installation and Setup](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/getting-started/installation-and-setup): Getting started with Next.js is quick and straightforward. You can instantly create and initialize a new Next.js project on your machine using the official setup tool. This tool guides you through ... - [Project Directory Structure](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/getting-started/project-directory-structure): Organizing your project correctly helps keep your code clean, maintainable, and easy for the system to understand. A standard project directory structure typically includes folders for your web pag... ## User guide: Core Features - [Routing and Navigation](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/core-features/routing-and-navigation): The routing and navigation system determines how users move through your application and how URLs map to your user interface. Next.js uses a file-system based router where folders and special files... - [Server and Client](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/core-features/server-and-client): When building your user interface, choosing between Server Components and Client Components helps you balance performance, bundle size, and interactivity. - [Data Fetching and Mutation](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/core-features/data-fetching-and-mutation): Data fetching and mutation allow your application to retrieve information from backend services or APIs and securely submit form updates or modifications. This page explains how data retrieval hand... - [Styling and Typography](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/core-features/styling-and-typography): Styling and typography shape the visual appearance of your application. This software supports global CSS stylesheets, CSS modules for scoped styling, and Tailwind CSS for utility-first styling. In... - [Images and Metadata](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/core-features/images-and-metadata): Images and metadata play a crucial role in how your website looks, performs, and ranks in search engine results. Optimizing your images ensures that your pages load quickly for visitors, while prop... ## User guide: How-To Guides - [Building API Endpoints](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/how-to-guides/building-api-endpoints): Building API endpoints and reverse proxies allows you to extend your application's capabilities by creating custom server-side routes and connecting your frontend seamlessly to external services. A... - [Authentication and Authorization](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/how-to-guides/authentication-and-authorization): This page explains how to protect your private pages and manage user sessions securely within the application. Protecting private pages ensures that only verified individuals can view sensitive are... - [Caching and Revalidation](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/how-to-guides/caching-and-revalidation): When you visit a website or use an application, loading pages instantly is important. To make this happen, the system uses caching—a process that saves a copy of your content so it can load immedia... - [Deploying to Production](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/how-to-guides/deploying-to-production): Deploying your Next.js application to production involves creating an optimized production build and starting your application server on a cloud hosting platform or a custom server. Next.js prepare... ## User guide: Configuration - [Environment and Settings](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/configuration/environment-and-settings): Managing your project environment and configuration options is essential for tailoring how your application builds and runs. Next.js relies on two main mechanisms for project-wide configuration: en... - [Upgrading Next.js Versions](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/configuration/upgrading-next-js-versions): Upgrading your Next.js application to newer versions helps you access the latest features, performance improvements, and security updates. Next.js provides built-in commands and automated transform... ## User guide: Troubleshooting - [Handling Common Errors](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/guide/troubleshooting/handling-common-errors): When building and running your application, you may occasionally encounter build failures, compilation issues, or runtime exceptions. This guide explains how these errors are handled, how to inspec... ## Optional - [Full Documentation](https://www.doc0.dev/docs/8f4009b0-65bd-4480-9b00-e201f0914bb3/llms-full.txt): Complete documentation content in a single file