next-build-parser is a utility designed to parse the console output of the Next.js `next build` command into a structured, machine-readable JSON format. This allows developers and automated systems to programmatically analyze build artifacts, route sizes, and performance metrics without relying on manual parsing of text output. The package is currently at version 1.3.0, indicating a stable and actively maintained state. It provides both a command-line interface (CLI) for direct use in scripts and a programmatic API for integration into JavaScript/TypeScript applications. Its key differentiator is the ability to break down route-specific `size` versus `firstLoad` metrics, alongside shared chunk information, making it valuable for performance monitoring and build optimization workflows. While no specific release cadence is announced, it appears to be actively developed in response to Next.js updates.
npm install next-build-parserVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to run `next build`, capture its output to a file, and then programmatically parse that file into a structured JSON object using `parseFile` for analysis.
No known issues recorded.
No dependency data recorded yet.