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

nodebb-plugin-github-issue

v1.4.1

Published

Adds a post-menu button that opens a GitHub issue from the post content, with a write-only token, token expiry tracking and admin notifications

Downloads

912

Readme

nodebb-plugin-github-issue

Adds an "Open GitHub issue" item to the post options menu. Authorized users can send a post's content to a new issue in a configured GitHub repository, after editing the title and body in a dialog.

Features

  • Post menu button — shown only to users holding the plugin's category privilege, and only when a repository + token are configured.
  • Edit before sending — a dialog opens with the issue title (prefilled with the topic title) and body (prefilled with the raw post content and a link back to the post), both editable.
  • Write-only token — the GitHub personal access token is stored server-side and can never be viewed again after saving; the admin page only shows whether a token is set and when.
  • Token expiry — when saving the token, set a validity period in days (free text) or leave empty for no expiry. Administrators receive a notification 10 days before expiry and again when the token expires; issue creation is blocked while expired.
  • Topic sidebar — every topic shows a sidebar panel listing the issues that were opened from its posts, each linking to the issue on GitHub and back to the originating post. Each issue shows a live status icon like on GitHub itself (green = open, purple check = closed, grey = closed as not planned); the status is fetched from GitHub server-side with the configured token and cached for 10 minutes. Visible only to users holding the plugin's privilege; it appears in the theme's sticky topic sidebar (large screens) or, on themes without one, in the widget sidebar area.
  • Permissions — uses NodeBB's regular global privileges: grant the "Open GitHub issue from post" privilege (Manage → Privileges → Global Privileges, under the other section) to groups or individual users. Users also need read access to the post. Administrators always have it.

Setup

  1. Activate the plugin and rebuild.
  2. In the ACP page (Plugins → GitHub Issue from Post) set the repository (owner/repo), optional labels, the token, and its validity in days.
  3. Grant the privilege in Manage → Privileges → Global Privileges.

The token needs the issues: write (fine-grained) or repo/public_repo (classic) scope.

Labels with a token that has no push access

GitHub only honours the labels field of the create-issue API when the token's account has push/triage access to the repository — otherwise the labels are silently dropped. To make labels work with an unprivileged token, the plugin also embeds the configured labels as a hidden marker in the issue body:

<!-- forum-labels: bug, from-forum -->

Add this workflow to the target repository as .github/workflows/forum-labels.yml (one-time setup by someone with write access to the repo). It runs with the repository's own GITHUB_TOKEN, which is always allowed to set labels:

name: Apply forum labels

on:
  issues:
    types: [opened]

permissions:
  issues: write

jobs:
  label:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/github-script@v7
        with:
          script: |
            const body = context.payload.issue.body || '';
            const match = body.match(/<!--\s*forum-labels:\s*([^>]*?)\s*-->/);
            if (!match) return;
            const labels = match[1].split(',').map(s => s.trim()).filter(Boolean).slice(0, 10);
            if (!labels.length) return;
            await github.rest.issues.addLabels({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: context.payload.issue.number,
              labels,
            });

Notes:

  • When the token does have push access the labels are applied twice (API field + workflow) — that is harmless, the result is the same.
  • The marker is plain issue-body text, so anyone who can open issues in the repo could add such a marker by hand to label their own issue. If that matters, whitelist the allowed labels inside the workflow script.
  • addLabels creates labels that do not exist yet in the repository.