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

@autosk/gh-review

v0.1.0

Published

gh-review — review a GitHub issue or PR (URL in the task title) with a pi agent in a per-task dockerSandbox and a READ-ONLY gh; review → accept (human) → cleanup → done.

Readme

@autosk/gh-review

Review a GitHub issue or pull request from a task: enroll a task whose title carries a GitHub issue/PR URL (https://github.com/<owner>/<repo>/issues/9 or …/pull/12), and a pi agent reviews it inside a per-task docker run -i --rm container with a READ-ONLY gh — the verdict lands as a structured comment on the autosk task. Nothing is ever written to GitHub (the token's scopes reject every write with 403, and the prompt never tries).

It registers ONE workflow, gh-review:

review ──▶ accept (human) ──▶ cleanup ──▶ done
  • reviewpiAgent (xhigh) in a per-task dockerSandbox container (ghcr.io/wierdbytes/pi-runtime, which ships gh); it reads the issue/PR with gh (+ a clone when the diff is not enough), reviews it, posts the review as one task comment, and transits to accept.
  • acceptstatusStep("human"); the task parks for you to read the review.
  • cleanupsandboxCleanupStep: removes the per-task worktree/container, then transits to done (autosk resume <id> --to cleanup).

The enroll is validated before any agent runs (onTransit): a task with no parsable GitHub URL — or a daemon with no gh config — is rejected with an explanatory comment and stays new.

Setup: read-only gh

  1. On GitHub, create a fine-grained personal access token:

    • Repository access: only the repositories you want reviewed.
    • Permissions (all Read-only): Contents, Issues, Pull requests, Metadata. (Contents: Read is what allows gh repo clone for a deeper PR review; drop it for a diff-only token.)
  2. Store it in ~/.autosk/github/ro-token.json (override the dir with AUTOSK_GH_DIR):

    { "token": "github_pat_…" }
    chmod 600 ~/.autosk/github/ro-token.json
  3. Done. The extension reads the file at container-start and passes the token as the GH_TOKEN env — gh's native token mechanism: no gh config file exists in the container, so gh never tries to rewrite one (gh ≥2.40 rewrites hosts.yml on most invocations — a read-only config mount does not work), and GH_NO_UPDATE_NOTIFIER=1 / CHECKPOINT_DISABLE=1 keep gh from writing anything else. The token is visible in docker inspect while the per-task container lives (minutes); read-only access is enforced by the token's scopes on GitHub's side (a write → 403). Rotating the token in the file takes effect on the next run — no daemon restart.

Use it

# 1. build (or pull) the pi-runtime image (ships gh)
daemon/extensions/pi-agent/docker/build.sh

# 2. install this extension (hot-applies to open projects, no restart)
autosk ext add npm:@autosk/gh-review      # or: autosk ext add /path/to/gh-review

# 3. enroll a task whose title carries the URL
id=$(autosk create "https://github.com/wierdbytes/autosk/pull/12" --workflow gh-review --json | jq -r .id)

# the daemon runs the review and parks the task at `accept`;
# read the review comment, then route it through cleanup:
autosk resume "$id" --to cleanup          # → done (worktree/container removed)

The host project must be a git repo (the sandbox is a per-task worktree, same as feature-dev). If the URL points at a different repository, the agent clones it inside the container (gone when the container exits).

Env knobs (all optional):

| var | default | what | |-----|---------|------| | AUTOSK_GH_REVIEW_IMAGE | ghcr.io/wierdbytes/pi-runtime:latest | image to run (must ship gh) | | AUTOSK_GH_DIR | ~/.autosk/github | dir holding ro-token.json (read fresh per run) | | AUTOSK_PI_DIR | ~/.pi | host pi config (auth + models) bind-mounted into the container |

Exports

  • default — the extension factory (registers gh-review).
  • ghReviewWorkflow(opts) / ghReviewSandbox() — compose your own workflow over the same docker sandbox.
  • ghReviewGuard — the onTransit enroll validator (URL + gh token).
  • parseGhTarget(text) — the title/description URL parser.
  • defaultDockerImage() / ghConfigDir() / ghTokenFile() / readGhToken() / checkGhToken().