
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
next-in-it-stats
Advanced tools
Keep track of your next.js app's bundle.
next-in-it-stats is a TypeScript package that helps you analyze and keep track of your nextjs bundle sizes over time. It provides valuable insights into the growth and changes in your bundles, allowing you to set limits and detect bloated dependencies.
npm install next-in-it-stats
// next.config.js
const withInItStats = require('next-in-it-stats/cjs')({
legacy: true,
}); // or import withInItStats from 'next-in-it-stats' if you use esm;
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};
module.exports = withInItStats(nextConfig);
Now when you run npm build
you'll see a link to analyze your bundles.
You can click it to see the bundle analyzer report.
Or you can see your apps page (after logging in) and click on the app you want to analyze.
// .in-itrc.js or "in-it" in package.json or any other supported config file
module.exports = {
"track": "**/*", // globby to which files in the build dir you want to track (default)
"limits": [
{
"server/chunks/**/*": {
"maxSize": "10mb",
}
},
{
"static/chunks/app/layout*": {
"maxSize": "10kb",
"maxDifference": "10%", // not yet supported
}
},
{
"static/chunks/app/page*": {
"maxSize": "5kb",
"prohibitedModules": [ // not yet supported
"lodash",
]
}
},
]
};
FAQs
next plugin to generate in-it stats
The npm package next-in-it-stats receives a total of 0 weekly downloads. As such, next-in-it-stats popularity was classified as not popular.
We found that next-in-it-stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.