A CLI tool to quickly understand unfamiliar codebases through structured analysis.
DevLens is a lightweight CLI tool that analyzes a codebase and provides a structured summary of its technology stack, architecture, and organization.
It is designed to help developers quickly understand unfamiliar repositories without manual exploration.
go install ./cmd/devlensEnsure your Go bin directory is added to PATH:
C:\Users\<your-username>\go\bin
go build -o devlens.exe ./cmd/devlensdevlens analyze .devlens analyze https://github.com/user/repo --fast- Uses GitHub API (no cloning required)
- Faster for large repositories
- May have limited accuracy for framework detection
devlens analyze . --jsonor
devlens analyze . --json > report.jsondevlens --version
devlens --helpIdentifies technologies using file patterns such as:
go.mod→ Gopackage.json→ Node.jsrequirements.txt→ PythonDockerfile→ Dockerfirebase.json→ Firebase
Detects commonly used frameworks, including:
- React, Next.js, Vite
- FastAPI, Django, Flask
- Express.js
Infers project type based on structure and files:
- CLI Tool
- Backend Service
- Frontend Application
Identifies key directories and their roles:
/backend,/api→ backend logic/frontend,/ui→ frontend layer/scripts→ automation/config→ configuration
Detects likely entry points such as:
main.goapp.pyindex.jsApp.jsx
Provides heuristic insights such as:
- Dockerized setup detected
- Environment variables used
- Monorepo-like structure
- Presence of test files
DevLens Analysis
Project Type:
CLI Tool
Tech Stack:
- Backend: Go
Frameworks:
Entry Points:
- cmd/devlens/main.go
{
"project_type": "CLI Tool",
"tech_stack": {
"Backend": "Go"
},
"frameworks": [],
"entry_points": [
"cmd/devlens/main.go"
]
}- Prefer simple heuristics over complex parsing
- Optimize for speed and clarity
- Avoid external dependencies
- Keep behavior predictable and transparent
- Heuristic-based detection may not cover all edge cases
- No deep code parsing
- Framework detection is best-effort
- Parallel scanning for performance improvement
- Enhanced architecture detection
- Project complexity analysis
- Plugin system
- Editor integrations
Contributions are welcome. Please open an issue or submit a pull request for improvements or feature suggestions.
MIT