For bundle optimization tools, the strongest matches are danvk/source-map-explorer (This repository is a source-map bundle analyzer that visualizes), webpro-nl/knip (Knip is a static analysis tool that identifies unused) and sverweij/dependency-cruiser (Dependency-cruiser is a static analysis tool for JavaScript and). webpack/webpack-bundle-analyzer and google/closure-compiler round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Hand-picked JavaScript bundle optimizer open-source tools. Compare the top repositories by stars and activity to find the best fit.
source-map-explorer is a source map bundle analyzer that visualizes the space usage of bundled JavaScript files. It functions as a bundle size auditor and visualizer, using source maps to identify which original modules and files occupy the most space within a production bundle. The tool generates an interactive treemap to represent bundle composition and calculates compressed gzip sizes to estimate actual network transfer costs. It further serves as a code coverage mapper by overlaying execution data onto source maps to identify unused code segments that can be deferred or split. The utilit
This repository is a source-map bundle analyzer that visualizes module space usage and calculates compressed sizes, directly fitting the category while focusing specifically on source-map-driven analysis rather than broader build performance profiling.
Knip is a static analysis project cleaner and dead code analyzer for JavaScript and TypeScript projects. It identifies and removes unused files, dependencies, and exports to maintain a lean codebase and reduce bundle size. The tool functions as a monorepo dependency auditor, tracking exports and dependencies across multiple workspaces to find dead code in large multi-package projects. It specifically targets the removal of unused packages from project manifests and the deletion of unreferenced exports. Its capabilities cover dead code elimination, JavaScript dependency management, and TypeSc
Knip is a static analysis tool that identifies unused files, dependencies, and exports in JavaScript and TypeScript projects to help reduce bundle size and clean up codebases, though it lacks direct bundle visualization or asset compression features.
Dependency-cruiser is a JavaScript and TypeScript dependency analyzer and architectural linter. It serves as a static analysis tool for mapping, visualizing, and validating module relationships within a codebase without requiring code execution. The project is distinguished by its ability to enforce architectural boundaries through a rule-based system. It detects circular dependencies, identifies orphan modules and dead code, and validates dependency constraints using allowed and forbidden relationship rules. It also provides quantitative stability analysis by calculating afferent and efferen
Dependency-cruiser is a static analysis tool for JavaScript and TypeScript that maps dependencies, visualizes module graphs, and detects dead code, which fits well within this category despite lacking direct asset compression or bundle size reduction features.
webpack-bundle-analyzer is a bundle size analysis tool and Webpack build plugin that visualizes the composition of web application assets. It generates an interactive treemap to identify large dependencies and analyze the distribution of modules within the final payload. The tool functions as a bundle visualizer and a static report generator, exporting analysis data as standalone HTML and JSON files. It supports live bundle tracking via WebSockets during development and allows for the analysis of existing static stats files through a command line interface. The project provides capabilities
Webpack-bundle-analyzer is a dedicated tool for inspecting and visualizing JavaScript bundle composition using an interactive treemap, though it focuses primarily on dependency visualization rather than offering dead-code elimination or asset compression out of the box.
This project is a JavaScript optimizer, minifier, module bundler, transpiler, and static analysis tool. It provides a compilation pipeline designed to shrink file sizes and improve runtime performance. The system utilizes a multi-pass compilation process to perform dead code elimination, global name mangling, and static type inference. It identifies unreachable functions and unused variables to reduce the final output size and detects potential runtime errors without executing the code. The tool manages assets through dependency resolution, code chunking, and bundle management. It ensures co
This project is a comprehensive JavaScript compiler and optimizer that performs dead code elimination, dependency resolution, and asset minification to shrink application bundles. While it focuses heavily on compilation and code transformation rather than visual bundle analysis dashboards, it serves as a powerful optimization tool for reducing web application file sizes.
UglifyJS is a tool for JavaScript code minification, AST manipulation, and source beautification. Its primary purpose is to reduce the file size of JavaScript source code by removing whitespace and shortening variable names to optimize frontend build assets. The project differentiates itself through its ability to programmatically analyze and transform code using abstract syntax trees. It performs constant folding analysis and conditional compilation to eliminate unreachable or redundant code, and it employs a multi-pass compression pipeline to maximize total file size reduction. The tool pr
UglifyJS is a focused JavaScript minification and dead-code elimination tool for reducing bundle sizes, though it lacks broader dependency visualization and bundle analysis features.
Oxc is a high-performance toolchain designed for the analysis, linting, formatting, and transformation of JavaScript and TypeScript codebases. It functions as a comprehensive static analysis engine and compiler-based utility, providing the infrastructure necessary to parse source code into high-performance abstract syntax trees and map complex module dependency graphs across entire projects. The project distinguishes itself through its use of multi-core parallel processing to maximize throughput during intensive tasks like linting and minification. It offers deep, type-aware static analysis t
Oxc provides high-performance parsing, linting, minification, and dependency analysis for JavaScript and TypeScript, making it a powerful utility for bundle inspection and optimization even though it functions primarily as a toolchain rather than an interactive bundle visualizer.
Webpack bundle size analyzer is a command-line tool and diagnostic utility that inspects compiled Webpack build output to report the exact file size and percentage contribution of each individual module and package. It operates via JSON-driven static analysis against build output files, parsing and traversing abstract syntax trees and dependency graphs to calculate precise byte weights without altering original execution code. The tool sorts and aggregates parsed module metrics by file size and percentage share to highlight the largest bundle contributors. It provides terminal stream output a
This tool analyzes Webpack bundle composition to help identify what contributes to file size, fulfilling the core inspection requirement even though it focuses specifically on Webpack rather than general web bundlers.
size-limit is a set of specialized tools for measuring JavaScript bundle sizes and enforcing performance budgets within continuous integration pipelines. It functions as a bundle size monitor and budget enforcer that can reject pull requests when JavaScript bundles exceed predefined size thresholds. The project distinguishes itself by providing a browser-based execution profiler that calculates the time required to compile and execute JavaScript on simulated low-end hardware. It also includes a tree-shaking validator that analyzes partial import bundle sizes to verify that unused code is corr
Size-limit measures JavaScript bundle sizes, enforces performance budgets in CI pipelines, and validates tree-shaking, fitting the requested optimization tool category well despite lacking asset compression and duplicate package detection features.