REPOSITORY DOSSIER  ·  github.com

facebook/react

611 files 14 languages 125,673 total lines @b685b40 analysed just now

01Overview

react · 104,823 lines of actual code
611
Files
104,823
Code lines
8,697
Comments
14
Languages
7,810
Complexity
0
Secrets
Line Composition 125,673 total lines
Code104,82383.4%
Blank12,1539.7%
Comments8,6976.9%
~99%
tokens saved
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
JavaScript
401
72,382
69.1%
Rust
30
12,040
11.5%
Markdown
50
8,671
8.3%
TypeScript
46
8,597
8.2%
JSON
25
1,508
1.4%
CoffeeScript
1
476
0.5%
Shell
14
204
0.2%
CSS
3
174
0.2%
Plain Text
13
154
0.1%
+ 5 more
295
·

03Notable Files

where complexity and size live

04Code Quality

style, correctness, and maintainability findings

By Severity & Category

Warning
228
Info
2306
Error
1
Total
2,535
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.

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