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

@gwynnnplaine/pi-github

v0.3.3

Published

Read GitHub issues, PRs, diffs, checks & code from inside Pi — via the gh CLI. Chronological markdown, image extraction, PR review workflows.

Readme

License Pi extension npm GitHub

Fork of the archived maria-rcks/pi-github, continued under @gwynnnplaine.

A simple, reliable GitHub tool for your agents. Wraps the gh CLI you already have.

  • Markdown-formatted output. LLMs read it far better than raw JSON.
  • Infers the repo from git remote origin, so neither you nor the agent fusses with owner/repo.
  • Handles pictures — lists and downloads image attachments from issues and PRs.

Just tell Pi review #1234 and it works.

Install

pi install npm:@gwynnnplaine/pi-github
# or
pi install git:github.com/gwynnnplaine/pi-github
# or
pi install /absolute/path/to/pi-github

Requires gh

  • Install gh and put it on PATH.
  • Authenticate once: gh auth login.
  • Skip owner/repo. They're inferred from git remote origin.

Use

Ask Pi in plain language. It routes to the github tool.

"review #1234"
"list open PRs"
"PR overview for 88 — files, reviews, checks"
"show the diff for src/index.ts in PR 88"
"read src/index.ts from main"
"search the repo for 'fetchThread'"

Pass owner/repo to target another repo; omit them to use the current one.

Actions

One tool, github. Pick an action — default is format.

| Action | Does | Scope | |--------|------|-------| | format | Thread → chronological markdown. Filters: author, kind, since, until, contains | issue / PR / discussion | | list_issues | Open issues, paginated | repo | | list_prs | Open PRs, paginated | repo | | list_images | Image references in a thread | thread | | download_image | Download one image by imageId | thread | | list_changes | Changed files + change IDs | PR | | get_change | One file's diff by changeId | PR | | list_participants | Everyone who touched the thread | thread | | list_review_comments | Review comments. Filters: author, path, since, until | PR | | list_pr_commits | Commits in the PR | PR | | get_pr_commit | One commit's diff by commitSha | PR | | list_pr_checks | CI / check status | PR | | pr_overview | Summary: files + reviews + checks. Toggle with includeFiles/includeReviews/includeChecks | PR | | read_file | Remote file content. Options: startLine, endLine, ref | repo | | list_directory | Remote directory listing. Option: ref | repo | | search_code | Code search. Option: path | repo | | glob_files | Match the repo tree by filePattern. Options: offset, limit, ref | repo | | search_commits | Commit history search by query, author, since, until | repo |

Params

  • owner, repo — optional; inferred from git remote origin.
  • id — thread number (issue / PR / discussion). Legacy alias number still works.
  • entityissue | pr | discussion. Auto-detected when omitted.

Links

  • Repository: https://github.com/gwynnnplaine/pi-github
  • Issues: https://github.com/gwynnnplaine/pi-github/issues