Open Source Alternatives
  • Alternatives
  • Categories
    Categories by size882 projects
    • Developer Tools461
    • AI & Machine Learning404
    • Web Development196
    • Business & Productivity191
    • Communication & Collaboration126
    • Security & Monitoring126
    • IT Management123
    • Product & Project Management106
    • Cloud & Hosting105
    • Data & Analytics104
    Browse all 21 categoriesLLMOps & AI Tooling, Design & Creative and 9 more
  • Blog
  • Advertise
SearchNotion, Slack, password manager.../
Submit
Open Source Alternatives
  • Alternatives
    • Developer Tools461
    • AI & Machine Learning404
    • Web Development196
    • Business & Productivity191
    • Communication & Collaboration126
    • Security & Monitoring126
    • Browse all 21 categories
  • Blog
  • Advertise
Submit your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product

  • Categories
  • Tag
  • Advertise

Resources

  • Blog
  • Collection
  • Submit

Company

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap

Alternatives

  • Claude Code
  • Jira
  • Notion
  • Slack
  • Linear
  • Wispr Flow
  • All alternatives
© 2026 Open Source Alternatives. All rights reserved.
Open SourceAlternatives
Home/Categories/Web Development/react-doctor
react-doctor logo

react-doctor

Open source alternative to SonarQube

  • 15K stars
  • MIT
  • Active this week
  • Last commit 2 days ago

Last verified Oct 20, 2026

Analyze React apps for state, performance, architecture, security, and accessibility issues with a local CLI health score and CI-friendly fixes.

Visit websiteGitHub15K stars
react-doctor screenshot showing health score dashboard
TL;DR

react-doctor React Doctor scans a React codebase and returns a 0-100 health score with categorized diagnostics covering state management, performance, architecture, security, and accessibility. Run it in one command: `npx react-doctor@latest`.

Read the full breakdownHide the full breakdownWho it is for, how it works, trade-offs, the quick start and the FAQ
who it's for

Who react-doctor is for#

Team adding React quality gate to CI

Adds react-doctor to CI with `--diff main` so every PR only fails when it introduces new React health regressions, not for pre-existing baseline issues.

Developer pre-PR self-review

Runs `npx react-doctor@latest` before submitting a PR to get a prioritized issue list without waiting for reviewer feedback.

Tech lead with AI coding tools

Runs `npx react-doctor@latest install` into their Cursor setup so AI-generated code gets validated against React best practices before it is committed.

Agency scoping a React refactor

Does a quick health check on a client's inherited codebase to scope a React refactor engagement before committing to a timeline.

Solo developer on Next.js project

Monitors health score over time as a lightweight code quality signal while building a Next.js app without a full SonarQube setup.

the problem

The problem it solves#

Coding agents and junior developers routinely introduce React anti-patterns: effects that run too often, components with too many responsibilities, missing accessibility attributes, and performance-killing render patterns. Standard ESLint configurations catch syntax-level issues but miss architectural patterns that only become visible when you look at the full component tree. Manual code reviews for React best practices are time-consuming, inconsistent, and do not run automatically in CI.

how react-doctor solves it

How it solves it#

0-100 health score with severity breakdown

Outputs a 0-100 health score with severity breakdown: 75+ is great, 50-74 needs work, under 50 is critical

Five diagnostic surfaces

Covers five diagnostic surfaces: state and effects, performance, architecture, security, and accessibility

Automatic framework detection

Detects your framework (Next.js, Vite, React Native) and adjusts its rule set automatically

GitHub Actions integration with PR comments

GitHub Actions composite action ships in the repo with sticky PR comments, configurable fail-on threshold, and a score output for downstream steps

--diff mode for incremental CI

`--diff <base>` mode scopes diagnostics to changed files only, catching new regressions without requiring a clean baseline

Agent install mode prevents future violations

`npx react-doctor@latest install` writes best-practice rules into your coding agent's config files so it stops writing the bad patterns in the first place

strengths · trade-offs

Strengths and trade-offs#

Strengths

  • Zero configuration, one commandZero configuration required; works at the project root with one npx command
  • Drop-in CI integrationCI integration is drop-in: a composite GitHub Actions workflow ships in the repo with documented fail-on thresholds
  • Closes detection-to-prevention loop for agentsThe agent-install mode puts rules where agents read them, closing the loop between detection and prevention
  • MIT licensed and actively maintainedMIT licensed and actively maintained

Trade-offs

  • -React-only, no other frameworksFocused exclusively on React; not useful for Vue, Svelte, Angular, or other frontend frameworks
  • -Dead-code detection removed in v0.2Dead-code detection was removed in v0.2 (knip integration dropped); run `npx knip` separately if you need it
  • -Heuristic scores, some false positivesHealth score thresholds are heuristics, not definitive quality guarantees; context-dependent rules may flag valid patterns as issues
