01Overview
react · 828,353 lines of actual code
Line Composition
1,008,697 total lines
Code828,35382.1%
Blank101,00210.0%
Comments79,3427.9%
Reading facebook/react via an LLM
~5.8M tokens
→
~1.4k tokens
via code_analyze
The entire repo summarised by code_analyze — structured JSON in <2k tokens. The dossier above is built from one call. Drill into specifics with code_search.
02Languages & Tech Stack
what it’s written in, what it depends on
Language Breakdown
Language
Files
Code
Share
03Notable Files
where complexity and size live
Most Complex
| File | Lines | Cx |
| packages/react-devtools-shared/src/backend/fiber/renderer.js | 6,487 | 1,220 |
| packages/react-server/src/ReactFlightServer.js | 5,300 | 908 |
| packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js | 5,460 | 830 |
| packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js | 5,907 | 823 |
| compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts | 4,172 | 799 |
| compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts | 2,501 | 713 |
| packages/react-server/src/ReactFizzServer.js | 5,164 | 687 |
| packages/react-reconciler/src/ReactFiberCommitWork.js | 4,372 | 685 |
| packages/react-client/src/ReactFlightClient.js | 4,504 | 683 |
| packages/react-reconciler/src/ReactFiberWorkLoop.js | 4,204 | 646 |
Largest
| File | Lines | Cx |
| fixtures/attribute-behavior/AttributeTableSnapshot.md | 13,392 | 0 |
| fixtures/ssr2/package-lock.json | 12,827 | 0 |
| packages/react-dom/src/__tests__/ReactDOMFloat-test.js | 8,961 | 50 |
| packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js | 8,555 | 112 |
| packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js | 8,539 | 5 |
| compiler/crates/react_compiler_lowering/src/build_hir.rs | 6,655 | 585 |
| packages/react-devtools-shared/src/backend/fiber/renderer.js | 6,487 | 1,220 |
| packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js | 5,907 | 823 |
| packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js | 5,460 | 830 |
| scripts/bench/benchmarks/pe-class-components/benchmark.js | 5,400 | 498 |
04Code Quality
style, correctness, and maintainability findings
By Severity & Category
By Category
Modernization 5
accessibility 306
correctness 14665
maintainability 77
performance 545
safety 1
security 121
Top Findings
Critical: Use of 'unsafe' keyword bypasses Rust's safety guarantees. Requires careful auditing, clear justification (FFI, specific optimizations), and minimal scope.
Use textContent or DOM methods to prevent XSS vulnerabilities ×3
Similar to eval(); avoid due to security risks
05Secrets & Credentials
pattern-based scan for hardcoded secrets
06Search This Repo
live, powered by code_search
Scan another repository
Drop any public git URL or owner/repo shorthand.
Or compare facebook/react against another repo:
Or use the API directly: curl https://api.searchcode.com/api/v1/code_analyze · Add to your MCP client