React Doctor
www.react.doctor- Category
- Developer Tools
- Rank
- No. 405Tools index
- Listed in
- #3 Review React code
- Pricing
- Freemium
- Platform
- web
- Type
- TOOL
- Builder
- @millionco
- GitHub
- 14.8k stars
- Latest release
- react-doctor@0.9.13
- Date
About
An AI-powered tool that automatically diagnoses and fixes issues in your React code. It helps developers quickly identify problems and get suggested solutions to improve their React applications.
What it does
React Doctor is a deterministic static analyzer for React projects. It checks state and effects, performance, architecture, security, accessibility, dead code, and supply-chain concerns. Developers can run audits locally, configure rules, expose findings to coding agents, or check pull-request changes in continuous integration.
Why it's ranked here
The appeal is breadth joined to practical delivery. One tool spans local audits, configurable rules, agent guidance, a programmatic API, editor diagnostics, and continuous integration. Its pull-request mode focuses on newly introduced findings, which makes adoption more realistic for projects carrying an existing backlog.
What's good
The scanner supports several React environments, including Next.js, Vite, Astro, TanStack, React Native, and Expo. GitHub Actions can post pull-request summaries, while GitLab receives a gate-only scaffold. The repository also includes fuzzing, corpus evaluation, performance analysis, smoke checks, and language-server integration testing.
Tradeoffs
It requires modern Node releases and uses anonymous telemetry by default, although users can disable it. Collected data includes environment details, invocation context, project shape, rule names, counts, and crash traces. GitLab support is narrower than GitHub Actions because it provides gating without the documented summary-comment workflow.
How to use it well
Use it for React teams that want repeatable static checks during local development and pull-request review. Start with an audit, tune rule severity and scope, then add the agent skill or continuous-integration gate. Treat its findings as code-analysis signals, not evidence about production runtime behavior or application monitoring.
Technical notes+
The root package.json defines a private ESM pnpm and Turbo monorepo requiring Node ^20.19.0 || >=22.13.0. packages/api/src/index.ts exposes diagnose, configuration helpers, result types, and typed errors. packages/core/src/index.ts exports the diagnostic pipeline, configuration, severity controls, reporting, scoring, dead-code, security, supply-chain, Git, and editor-scan machinery. packages/api/vite.config.ts and packages/core/vite.config.ts build Node 20 packages with declarations while leaving major parser, resolver, linter, and TypeScript dependencies external. packages/language-server/vite.config.ts packages a standalone language-server surface and configures subprocess integration tests. packages/fuzz/src/index.ts exposes seeded generation, mutation, corpus loading, and verdict-preserving variants. packages/deslop-cli/src/cli.ts implements separate dead-code and circular-import analysis with JSON output and CI-oriented failure flags.
Observed
- License
- MIT
- Primary language
- TypeScript
- Install surface
- Published npm command intended to run through npx
- Interfaces
- Command-line tool, programmatic API, coding-agent skill, language server, and lint plugins
- Framework support
- Documents Next.js, Vite, Astro, TanStack, React Native, and Expo support
- CI support
- GitHub Actions workflow with pull-request comments; GitLab gate-only scaffold
- Repository structure
- Private ESM pnpm and Turbo monorepo with core, API, language-server, lint-plugin, fuzzing, and evaluation packages
Read from README.md, package.json, packages/api/vite.config.ts, packages/core/vite.config.ts, packages/fuzz/vite.config.ts, packages/deslop-js/vite.config.ts, packages/deslop-cli/vite.config.ts, packages/language-server/vite.config.ts, packages/eslint-plugin-react-doctor/vite.config.ts, packages/oxlint-plugin-react-doctor/vite.config.ts, packages/api/src/index.ts, packages/evals/src/cli.ts, packages/core/src/index.ts, packages/fuzz/src/index.ts, packages/deslop-cli/src/cli.ts.
What it can do
Diagnose React code issues
React code files or codebase → List of identified problems and issues
Generate code fixes for React issues
Identified React code problems → Corrected code snippets or patches
Analyze React component structure
React components → Structural analysis and improvement recommendations
Detect performance bottlenecks
React application code → Performance issue reports and optimization suggestions
Suggest React best practices
React code patterns → Best practice recommendations and code improvements
Identify deprecated React features
React codebase → List of outdated code and modern alternatives
Tags
Tech Stack
Media
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.