REPOSITORY DOSSIER  ·  github.com

facebook/react

6,965 files 16 languages 1,013,080 total lines @59aff3e analysed just now

01Overview

react · 831,868 lines of actual code
6,965
Files
831,868
Code lines
79,800
Comments
16
Languages
70,532
Complexity
1
Secrets
Line Composition 1,013,080 total lines
Code831,86882.1%
Blank101,41210.0%
Comments79,8007.9%
~99%
tokens saved
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
JavaScript
3,830
536,275
64.5%
Markdown
2,011
131,056
15.8%
TypeScript
524
68,705
8.3%
Rust
121
65,486
7.9%
JSON
152
17,589
2.1%
CSS
108
4,519
0.5%
HTML
79
3,242
0.4%
YAML
31
3,001
0.4%
CoffeeScript
1
476
0.1%
+ 7 more
1,188
·

03Notable Files

where complexity and size live

04Code Quality

style, correctness, and maintainability findings

By Severity & Category

Warning
1278
Info
14576
Error
28
Total
15,882
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.

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