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

@openpets/github

v1.0.3

Published

Full-featured GitHub plugin for OpenCode - manage repositories, issues, pull requests, releases, workflows, and more

Downloads

13

Readme

GitHub Plugin

Complete GitHub API integration for OpenCode. Manage repositories, issues, pull requests, releases, workflows, and more.

Setup

1. Create a GitHub Personal Access Token

  1. Go to Create New Token to create a fine-grained token automatically
  2. Or use Classic Tokens and click "Generate new token (classic)"
  3. Select scopes:
    • repo - Full control of private repositories
    • workflow - Update GitHub Action workflows
    • gist - Create and manage gists
    • notifications - Access notifications
  4. Copy the generated token

2. Configure Environment

Add to your .env file:

GITHUB_TOKEN=ghp_your_token_here

3. Test Connection

cd pets/github
opencode run "test github connection"

Available Tools

Repository Management

  • github-list-repos - List repositories for user/org
  • github-get-repo - Get detailed repo information
  • github-search-repos - Search GitHub repositories
  • github-star-repo - Star/unstar a repository
  • github-fork-repo - Fork a repository

Issues

  • github-list-issues - List issues with filters
  • github-get-issue - Get issue details
  • github-create-issue - Create new issue
  • github-update-issue - Update issue (title, body, state, labels)
  • github-add-issue-comment - Add comment to issue
  • github-list-issue-comments - List comments on issue
  • github-search-issues - Search issues and PRs

Pull Requests

  • github-list-pull-requests - List PRs with filters
  • github-get-pull-request - Get PR details (commits, files, reviews)
  • github-create-pull-request - Create new PR
  • github-merge-pull-request - Merge a PR

Branches & Commits

  • github-list-branches - List repository branches
  • github-list-commits - List commits with filters
  • github-get-commit - Get commit details

File Contents

  • github-get-file-content - Read file from repository
  • github-search-code - Search code on GitHub

Releases

  • github-list-releases - List repository releases
  • github-create-release - Create new release

GitHub Actions

  • github-list-workflow-runs - List workflow runs with filters

Gists

  • github-list-gists - List user gists
  • github-create-gist - Create new gist

Users & Notifications

  • github-test-connection - Test connection and get authenticated user
  • github-get-user - Get user profile information
  • github-list-notifications - List notifications

Example Queries

# List your repositories
opencode run "list my repositories"

# Search for popular TypeScript repos
opencode run "search for typescript repositories with stars:>10000"

# List open issues in a repo
opencode run "list open issues in facebook/react"

# Get pull request details
opencode run "get pull request #123 from owner/repo"

# View recent workflow runs
opencode run "show workflow runs for owner/repo"

# Read a file from a repo
opencode run "get contents of README.md from owner/repo"

# Create an issue
opencode run "create issue titled 'Bug report' in owner/repo"

Search Qualifiers

Use GitHub's search syntax for powerful queries:

Repository Search

  • language:typescript - Filter by language
  • stars:>1000 - Minimum stars
  • forks:>100 - Minimum forks
  • topic:react - By topic
  • user:octocat - By user

Issue/PR Search

  • is:issue or is:pr - Type filter
  • is:open or is:closed - State filter
  • label:bug - By label
  • author:username - By author
  • repo:owner/name - In specific repo

Code Search

  • extension:ts - By file extension
  • path:src/ - In specific path
  • repo:owner/name - In specific repo

Token Scopes Reference

| Scope | Required For | |-------|--------------| | repo | All repository operations | | workflow | GitHub Actions | | gist | Gist operations | | notifications | Notifications | | read:user | User profile info |