@selitzer/repolens
v1.0.0
Published
A terminal-based developer tool that scans codebases and generates project health reports.
Maintainers
Readme
RepoLens
Terminal-based codebase analyzer for local projects and GitHub repositories
Features / Installation / Usage / Configuration

Overview
RepoLens is a command-line developer tool that analyzes local codebases and public GitHub repositories. It generates a clean project health report directly in the terminal, with optional Markdown and JSON exports.
RepoLens helps developers quickly understand a project’s structure, tech stack, documentation quality, code quality signals, and overall repository readiness.
Features
Project Analysis
- Analyze local project folders
- Analyze public GitHub repositories by URL
- Count files, folders, and total lines of code
- Generate a readable project structure tree
- Detect languages by file extension
- Detect technology stack from
package.json
Code Quality
- Scan for
TODOandFIXMEcomments - Detect large files based on configurable line thresholds
- Calculate a simple repository health score
- Identify missing project files like
LICENSEor.env.example
Documentation & Config Checks
- Check README quality sections
- Check
.gitignoreentries - Check
package.jsonmetadata - Support custom
.repolensrc.jsonconfiguration - Generate starter config with
repolens init
Export Options
- Print polished terminal reports
- Export reports as Markdown
- Export reports as JSON
- Save reports to output files
Installation
Install from npm
npm install -g @selitzer4/repolensAfter installing globally, you can run RepoLens from anywhere:
repolens analyze .You can also run it without installing globally:
npx @selitzer4/repolens analyze .Install from GitHub
git clone https://github.com/selitzer/repolens.git
cd repolens
npm install
npm run build
npm linkAfter linking, you can run RepoLens from anywhere:
repolens analyze .Usage
Analyze the current project:
repolens analyze .Analyze a public GitHub repository:
repolens analyze https://github.com/selitzer/repolensGenerate a project health report:
repolens health .Show detected technologies:
repolens stack .Show project structure:
repolens structure .Show TODO/FIXME comments:
repolens todos .Create a starter config file:
repolens initOverwrite an existing config file:
repolens init --forceExport Reports
Print a Markdown report:
repolens analyze . --markdownPrint a JSON report:
repolens analyze . --jsonSave a Markdown report:
repolens analyze . --output report.mdSave a JSON report:
repolens analyze . --json --output report.jsonConfiguration
RepoLens supports a .repolensrc.json file in the project root.
Create one automatically:
repolens initExample configuration:
{
"largeFileThreshold": 300,
"maxStructureDepth": 3,
"maxEntriesPerFolder": 12,
"ignoredDirectories": ["node_modules", ".git", "dist", "coverage"],
"ignoredFiles": ["report.md", "report.json"]
}| Option | Description |
|---|---|
| largeFileThreshold | Line count used to flag large files |
| maxStructureDepth | Maximum depth shown in the project tree |
| maxEntriesPerFolder | Maximum entries shown per folder |
| ignoredDirectories | Directories skipped during analysis |
| ignoredFiles | Files skipped during analysis |
Tech Stack
| Layer | Tech | |---|---| | Runtime | Node.js | | Language | TypeScript | | CLI Framework | Commander | | Terminal Styling | Chalk | | Repository Analysis | Node File System / Git | | Output Formats | Terminal / Markdown / JSON |
How GitHub Analysis Works
- Input - user passes a public GitHub repository URL
- Clone - RepoLens clones the repository into a temporary folder
- Analyze - the same scanner used for local projects analyzes the cloned repo
- Report - RepoLens prints or exports the analysis
- Cleanup - the temporary clone is deleted after analysis
License
MIT License
