michalsanger/Next.js Turbopack Bundle Size

Tracks bundle size changes across PRs for Next.js apps built with Turbopack

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 7, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: michalsanger/nextjs-turbopack-bundle-size@ec880b8676c8e9859ce95aa51e910bb672388f76 # v1.8.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenGitHub token for downloading baseline artifact and posting PR commentsyes
stats-pathPath to the Turbopack stats file generated by the build. Auto-detects between .next/diagnostics/route-bundle-stats.json (Next.js 16.2+) and .next/server/webpack-stats.json (legacy).no.next/diagnostics/route-bundle-stats.json
artifact-nameArtifact name prefix used to store and retrieve the baseline stats. The branch name is appended automatically (e.g. turbopack-main-stats-main).noturbopack-main-stats
minimum-change-thresholdByte threshold below which a size change is considered unchangedno0
budget-percent-increase-redPercentage threshold for showing 🔴 on size increases. Increases above this percentage show 🔴, others show 🟡. Default 0 means all increases show 🔴.no0
app-nameApplication name to display in the report header. When set, the sticky PR comment uses a unique header (bundle-size-report-{name}) so matrix jobs do not overwrite each other. If not set, a generic report header and the default comment key are used.no""
baseline-workflowWorkflow file name (e.g. main.yml) to look up the baseline artifact in. Useful when the baseline is produced by a different workflow than the one running this action. When unset, the artifact is searched in the current workflow.no""

no outputs