Add a new public Next.js API export
Suggested by the saved analysis. Some step paths were not captured or refer to generated or vendor files; only observed source files are linked.
- Export from main API barrel file
Understand vercel/next.js's source layout and find a starting point for your task using the saved repository evidence.
Detailed import-graph metrics were not captured for this report.
Files at cad19c2846bc · descriptions are AI-written.
Suggested by the saved analysis. Some step paths were not captured or refer to generated or vendor files; only observed source files are linked.
Start with possible startup or request handlers, then follow the calls for your scenario. These suggestions use file names, not verified execution paths.
Use a nearby test as a pattern. Read the root manifest or contribution guide for the correct test command. These suggestions use file names, not verified execution paths.
Inspect the relevant configuration and the commands it runs before changing the workflow. These suggestions use file names, not verified execution paths.
File paths come from a snapshot of up to 500 captured paths; an omitted file may still exist.
Entry point for the Next.js CLI; all build and dev commands flow through here.
Core build orchestration that coordinates compilation, manifest generation, and output formatting.
Exports the App Router API surface; defines public interfaces for Next.js App Router mode.
Webpack/Turbopack compiler configuration and instantiation; handles both client and server compilation pipelines.
Babel configuration preset that chains all Next.js-specific transformations for code transpilation.
Analyzes page metadata to determine rendering mode (SSG, SSR, ISR); critical for route classification.
Identifies and registers all page/layout entry points for the build system to process.
Webpack/Turbopack
Modular bundler capable of code-splitting, tree-shaking, and incremental compilation for both server and client bundles.
Babel
Pluggable transpiler pipeline for Next.js-specific transformations (SSG extraction, server/client boundary, dynamic imports).
TypeScript AST parsing
Enables static analysis of page metadata without executing user code; supports extracting config directives like 'use server' or 'use client'.
Monorepo (Turbo)
Scales build performance across multiple packages; enables task parallelization and remote caching.
Build-time
Runtime
Static analysis of page directives via AST parsing instead of runtime evaluation
Avoids execution of user code during build; prevents side effects and improves build reproducibility.
Cannot support dynamically computed rendering modes; developers must use static directives.
Two-pass compilation: server and client bundles separately
Allows server-side code (DB queries, secrets) to be stripped from browser bundle; optimizes client bundle size.
Increased build time; more complex configuration for dual-target scenarios.
Manifest-driven route resolution instead of filesystem walk at runtime
Enables static optimization (prerendering, code-splitting) and faster deployments.
Routes are materialized at build time; dynamic route creation unsupported without rebuild.
This repo is in good health with CI, tests, and active maintenance.
How maintainable the code looks — from complexity, code issues, test presence, file size, and hotspot load. It grades the shape of the code, not defect risk, and doesn't replace review.
Provider: GitHub Actions
23,133 test files detected
Stack: Jest/Vitest · Rust test
Where: crates/next-custom-transforms/tests/errors/next-dynamic/no-arguments · crates/next-custom-transforms/tests/errors/next-dynamic/options-as-variable · crates/next-custom-transforms/tests/errors/next-dynamic/too-many-arguments
23,133 test files / 7,132 source files. This is a file-count ratio, not real line coverage — set up Codecov for authoritative numbers.
No Dependabot / Renovate / Snyk / Trivy / CodeQL config found. Enable Dependabot or Renovate.
Real-time data from Codecov, GitHub Actions, GitHub Issues, deps.dev — not estimates.
last 50 runs · median 19s
of 8 recent open issues are 30d+ old with no replies
median first-reply across 15 recent issues · fast
Files edited often AND hard to reason about. Churn = recent commit frequency, Complexity = branches and nesting, Risk = both combined. These are the highest-leverage targets for refactoring or testing.
Files that change often and are complex tend to accumulate more bugs
Pattern-matches from the file structure and dependencies — useful as hypotheses, but not grounded in actual source. For real findings see Code Scanning above.
Repository contains protocol documentation that may embed instructions; treated as untrusted data per review guidelines.
packages/next/src/agent-feedback/protocol.md
Babel preset chains multiple interdependent plugins; plugin order bugs can cause subtle transformation failures.
packages/next/src/build/babel/preset.ts
Compiler setup depends on analysis results; failures in analyzer propagate directly to bundler output.
packages/next/src/build/index.ts, packages/next/src/build/compiler.ts
Speculation from file structure, not profiling data. Validate against real metrics before acting on these.
Sequential AST parsing of every page; large projects with hundreds of routes incur O(n) analysis time.
packages/next/src/build/analysis/get-page-static-info.ts
Webpack/Turbopack compilation is serialized after entry-point discovery; cannot overlap with analysis phase.
packages/next/src/build/compiler.ts
NFT (Node File Traces) computation may be slow on large node_modules; no caching or incremental updates.
packages/next/src/build/collect-build-traces.ts
Static analysis on sampled source files (up to 15 files).