read-code
v1.1.1
Published
Universal code intelligence engine
Maintainers
Keywords
Readme
read-code
Install Globally
npm install -g read-codeInstall In A Project
npm install read-codeVerify Installation
read-code --help🚀 read-code
Turn Any Codebase Into AI Context
read-code is an advanced code intelligence engine that scans entire projects, understands architecture, extracts relationships, builds knowledge graphs, and generates AI-ready JSON context.
Instead of uploading hundreds of files and repeatedly explaining your project to AI, simply run:
read-code scanand upload the generated JSON.
👨💻 Author
Risk Chips
Why read-code?
Normally:
Upload project
Explain architecture
Explain database
Explain routes
Explain auth
Explain features
Repeat every conversationWith read-code:
read-code scan
↓
Generate AI Context
↓
Upload JSON
↓
AI Understands ProjectSupported Technologies
JavaScript
function login() {}TypeScript
interface User {}React
function Navbar() {}JSX
<App />TSX
<App />Core Features
Project Scanner
Scans:
.js
.ts
.jsx
.tsx
.json
.mdBuilds:
Project Tree
Statistics
Framework Detection
AI ContextJavaScript Intelligence
Extracts:
Functions
Classes
Imports
Exports
Arrow FunctionsTypeScript Intelligence
Extracts:
Interfaces
Types
EnumsReact Intelligence
Extracts:
Components
Hooks
Props
RoutesSymbol Intelligence
Builds a project-wide symbol table.
Example:
{
"login": {
"type": "function",
"file": "src/auth/login.js",
"startLine": 12,
"endLine": 48
}
}Detects:
Functions
Classes
Components
Interfaces
Types
EnumsSource Snippet Extraction
Stores implementation snippets.
Example:
{
"name": "login",
"snippet": "async function login(req,res){...}"
}This dramatically improves:
Bug Fixing
Refactoring
Code Understanding
AI ReasoningGraph Engine
Dependency Graph
File → ImportsCall Graph
Function → FunctionComponent Graph
Component → ComponentKnowledge Graph
Project → RelationshipsArchitecture Analysis
Detects:
MVC
Repository Pattern
Service Pattern
Layered Architecture
Component ArchitectureDatabase Detection
Detects:
MongoDB
PostgreSQL
MySQL
SQLite
RedisORM Detection
Detects:
Prisma
Mongoose
Sequelize
TypeORMAuthentication Detection
Detects:
JWT
Passport
OAuth
Session AuthFeature Detection
Automatically discovers:
Authentication
Dashboard
Messaging
Notifications
Payments
Admin Panels
File Uploads
SearchAI Context Engine
Generates:
{
"project": {},
"frameworks": [],
"statistics": {},
"tree": {},
"analysis": {},
"graphs": {},
"analyzers": {},
"symbols": {}
}Perfect for:
AI Agents
Code Reviews
Architecture Reviews
Documentation
Bug Fixing
Refactoring
Project UnderstandingCommands
Scan Project
read-code scanCreates:
.read-code/latest.jsonSave Output
read-code scan --savefile project.jsonCompact Output
read-code scan --compactProduces minified JSON.
Exclude Folders
read-code scan --exclude tests,docsExample:
read-code scan --exclude tests,docs,coverageCombine Multiple Flags
read-code scan --savefile project.json --compactread-code scan --exclude tests,docs --compactread-code scan --exclude tests,docs --compact --savefile output.jsonFlags work in any order.
Query Project
read-code query "what frameworks are used"Examples:
read-code query "show architecture"
read-code query "what routes exist"
read-code query "what features exist"
read-code query "where is login"
read-code query "show code for login"
read-code query "jwt"
read-code query "prisma"Explain Project
read-code explainHelp
read-code --helpGenerated Files
Automatic Cache
.read-code/
└── latest.jsonGenerated automatically after every scan.
Custom Output
read-code scan --savefile project.jsonCreates:
project.jsonExample Workflow
Generate context:
read-code scan --savefile project.jsonUpload:
project.jsonAsk AI:
Explain architecture
Find JWT validation
Show login implementation
Locate Prisma usage
Find authentication flow
Suggest refactoring opportunities
Find database entry points
Identify dead codeCurrent Capability
| Capability | Accuracy | | -------------------------- | -------- | | Project Understanding | 98% | | Architecture Understanding | 98% | | Documentation Generation | 98% | | Dependency Analysis | 95% | | Code Search | 90% | | Refactoring Assistance | 80% | | Bug Localization | 75% | | AI Readiness | 85% |
Roadmap
Quality Analysis
Dead Code Detection
Circular Dependency Detection
Duplicate Code DetectionAdvanced Intelligence
Cross File Symbol Tracking
Reference Tracking
Variable Usage Analysis
Data Flow Analysis
Control Flow AnalysisAI Enhancements
Context Compression
Semantic Search
Embeddings
AI Memory Packs
Automatic Refactoring PlansLicense
MIT License
Copyright (c) 2026 Risk Chips
