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

wopr-plugin-github

v1.0.0

Published

GitHub integration for WOPR - webhooks, PRs, repo management

Readme

wopr-plugin-github

GitHub integration for WOPR - webhooks, PR notifications, and repository management.

Prerequisites

Installation

wopr plugin add wopr-network/wopr-plugin-github

Configuration

In your WOPR config (~/.wopr/config.json):

{
  "plugins": {
    "wopr-plugin-github": {
      "orgs": ["wopr-network"],
      "prReviewSession": "discord:misfits:#pay-no-attention-to-the-man-behind-the-curtain",
      "releaseSession": "discord:misfits:#releases"
    }
  }
}

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | orgs | array | [] | GitHub organizations to manage webhooks for | | prReviewSession | string | - | WOPR session to route PR events to | | releaseSession | string | - | WOPR session to route merge/release events to |

CLI Commands

# Check GitHub integration status
wopr github status

# Set up webhooks for all configured orgs
wopr github setup

# Set up webhook for a specific org
wopr github setup my-org

# Show webhook URL
wopr github url

Extension API

Other plugins can use the GitHub extension:

const github = ctx.getExtension("github") as GitHubExtension;

// Check if gh CLI is authenticated
const authed = await github.isAuthenticated();

// Get the webhook URL
const url = await github.getWebhookUrl();

// Set up webhook for an org
const result = await github.setupWebhook("my-org");
if (result.success) {
  console.log(`Webhook ID: ${result.webhookId}`);
  console.log(`URL: ${result.webhookUrl}`);
} else {
  console.error(result.error);
}

How It Works

  1. Plugin uses gh CLI to interact with GitHub API
  2. When setting up webhooks, it uses the funnel extension to get a public URL
  3. Creates org-level webhooks that send PR and review events to WOPR
  4. Events are routed to configured WOPR sessions for processing

Dependencies

This plugin works in conjunction with:

  • wopr-plugin-tailscale-funnel - Provides public URLs via Tailscale Funnel
  • WOPR webhooks extension - Routes incoming webhooks to sessions

Supported Events

Currently configured events:

  • pull_request - PR opened, closed, merged, etc.
  • pull_request_review - Reviews submitted

Integration with wopr-plugin-webhooks

For receiving GitHub webhooks without the built-in preset, you can configure a custom mapping in the webhooks plugin:

{
  "webhooks": {
    "mappings": [
      {
        "id": "github-events",
        "match": { "path": "github" },
        "action": "agent",
        "wakeMode": "now",
        "sessionKey": "discord:misfits:#my-channel",
        "messageTemplate": "GitHub {{action}}: PR #{{pull_request.number}} in {{repository.full_name}}: {{pull_request.title}}\nBy: {{pull_request.user.login}}\nURL: {{pull_request.html_url}}"
      }
    ]
  }
}

Important: Use action: "agent" with wakeMode: "now" instead of action: "wake" to return 202 Accepted immediately. GitHub webhooks expect fast responses and will timeout/retry if you use synchronous wake actions.

License

MIT