01Overview
react · 104,823 lines of actual code
Line Composition
125,673 total lines
Code104,82383.4%
Blank12,1539.7%
Comments8,6976.9%
Reading facebook/react via an LLM
~733k 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
Largest
| File | Lines | Cx |
| scripts/bench/benchmarks/pe-class-components/benchmark.js | 5,400 | 498 |
| scripts/bench/benchmarks/pe-functional-components/benchmark.js | 4,994 | 498 |
| scripts/bench/benchmarks/pe-no-components/benchmark.js | 4,758 | 498 |
| flow-typed/environments/node.js | 3,745 | 0 |
| flow-typed/environments/dom.js | 3,150 | 0 |
| flow-typed/environments/bom.js | 2,315 | 0 |
| packages/react-devtools-shared/src/devtools/store.js | 2,053 | 294 |
| CHANGELOG.md | 2,012 | 0 |
| packages/react/src/__tests__/ReactProfiler-test.internal.js | 1,762 | 23 |
| compiler/crates/react_compiler_validation/src/validate_exhaustive_dependencies.rs | 1,593 | 244 |
04Code Quality
style, correctness, and maintainability findings
By Severity & Category
By Category
accessibility 10
correctness 2401
maintainability 12
performance 91
safety 1
security 20
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
✓ No hardcoded credentials or secret patterns detected.
Pattern-based scan only — does not catch logic-level vulnerabilities.
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