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

@true-and-useful/create-gh-app

v0.1.3

Published

Create GitHub Apps for autonomous agents via the manifest flow. Lists installations and mints short-lived tokens.

Readme

@true-and-useful/create-gh-app

Create GitHub Apps for autonomous agents using the manifest flow. List installations and mint short-lived installation tokens.

Install

npm i -g @true-and-useful/create-gh-app

Or run directly:

npx @true-and-useful/create-gh-app <command>

Prerequisites

  • Node.js >= 18
  • GitHub CLI (gh) — authenticated via gh auth login

Commands

create — Create a new GitHub App

create-gh-app my-agent                    # interactive org picker
create-gh-app my-agent --owner my-org     # create under an org
create-gh-app my-agent --owner @me        # create under your personal account

Opens a browser to complete the GitHub manifest flow. The app credentials (including private key) are saved locally to .gh-apps/<agent>/<timestamp>/.

After creation, install the app on the target org/account:

https://github.com/apps/<slug>/installations/new

list — List locally stored apps

create-gh-app list

installations — List installations of an app

create-gh-app installations <slug>

token — Mint a short-lived installation token

create-gh-app token <slug>                     # auto-selects if one installation
create-gh-app token <slug> <installation_id>   # target a specific installation

The token is printed to stdout (metadata to stderr), so it's pipe-friendly:

export GH_TOKEN="$(create-gh-app token my-agent)"
gh repo view my-org/my-repo --json nameWithOwner

janee-add — Register the app as a Janee service

create-gh-app janee-add <slug>

Feeds the app credentials into Janee as a github-app auth service, so AI agents can request short-lived GitHub tokens through Janee's MCP proxy.

Requires the janee CLI (npm i -g @true-and-useful/janee).

delete — Delete an app

create-gh-app delete <slug>

Deletes the app from GitHub (using the stored private key) and removes local files.

How it works

  1. Create — Spins up a local HTTP server, POSTs a manifest to GitHub, receives credentials via redirect.
  2. Token — Signs a JWT with the app's private key (RS256), exchanges it for a 1-hour installation token via the GitHub API.
  3. Janee integration — Passes credentials to janee add so the private key is encrypted at rest and tokens are minted on demand.

Default permissions

Apps are created with these defaults (editable later in GitHub):

  • Contents: write
  • Pull requests: write
  • Issues: write

Events: pull_request, pull_request_review, issues, issue_comment

License

MIT