npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@selitzer/repolens

v1.0.0

Published

A terminal-based developer tool that scans codebases and generates project health reports.

Readme

RepoLens

Terminal-based codebase analyzer for local projects and GitHub repositories

Node.js TypeScript CLI npm GitHub

Features / Installation / Usage / Configuration

RepoLens Demo

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 TODO and FIXME comments
  • Detect large files based on configurable line thresholds
  • Calculate a simple repository health score
  • Identify missing project files like LICENSE or .env.example

Documentation & Config Checks

  • Check README quality sections
  • Check .gitignore entries
  • Check package.json metadata
  • Support custom .repolensrc.json configuration
  • 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/repolens

After 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 link

After 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/repolens

Generate 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 init

Overwrite an existing config file:

repolens init --force

Export Reports

Print a Markdown report:

repolens analyze . --markdown

Print a JSON report:

repolens analyze . --json

Save a Markdown report:

repolens analyze . --output report.md

Save a JSON report:

repolens analyze . --json --output report.json

Configuration

RepoLens supports a .repolensrc.json file in the project root.

Create one automatically:

repolens init

Example 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

  1. Input - user passes a public GitHub repository URL
  2. Clone - RepoLens clones the repository into a temporary folder
  3. Analyze - the same scanner used for local projects analyzes the cloned repo
  4. Report - RepoLens prints or exports the analysis
  5. Cleanup - the temporary clone is deleted after analysis

License

MIT License