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 🙏

© 2025 – Pkg Stats / Ryan Hefner

github-activity-box

v0.1.5

Published

⚡️📌️ Update a gist to contain your recent activity

Downloads

209

Readme

github-activity-box

npm GitHub Workflow Status Checked with Biome License

✨ Enhancements

  • 🔍 Uses GraphQL API to search for issues and PRs authored by the provided username.
  • 🎨 Supports custom descriptions and filtering by specific repos/owners
  • ✅ Updated dependencies, rewritten to TypeScript, and refactored the tests.
  • 📦 Published to npm with binary support for easy use via npx or pnpx

[!NOTE]

The original implementation fetched events initiated by the user (so PRs merged by others aren't counted).

Currently, multiple states of the same PR, such as opening and merging, won't be retrieved. Also, comment events are not included.

🚀 Usage

Use as a CLI

# Run directly with npx/pnpx
npx github-activity-box [options]

# Or install globally
npm install -g github-activity-box
github-activity-box [options]

Options:

  • --dry - Preview output without updating the gist

Required Environment Variables: | Variable | Description | | --------------- | -------------------------------------------------------------------------------------------------------- | | GIST_ID | ID portion from your gist URL (https://gist.github.com/username/GIST_ID) | | GH_PAT | GitHub personal access token with gist scope | | GH_USERNAME | Your GitHub username | | DESCRIPTION | (Optional) Description for the gist | | EXCLUDE_REPO | (Optional) Comma-separated list of repositories to exclude Example: username/repo1,username/repo2 | | EXCLUDE_OWNER | (Optional) Comma-separated list of owners to exclude Example: username1,username2 | | ACTIVITY_TYPE | (Optional) Type of activities to display: all (default), issue, or pr |

GitHub Action Setup

Prerequisites

  1. Create a new public GitHub Gist
  2. Generate a personal access token with gist scope

Workflow Configuration

Create .github/workflows/activity-box.yml:

name: Activity Box
on:
  workflow_dispatch:
  schedule:
    - cron: '*/30 * * * *'  # Updates every 30 minutes

jobs:
  update-activity:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install pnpm
        uses: pnpm/action-setup@v4
        with:
          version: 10
          run_install: false

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: pnpm

      - name: Update activity
        run: npx github-activity-box@0
        env:
          GH_PAT: ${{ secrets.GH_PAT }}
          GH_USERNAME: your-username
          GIST_ID: your-gist-id
          # You can also use hardcoded values instead of variables
          # EXCLUDE_OWNER: username1,username2
          # EXCLUDE_REPO: username/repo1,username/repo2
          EXCLUDE_OWNER: ${{ vars.EXCLUDE_OWNER }}
          EXCLUDE_REPO: ${{ vars.EXCLUDE_REPO }}
          DESCRIPTION: Your custom description

Add Repository Secrets and Variables

  1. Go to your repository Settings > Secrets and variables > Actions.
  2. Add a repository secret:
    • GH_PAT: Your GitHub access token (requires gist scope).
  3. (Optional) Add repository variables as needed (EXCLUDE_OWNER, EXCLUDE_REPO).

Inspired by matchai/bird-box and forked from JasonEtco/activity-box