What is RepoLens?
RepoLens turns any GitHub repository into a clear, visual story: lines of code, language breakdown, commit history, code frequency, and contributors — all in one place. Sign in with GitHub to analyze your private repositories, or paste any public repo URL to get started.
How it works
RepoLens reads a repository through the GitHub API and computes its stats on the fly. Line totals come from commit additions and deletions across the fetched history; for very large repositories this covers recent history, so totals are a close estimate rather than a full file-by-file count.
GraphQL over REST
Commit history is fetched in a single GitHub GraphQL call instead of 51+ REST requests, keeping analysis fast and rate-limit friendly.
Validated inputs
Every API input is checked with Zod schemas, so malformed requests fail early with clear messages instead of corrupting results.
Privacy first
No credentials or repository data are ever stored. Authentication happens directly with GitHub and stats are computed on demand.
Embed repo badges in your README
Add live stats badges for any public GitHub repository to your README, docs, or site — they refresh on their own as the repo changes. Pick a theme, preview the badges below, then reveal and copy the snippet for the one you want.
Code Statistics
Total lines, lines added, lines removed, and commit count.
Stats Overview
Stars, forks, watchers, and open issues.
Language Breakdown
Top programming languages used in the repository.
Swap in any public repository by changing the owner and repo values in the snippet. Other params: theme (dark | light) and hideRepoName=true.
FAQ
RepoLens only sees private repositories after you sign in with GitHub and grant access. Without signing in, only public repositories are available.