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

@0x-may/git-peek

v1.0.2

Published

Peek into your github activity from the terminal

Readme

git-peek

View your GitHub activity directly from the terminal

A lightweight, secure CLI tool that displays your GitHub contributions, activity, and stats without opening a browser.

Features

  • Secure authentication with GitHub Personal Access Tokens
  • Daily activity tracking - See today's commits, PRs, and issues
  • Weekly summaries - 7-day activity overview
  • Monthly reports - 30-day contribution history
  • Local storage - No external servers, your data stays private
  • Lightning fast - Instant results from GitHub's API

Installation

# Install globally via npm
npm install -g @0x-may/git-peek

# Or clone and install locally
git clone https://github.com/0x-mayank/git-peek.git
cd git-peek
npm install
npm link

Getting Started

1. Generate a GitHub Token

  1. Go to GitHub Settings
  2. Click Developer settingsPersonal access tokensFine-grained tokens
  3. Click Generate new token
  4. Give it a name (e.g., git-peek-cli)
  5. Set expiration (30-90 days recommended)

Repository Access

  • Select All repositories (recommended)
    • This applies to all current and future repositories you own
    • Also includes public repositories (read-only)

Required Permissions

Under Repositories tab, grant these read-only permissions:

  • Commit statuses - Read-only
  • Contents - Read-only
    (Repository contents, commits, branches, downloads, releases, and merges)
  • Issues - Read-only
    (Issues and related comments, assignees, labels, and milestones)
  • Metadata - Read-only (Required)
    (Search repositories, list collaborators, and access repository metadata)
  • Pull requests - Read-only
    (Pull requests and related comments, assignees, labels, milestones, and merges)

Under Account tab:

  • Email addresses - Read-only
    (Manage a user's email addresses)
  • Followers - Read-only
    (A user's followers)
  • Profile - Read and write
    (Manage a user's profile settings)

Do NOT grant:

  • Write access to repositories
  • Admin access
  • Workflow access
  • Secrets access
  1. Click Generate token and copy it immediately
  2. Important: GitHub will not show this token again!

2. Login

git-peek login YOUR_TOKEN_HERE

You should see:

Logged in as your-username

Usage

Check Authentication

git-peek whoami

Shows your GitHub username, public repos, and follower count.

Today's Activity

git-peek today

Displays:

  • Commits made today
  • Pull requests opened
  • Issues created
  • Active repositories

Weekly Summary

git-peek week

Shows last 7 days of activity with:

  • Daily breakdown
  • Total commits, PRs, issues
  • Active repositories

Monthly Report

git-peek month

30-day activity overview with:

  • Active days count
  • Total contributions
  • Repository activity

Logout

git-peek logout

Removes stored token and logs you out.

Example Output

Today's GitHub Activity
Date: 4/1/2026

Commits      : 5
PRs opened   : 2
Issues opened: 1
Active repos : git-peek, my-project

How It Works

  • Authentication: Uses GitHub Personal Access Tokens (no username/password)
  • Storage: Token stored locally in ~/.git-peek/config.json
  • API: Leverages GitHub REST API for recent activity
  • Privacy: No external servers, all data fetched directly from GitHub
  • Security: Read-only access, token can be revoked anytime

Security

  • Token stored only on your machine
  • No telemetry or tracking
  • No backend servers
  • Read-only GitHub access
  • Token revocable anytime from GitHub settings

Important Notes

Activity Tracking vs. Exact Commits

git-peek shows GitHub activity, not exact commit counts:

  • Uses GitHub Events API (limited to ~90 days of history)
  • Counts push events, which may differ from actual commits
  • Best for recent activity tracking (today, week, month)
  • Yearly stats may be incomplete due to API limitations

For exact contribution data, refer to your GitHub contribution graph.

Technical Details

Built with:

  • Node.js
  • Axios (HTTP client)
  • Chalk (terminal styling)
  • GitHub REST API

Requirements:

  • Node.js >= 14.0.0
  • GitHub Personal Access Token

Author

Mayank

Show Your Support

Give a ⭐️ if this project helped you!

Feedback

Found a bug or have a feature request? Open an issue!


Made with ❤️ by mayank.