versus alternatives

react-doctor vs alternatives#

react-doctor is an MIT-licensed React quality scanner for teams using coding agents to generate or modify React code.

vs CodeRabbit: CodeRabbit reviews pull requests across hosted Git platforms and IDE or CLI workflows, with AI comments and paid team plans. react-doctor is narrower and local-first: it runs through the npx react-doctor latest command, scores React code from 0 to 100, and flags issues across state, effects, performance, architecture, security, and accessibility.

vs Snyk Code: Snyk Code focuses on static application security testing and security findings across supported languages. react-doctor should not replace a security scanner; it is better for React-specific regressions, framework-aware rules, agent instruction installation, and PR score gates in Next.js, Vite, and React Native projects.

vs SonarQube Cloud: SonarQube Cloud is broader code quality and security governance for many languages and repositories. react-doctor is better when the immediate problem is AI-generated React code that violates framework patterns, but SonarQube is still the stronger choice for organization-wide quality gates, centralized reporting, and cross-language policy.

install · quick start

Quick start#

bash
Setup from the root of a React project:
npx react-doctor@latest install

Run an audit locally:
npx react-doctor@latest
tech stack · detected from GitHub

What it's built on#

Languages
JavaScriptTypeScript
Frameworks
React
frequently asked

FAQ#

Will react-doctor break my CI if my current score is low?

Only if you configure it to. By default, --fail-on error exits non-zero when error-severity rules fire. Set --fail-on none for advisory mode that reports findings but never blocks a build.

Does it work with React Native?

Yes. React Doctor detects your project framework and applies React Native-specific rules automatically. Framework detection is based on your installed packages and project structure.

What does the `install` command do?

npx react-doctor@latest install writes React best-practice rules into the config files for your detected coding agents (Claude Code, Cursor, Codex, and 50+ others). This teaches the agent the rules upfront so it avoids writing code that react-doctor would flag.

also worth a look

Similar open-source tools#

Grit

Alternative toModerne

Automate code migrations at scale using a pattern-matching DSL

  • 4,614 GitHub stars
  • MITLicence MIT

CodeBoarding

Alternative toCodeDashboard

Review code changes as architecture maps, not line diffs

  • 2,601 GitHub stars
  • MITLicence MIT

Dyad

Alternative toLovable

Local, open-source AI app builder with your own API keys

  • 22,031 GitHub stars
  • CustomLicence Apache-2.0 with separate pro-directory license

Cloudflare Os

Alternative toDust

Open source AI workspace with sandboxed apps and Gatekeeper security

  • 11,537 GitHub stars
  • Apache-2.0Licence Apache-2.0

Effect

InWeb Development

Typed errors, DI, and concurrency for TypeScript

  • 17,341 GitHub stars
  • MITLicence MIT

Firebase Ios Sdk

Alternative toAWS Amplify

Open source Apple SDK for Firebase auth, data, push and crashes

  • 6,974 GitHub stars
  • Apache-2.0Licence Apache-2.0
by category

Open source tools in these categories#

196

Web Development

freeCodeCamp, superpowers, Skills for Real Engineers
462

Developer Tools

REA (Reverse Engineer Anything), superpowers, Skills for Real Engineers
404

AI & Machine Learning

OpenClaw, freeCodeCamp, REA (Reverse Engineer Anything)

Featured

Inbox Zero

Alternative toSuperhuman

AI email assistant that drafts replies and clears your inbox

  • 12,712 GitHub stars
  • AGPL-3.0Licence AGPL-3.0
  • #Email

rakazo

Alternative toGrok Bot

AI teammates you own: your keys, your model, your machine.

  • 4,904 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents

Omnara

Alternative toCClaude Managed Agents

Open-source agent deployment API. Self-host or use Omnara Cloud.

  • 2,957 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents
Feature your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Find open source alternatives to paid software

/
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Airtable to AITable
  • Muse to OpenClaw
  • GitHub Copilot to Cline
  • Datadog to Netdata
  • Microsoft Teams to Rocket.Chat
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Firebase to Supabase
  • 1Password to KeePassXC
  • Confluence to Docmost
  • Contentful to Strapi
  • Adobe Premiere Pro to Shotcut
  • ChatGPT to AnythingLLM
  • LangSmith to Langfuse
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Airtable to AITable
  • Muse to OpenClaw
  • GitHub Copilot to Cline
  • Datadog to Netdata
  • Microsoft Teams to Rocket.Chat
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Firebase to Supabase
  • 1Password to KeePassXC
  • Confluence to Docmost
  • Contentful to Strapi
  • Adobe Premiere Pro to Shotcut
  • ChatGPT to AnythingLLM
  • LangSmith to Langfuse