gitmyhub

rsdoctor

TypeScript ★ 1.1k updated 2d ago

A one-stop build analyzer for Rspack and webpack.

Rsdoctor is a build analyzer tool for developers who use Rspack or webpack — two popular bundlers (programs that take your project's many files and combine them into one or a few optimized files for the browser). When your project's build process is slow or producing unexpected results, Rsdoctor helps you figure out exactly why.

The tool works by plugging into your existing build setup and collecting detailed data about what happened during the build: how long each step took, which code modules depend on which other modules, and whether any problematic patterns exist in your code. It then presents this information through visual charts and reports, making it easy to spot slowdowns, duplicate packages, or version inconsistencies without having to read raw log files.

You would reach for Rsdoctor when your app's build is taking too long and you're not sure where the bottleneck is, or when your final bundle (the output file) is larger than expected and you want to understand why. It also includes automated rules that check for common problems and can flag them automatically — and you can write your own custom rules if you have project-specific concerns.

Rsdoctor is written in TypeScript and works with a wide range of frameworks and tools that are built on top of Rspack or webpack. It is part of the Rstack family of JavaScript tooling. The project is open source under the MIT license.