Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Ember
  3. source-map-explorer

source-map-explorer

Apache-2.0TypeScriptv2.5.3

Analyze and debug JavaScript code bloat through source maps with a treemap visualization.

GitHubGitHub
3.9k stars112 forks0 contributors

What is source-map-explorer?

Source Map Explorer is a Node.js tool that analyzes minified JavaScript bundles by using source maps to trace each byte back to its original source file. It helps developers understand what is contributing to their bundle size, identify duplicate dependencies, and find opportunities for optimization. The tool provides a visual treemap and multiple data export formats to make this analysis accessible.

Target Audience

Frontend and JavaScript developers working on web applications who need to optimize bundle sizes, especially those using bundlers like Webpack or Browserify. It's also useful for performance engineers focused on reducing initial load times.

Value Proposition

Developers choose Source Map Explorer because it provides an intuitive, visual way to analyze bundle composition directly from source maps, without requiring complex setup. Its ability to integrate with code coverage data and calculate gzip sizes offers deeper insights than basic bundle analyzers.

Overview

Analyze and debug space usage through source maps

Use Cases

Best For

  • Identifying which libraries or modules are taking up the most space in a production bundle
  • Debugging duplicate dependencies (like two copies of React) in a bundle
  • Visualizing code coverage to find unused code that can be split or removed
  • Analyzing the impact of code changes on bundle size during development
  • Generating reports on bundle composition for performance audits
  • Integrating bundle analysis into CI/CD pipelines via its JSON or TSV outputs

Not Ideal For

  • Projects that do not generate source maps in their build process
  • Teams needing real-time, integrated bundle analysis within development servers like Webpack Dev Server
  • Applications with server-side rendering and minimal client-side JavaScript where bundle size analysis is irrelevant
  • Developers looking for automated code-splitting suggestions without manual interpretation of visual data

Pros & Cons

Pros

Interactive Treemap Visualization

Provides an intuitive visual breakdown of bundle composition, making it easy to spot large files or duplicates, as demonstrated in the screenshot and linked demos.

Multiple Output Formats

Supports HTML, JSON, and TSV outputs for flexible integration into workflows or automated reporting, detailed in the options section for CLI and API usage.

Code Coverage Integration

Color-codes the treemap based on Chrome coverage data to identify unused code, helping optimize initial load times with actionable insights.

Gzip Size Estimation

Calculates gzipped sizes for more realistic bundle analysis, addressing compression impacts as described in the gzip option documentation.

Cons

Dependency on Source Maps

Relies on correctly generated source maps; errors like 'Unable to find a source map' are common and can halt analysis, requiring manual setup fixes.

No Built-in Development Integration

Primarily a post-build CLI tool without seamless integration into live development environments, unlike some Webpack plugins that offer real-time feedback.

Complex Error Handling

Error messages for issues like invalid mappings can be cryptic, and options like --no-border-checks are needed to bypass them, adding complexity.

Frequently Asked Questions

Quick Stats

Stars3,932
Forks112
Contributors0
Open Issues32
Last commit3 years ago
CreatedSince 2015

Tags

#browserify#treemap#minification#source-map#nodejs#bundle-analysis#javascript#source-maps#debugging#code-splitting#visualization#performance#webpack

Built With

N
Node.js

Included in

Web Performance Optimization8.9kEmber202
Auto-fetched 15 hours ago

Related Projects

Webpack bundle analyzerWebpack bundle analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

Stars12,664
Forks508
Last commit11 days ago
Bundle SizeBundle Size

Keep your bundle size in check

Stars4,473
Forks176
Last commit1 year ago
Compression webpack pluginCompression webpack plugin

Prepare compressed versions of assets to serve them with Content-Encoding

Stars1,426
Forks109
Last commit2 months ago
BundleStatsBundleStats

Analyze bundle stats(bundle size, assets, modules, packages) and compare the results between different builds. Support for webpack, rspack, vite, rolldown and rollup.

Stars671
Forks23
Last commit18 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub