Node.js GitHub Repo Stats CLI
A command-line tool built with Node.js that fetches statistics for a given GitHub repository (stars, forks, open issues, recent commits) via the GitHub REST API and prints a formatted summary. Learners practice authenticated API requests, the Octokit client, and CLI output formatting.
- Estimate
- ~7.5h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
Node.js · Octokit · commander
Project roadmap
- 01
Set up CLI parsing
~1hUse commander to parse CLI arguments and configure a GitHub access token.
- 02
Fetch repository data
~1.5hUse Octokit to fetch repository metadata and recent commit activity.
- 03
Format the output
~1.5hPrint a formatted summary table using a console table or formatting library.
- 04
Add repo comparison
~2hAdd a flag to fetch and display stats for two repositories side by side.
- 05
Add local caching
~1.5hCache recent API responses locally to reduce the chance of hitting rate limits.
Resources
- DocsJavaScript (MDN)
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack