Introduction
Visualize and analyze the JS bundle of your React Native app. Find heavy packages, duplicates and deprecated dependencies, inspect every module, and catch bundle size regressions in CI.

Try it in the browser
Open the live demo: a real report in compare mode, built with react-native-bundle-discovery-ui build.
Features
- π Interactive UI to explore packages, modules and their source/bundled code
- π‘ Optimization recommendations ranked by estimated savings (duplicates, deprecated / outdated / dev-only packages, and more)
- πΊοΈ Treemap colored by package, file type or issues, and an "Imported by" graph for every module
- β "Why is this in my bundle?": the shortest import chain to any package
- π CLI to list the heaviest packages and modules
- π Compare two reports in the UI (with per-module code diffs) or in CI, and fail on bundle size regressions
- π§© Works with Metro, Re.Pack, Rollipop and React Native DevTools (via Rozenite)
Packages
| Package | What it does | Required |
|---|---|---|
react-native-bundle-discovery | Generates a JSON report (metro-stats.json) of your bundle | β Yes |
react-native-bundle-discovery-ui | Shows the report in the browser | Optional |
react-native-bundle-discovery-cli | Analyzes and compares reports in the terminal / CI | Optional |
react-native-bundle-discovery-rozenite-plugin | Shows the UI inside React Native DevTools | Optional |