01Overview
react · 831,868 lines of actual code
Line Composition
1,013,080 total lines
Code831,86882.1%
Blank101,41210.0%
Comments79,8007.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,430 | 2,020 |
| packages/react-server/src/ReactFlightServer.js | 5,625 | 1,372 |
| packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js | 5,725 | 1,329 |
| packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js | 5,983 | 1,162 |
| packages/react-server/src/ReactFizzServer.js | 5,312 | 1,140 |
| packages/react-client/src/ReactFlightClient.js | 4,707 | 1,053 |
| packages/react-reconciler/src/ReactFiberCommitWork.js | 4,527 | 1,035 |
| scripts/bench/benchmarks/pe-class-components/benchmark.js | 5,400 | 996 |
| scripts/bench/benchmarks/pe-functional-components/benchmark.js | 4,994 | 996 |
| scripts/bench/benchmarks/pe-no-components/benchmark.js | 4,758 | 996 |
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 | 9,463 | 70 |
| packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js | 9,410 | 136 |
| packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js | 8,539 | 7 |
| compiler/crates/react_compiler_lowering/src/build_hir.rs | 6,695 | 958 |
| packages/react-devtools-shared/src/backend/fiber/renderer.js | 6,430 | 2,020 |
| packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js | 5,983 | 1,162 |
| packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js | 5,725 | 1,329 |
| packages/react-server/src/ReactFlightServer.js | 5,625 | 1,372 |
04Code Quality
style, correctness, and maintainability findings
By Severity & Category
By Category
accessibility 331
correctness 14801
maintainability 79
modernization 5
performance 544
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.
Universal selector detected; avoid for performance and specificity issues
Use of !important detected; avoid overriding specificity with safer cascade management
Warning: Direct indexing (e.g., `vec[i]`, `slice[i]`) panics on out-of-bounds access. Prefer using `.get(index)` or `.get_mut(index)` which return Option<&T>/Option<&mut T>. ×2
05Secrets & Credentials
pattern-based scan for hardcoded secrets
generic-api-key — Detected a Generic API Key, potentially exposing access to various services and sensitive operations.
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