Understand any TypeScript codebase in 30 seconds.
No AI. No guessing. Just facts from your code.
| Feature | What It Shows |
|---|---|
| 🧠 Mental Model | Architecture layers at a glance |
| 🔥 Hotspots | Complex + heavily used = risky to change |
| 💥 Blast Radius | "If I change this, what breaks?" |
| 🚌 Bus Factor | Who knows what? Knowledge risk |
| 📋 Issues | Duplicates, circular deps, unused files |
| 🗺️ Codebase Map | Export docs for new team members |
Double-click start.bat
chmod +x start.sh && ./start.shOpens automatically at http://localhost:3000
Click to see screenshots
Overview of your codebase health
Files that are complex AND heavily used
Who knows what? Bus factor analysis
See impact before you refactor
Every number is real.
- We say "47 files depend on this" → That's exactly 47 files
- We say "Risk Score 612" → That's
Complexity (18) × Dependents (34) - We say "100% duplicate" → Byte-for-byte identical
- We say "Bus Factor 50%" → 50% of files have only one author
No AI hallucinations. No fuzzy estimates. Just facts you can verify.
- New to a codebase? Get oriented in minutes, not days
- Tech lead? Find where knowledge is concentrated
- Refactoring? Know the blast radius before you start
- Onboarding someone? Export a codebase map for them
TSight runs 100% locally:
- Parses your TypeScript/React files with ts-morph
- Builds a dependency graph
- Reads your
.gitfolder for team insights (no API token needed) - Shows you the results in a clean UI
Your code never leaves your machine.
tsight/
├── packages/
│ ├── core/ # Analysis engine (ts-morph)
│ ├── api/ # REST API (Express)
│ └── web/ # UI (React + Vite)
├── start.bat # Windows launcher
└── start.sh # Mac/Linux launcher
# Install dependencies
npm install
# Build
npm run build --workspace=@tsight/core
npm run build --workspace=@tsight/api
# Start API (terminal 1)
cd packages/api && npm start
# Start Web (terminal 2)
cd packages/web && npm run devNo Node.js? Use Docker:
# Build
docker build -t tsight .
# Run (mount your code folder)
docker run -p 3000:3000 -v "/path/to/your/code:/code" tsightOpen http://localhost:3000 and enter /code/YourProject
- Node.js 18+ or Docker
- Works on any TypeScript/React project
Contributions welcome! Please read the code, run it locally, and submit a PR.
MIT
TSight: See your code. For real.