web-infra-dev/rsdoctor

TypeScriptrsdoctor.rs

AI-friendly build analyzer for Rspack

analyzebundlerspackwebpackbuild-analyzerhacktoberfestrstack
Star Growth
Stars
1.1k
Forks
107
Weekly Growth
+6
Issues
9
5001k
Dec 2023Nov 2024Nov 2025Oct 2026
Artifactsnpm
README
Rsdoctor Banner

Rsdoctor

discord channel npm version downloads license

English | ็ฎ€ไฝ“ไธญๆ–‡

Rsdoctor is a build analysis tool for the Rspack ecosystem. It visualizes the build process and output to help developers investigate build issues and identify performance bottlenecks. It also provides build data to agents for automated diagnosis and optimization of JavaScript programs.

๐Ÿ”ฅ Features

  • Agent-Driven Analysis: Provides build data to agents for automated diagnosis and optimization of JavaScript programs
  • Compilation Visualization: Visualize the compilation process and timing to troubleshoot build issues and identify performance bottlenecks
  • Comprehensive Analysis: Analyze build output, inspect the build process, and run diagnostic checks:
    • Output Analysis: Inspect assets, output sizes, and module dependencies
    • Build Process Analysis: Inspect Loader and Plugin execution and module resolution
    • Diagnostic Checks: Detect duplicate packages and check ECMAScript syntax versions to identify potential build issues

๐Ÿ“š Getting started

To get started with Rsdoctor, see the Quick Start.

๐Ÿค Contribution

New contributors welcome!

Please read the Contributing Guide.

๐Ÿง‘โ€๐Ÿ’ป Community

Come and chat with us on Discord! The Rstack team and users are active there, and we're always looking for contributions.

๐Ÿฆ€ Rstack

Rsdoctor is part of Rstack, the fast, unified JavaScript toolchain for developers and agents.

Name Description Version
Rspack Bundler npm version
Rsbuild Build tool npm version
Rslib Library development tool npm version
Rspress Static site generator npm version
Rsdoctor Build analyzer npm version
Rstest Testing framework npm version
Rslint Linter npm version

๐Ÿ™Œ Code of conduct

This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of Conduct for more details.

๐Ÿ™ Credits

Some of the implementation of Rsdoctor refers to the excellent projects in the community, and we would like to thank them:

  • bundle-stats is an excellent tool for analyzing build artifacts, and Rsdoctor is inspired by it in terms of build analysis.
  • webpack-bundle-analyzer is a classic tool for analyzing Webpack, and Rsdoctor is inspired by it in terms of build artifact analysis. Rsdoctor also uses its classic treemap visualization.
  • Statoscope is an excellent tool for analyzing build artifacts, and Rsdoctor is inspired by it in terms of build analysis.
  • Webpack Team and Community have created an excellent bundling tool and a rich ecosystem.
  • vite-plugin-inspect has inspired Rsdoctor's exploration of build process analysis.

This Rsdoctor website is powered by Netlify.

๐Ÿ“– License

Rsdoctor is licensed under the MIT License.