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

opencode-ask-github

v1.0.0

Published

GitHub repository management plugin for OpenCode - auto-clone repos and analyze with AI

Readme

opencode-ask-github

GitHub repository exploration plugin for OpenCode. Clones repositories on-demand and delegates analysis to AI subagents.

Features

  • Auto-clone: Repositories are cloned on-demand with shallow clone for speed
  • AI Analysis: Delegates to the explore subagent for codebase analysis
  • Aliases: Configure shortcuts for frequently used repositories
  • Cache Management: List and remove cloned repositories

Installation

Install via npm/bun:

bunx opencode-ask-github
# or
npx opencode-ask-github

Or add manually to your OpenCode configuration (~/.config/opencode/config.json):

{
  "plugins": ["opencode-ask-github"]
}

Commands

/gh-ask <repo> [question]

Clone/locate a repository and analyze it with AI.

/gh-ask sveltejs/svelte how is the component compiler structured?
/gh-ask https://github.com/tailwindlabs/tailwindcss what's the CLI architecture?
/gh-ask sv explain the reactivity system

The command nudges the AI to use the gh-ask tool, which prepares the repository locally. The AI then delegates to a subagent for exploration.

Supported input formats:

  • GitHub URLs: https://github.com/owner/repo
  • owner/repo pairs: sveltejs/svelte
  • Aliases: sv (if configured)

/gh-list

List all cloned repositories and configured aliases.

/gh-remove <repo>

Remove a cloned repository from the cache.

AI Tool

The plugin provides a single tool for the AI:

| Tool | Description | | --------- | ----------------------------------------------------------------- | | gh-ask | Prepare a GitHub repo for exploration (clone/update). Returns the local path and suggests a subagent for analysis. |

The AI can call this tool directly when it needs to explore a repository, even without the /gh-ask command.

Configuration

Configuration is stored in ~/.config/opencode/ask-github.json.

Aliases

Add aliases for frequently used repositories by editing the config file directly:

{
  "aliases": {
    "sv": "sveltejs/svelte",
    "tw": "tailwindlabs/tailwindcss"
  }
}

You can also use /gh-list to see all configured aliases.

Prompt

Customize which subagent is suggested for repository exploration:

{
  "prompt": {
    "agent": "general"
  }
}

Default agent is explore.

Storage

Repositories are cloned to ~/.cache/opencode-github/{owner}/{repo}/.

License

MIT