A webpack plugin and CLI that renders bundle contents as an interactive zoomable treemap to show which modules take up the most size.
web-infra-dev/rsdoctor
A build analyzer for Rspack that visualizes compilation timing, output assets, and module dependencies to find build bottlenecks.
- Stars
- 1,151
- Forks
- 107
- Open issues
- 17
- Last commit
- 22 hours ago
What is it?
Rsdoctor is a build analysis tool for the Rspack ecosystem. It visualizes the build process and its output, helping developers troubleshoot build failures and find performance bottlenecks in their JavaScript projects.
On the process side, it shows how Loaders and Plugins execute and how modules are resolved. On the output side, it inspects assets, file sizes, and module dependencies, and runs diagnostic checks such as detecting duplicate packages and checking ECMAScript syntax versions.
Rsdoctor also exposes build data to AI agents so they can run automated diagnosis and optimization of JavaScript code. It is part of the Rstack toolchain and is MIT licensed.
Key features
- 01Visualizes compilation process and timing to locate slow builds
- 02Inspects output assets, sizes, and module dependencies
- 03Shows Loader and Plugin execution and module resolution
- 04Detects duplicate packages and checks ECMAScript syntax versions
- 05Provides build data for agent-driven automated diagnosis
Use cases
- Diagnosing slow build times in a Rspack or Rsbuild project
- Finding oversized bundles and unexpected module dependencies
- Detecting duplicate package versions that bloat the output
- Letting an AI agent analyze build data to suggest optimizations
Quick start
- 1
Read the Quick Start guide on the Rsdoctor website for installation and setup
Things to know
- Setup requires following an external guide, since the README only links to the Quick Start docs.
- Primarily designed for projects built with the Rspack ecosystem.
Topics
FAQ
- What is rsdoctor?
- A build analyzer for Rspack that visualizes compilation timing, output assets, and module dependencies to find build bottlenecks. Rsdoctor is a build analysis tool for the Rspack ecosystem. It visualizes the build process and its output, helping developers troubleshoot build failures and find performance bottlenecks in their JavaScript projects.
- Is rsdoctor free to use? What license does it have?
- rsdoctor is open source under the MIT license. Check the license terms before using it in commercial products.
- Is rsdoctor still maintained?
- Actively maintained. The last commit to rsdoctor was on Nov 5, 2026.
- What can I use rsdoctor for?
- Diagnosing slow build times in a Rspack or Rsbuild project Finding oversized bundles and unexpected module dependencies Detecting duplicate package versions that bloat the output Letting an AI agent analyze build data to suggest optimizations
- How do I install rsdoctor?
- Read the Quick Start guide on the Rsdoctor website for installation and setup
- Where can I get rsdoctor?
- The source code and installation instructions are on GitHub: https://github.com/web-infra-dev/rsdoctor
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A fast Rust-based web bundler that offers a webpack-compatible API and can replace webpack in existing projects.
A progressive React web framework built on Rsbuild, covering routing, data loading, SSR and state management for React apps.
A Rust-based frontend toolchain combining an npm-compatible package manager, a Turbopack-powered bundler, and a browser-capable WASM build.
Symfony is a PHP framework for building web and console applications, plus a set of reusable PHP components.
A simple, tiny, dependency-free JavaScript benchmarking library that runs across multiple JavaScript runtimes.