JavaScriptintermediatecliAI generated

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

  1. 01

    Set up CLI parsing

    ~1h

    Use commander to parse CLI arguments and configure a GitHub access token.

  2. 02

    Fetch repository data

    ~1.5h

    Use Octokit to fetch repository metadata and recent commit activity.

  3. 03

    Format the output

    ~1.5h

    Print a formatted summary table using a console table or formatting library.

  4. 04

    Add repo comparison

    ~2h

    Add a flag to fetch and display stats for two repositories side by side.

  5. 05

    Add local caching

    ~1.5h

    Cache recent API responses locally to reduce the chance of hitting rate limits.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~7.5h · 5 steps

Tech stack

Node.jsOctokitcommander