Chrome Extension That Shows GitHub Repo Line Counts
See file counts, line counts, and language breakdown on every GitHub repo page.
Build a Chrome extension called "GitHub Repo Stats" that adds line count and file count info to GitHub repository pages. The extension should: (1) detect when the user is on a GitHub repo page (matches https://github.com/*/* pattern), (2) inject a stats panel below the repo description showing: total file count by extension, total line count by language, the top 5 largest files, README presence, license type, (3) fetch this data using the GitHub REST API (no auth needed for public repos, but user can provide a personal token in options for higher rate limits and private repo access), (4) cache results per repo for 1 hour to avoid re-fetching. Permissions: storage, activeTab. Host permissions: https://github.com/*, https://api.github.com/*. Manifest V3 with content script.
What this extension does
Adds file counts, line counts, and language breakdown to every GitHub repo page. Shows top 5 largest files and detects README and license. Cached per repo for 1 hour.
How it works
A content script detects GitHub repo pages and injects a stats panel. The service worker fetches the repo tree from the GitHub REST API and aggregates file counts and sizes by extension. Personal access tokens (optional) are stored in chrome.storage.
Permissions used: storage, activeTab
Host permissions: https://github.com/*, https://api.github.com/*
Who builds this
For developers evaluating libraries before adopting them, hiring managers reviewing candidate code, OSS maintainers benchmarking their projects, and anyone curious about repo composition without cloning.
How to build it in 3 minutes
- Sign in to PlugThis and open the chat input.
- Copy the prompt above and paste it into the chat.
- PlugThis generates the full Manifest V3 extension in 60-90 seconds.
- Download the zip, extract it, and load it via
chrome://extensionsdeveloper mode.
Build it now, free.
Paste the prompt above into PlugThis and ship your extension in 3 minutes.