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

@tobiw/superreview

v0.3.0

Published

A local Git review workspace with permanent review history

Readme

Superreview

A local Git review workspace with Catppuccin Mocha and Latte themes, continuous virtualized diffs, line and range comments, replies, viewed checkpoints, and permanent submission history.

Requires Node.js 22.13+ and Git. Install the CLI from npm:

npm install --global @tobiw/superreview
cd your-repository
superreview

For day-to-day development, globally link the CLI from this checkout:

pnpm install --frozen-lockfile
pnpm link:global

The link follows the checkout. Run pnpm build after source changes.

The CLI opens a browser and binds to a random port on 127.0.0.1. The browser shell opens before Git capture finishes and shows capture progress for large comparisons. Keep the terminal running. Ctrl+C stops the server after any in-flight immutable capture finishes; your review remains saved. Use --no-open to print the URL without opening a browser, or --port 4317 for a fixed port. Use --verbose to log timestamped CLI, storage, server, and Git capture timings to stderr when diagnosing slow repositories.

superreview                         # HEAD vs working tree; staged + unstaged + untracked
superreview main                    # main vs working tree
superreview main..feature           # endpoint comparison
superreview main...feature          # merge-base comparison
superreview main feature            # endpoint comparison
superreview --cached                 # HEAD vs index
superreview --verbose                # log startup and capture timings to stderr
superreview --cached main            # main vs index
superreview -- src/app.ts            # literal repository-relative paths
superreview --new --name "Auth pass" # another independent review server
superreview --review <id> main...HEAD # full branch comparison in an existing review
superreview create main...HEAD --name "Auth pass" --json # create, capture, and exit
superreview list --json
superreview open <id>                # exact saved snapshot; Refresh explicitly recaptures
superreview threads <id> --json      # current conversations and submission changes
superreview reply <id> <thread-id> --body-file reply.md --json
superreview comment <id> --snapshot <snapshot-id> --path src/app.ts --side new --line 42 --body-file comment.md --json
superreview archive <id>
superreview reopen <id>
superreview export <id> --submission 1

Review IDs are stable. Working-tree and HEAD comparisons on the same branch/worktree resume its latest active review. Explicit comparisons against another branch have their own binding. Use superreview --review <id> main...HEAD to attach a different comparison to a chosen review. open restores the captured diff even after the source branch changes or disappears. Archive keeps history and can be reversed. Linked worktrees keep their own .superreview directory.

Use --json for machine-readable output. Serve output always includes url, reviewId, title, and status. Fresh captures initially report status: "capturing"; /api/session changes to status: "ready" when the immutable snapshot is available. superreview open can report the saved snapshotId and file count immediately. Diagnostics, including opt-in --verbose timing lines, go to stderr and never alter JSON stdout. Color follows the terminal and NO_COLOR; override it with --color=always or --color=never.

Reviewing your agent's work

Run superreview, read changes, and save line comments. Files become viewed after every chunk has been visible, or through the checkbox. Submit a review when a feedback round is ready. The success dialog offers Copy agent task, Copy read-only task, and Copy as Markdown. The agent task contains the review ID, submission number, and worktree. The read-only task tells the agent not to edit or reply.

An agent with the Superreview skill can read the frozen submission and current conversation directly. It can add replies after it changes the code. Agent messages have a visible Agent badge. A custom display name does not remove this badge. The human reviewer keeps control of resolution and submission.

Continue editing, then refresh or run the CLI again. Unchanged file evidence stays viewed. Since reviewed shows only remaining changes and compares changed files against their reviewed content when the base is compatible.

A changed comparison base triggers a conservative full review. A file reviewed only against HEAD is not proof that older commits on the branch were reviewed. Manual unviewing remains in force for that exact file version until you re-enable automatic tracking or mark it viewed.

Reviewing a colleague's work

Fetch and check out the branch using Git, then run superreview main...HEAD. Review, comment, and submit a local round. Copy the submission from its success dialog or History at any later time. After new commits arrive, run the same command to capture them and retain unchanged evidence. GitHub/GitLab authentication, fetching PRs, and publishing feedback are not implemented in this release.

Headless agent workflow

create always creates a new review. It captures the requested comparison and exits without a browser or server:

superreview create main...HEAD --name "Auth review" --json

Use the returned review and snapshot IDs for later commands. open <id> starts the UI for the saved snapshot.

threads <id> --json returns current threads, author data, pending and resolved state, and a submissionChanges list. Each change lists the message IDs that changed in that submission. Use --submission <number> to limit the output to threads from one submitted round. Unfinished drafts are reported as a count and are not feedback.

reply and comment always create agent messages. Use --author to set the display name. Use --request-id with a stable value for safe retries. Use --expected-sequence with the sequence from threads to reject stale writes.

A line comment must name an immutable snapshot, repository-relative path, side, and visible diff line. Add --end-line for a range. Use --file-comment for a file comment. Superreview checks the location against the snapshot and never moves it to current code.

Comment and reply commands use the active review server when it is running. Otherwise, they take the repository writer lock and write directly. They never submit a round, resolve a thread, or mark a file viewed.

Feedback rounds

Saved comments, replies, edits, deletions, and resolution changes remain pending until submitted. New browser messages have a human author. CLI comments and replies have an agent author. Old messages without author data remain unchanged and appear as Legacy author unknown. A submission freezes all changed threads, including their conversation context, summary, original code excerpts, and snapshot IDs. Editing a submitted comment produces pending feedback for the next round; it never rewrites the previous round. Unfinished editor drafts are excluded and clearly called out before submission. Submitting does not mark files viewed or resolve threads.

Local storage

| Path under .superreview/ | Purpose | | ---------------------------------- | ------------------------------------------------------- | | config.json | Store schema and defaults | | reviews/<id>/review.json | Stable identity and repository/comparison binding | | reviews/<id>/events.jsonl | Ordered, append-only review events | | reviews/<id>/snapshots/<id>.json | Immutable captured diffs, references, content manifests | | reviews/<id>/drafts.json | Replaceable unfinished editor drafts | | objects/<sha256> | Deduplicated original file bytes | | cache/ | Rebuildable data; safe to remove | | writer.lock/ | One process owns writes for this worktree |

The CLI adds .superreview to the repository's local Git exclude file. It does not edit source files or the index. Back up the entire folder to preserve history. No remote service receives your code.

Interrupted final JSONL writes are preserved in an interrupted-*.jsonl file and removed from the active log on recovery. Corrupt middle records fail visibly. Only one server writes at a time; close it before running another CLI writer. Multiple browser tabs detect stale updates and ask for a reload rather than overwrite feedback.

Renames currently appear as deletion and addition. Merge conflicts must be resolved before capture. Binary files, mode-only changes, and submodule pointer changes have file-level review markers; they do not offer text line comments. Word-level matching follows the delta approach, with a capture-wide budget and bounded fallback for pathological lines. Git histogram generates the line diff. Capture batches Git metadata and objects, then diffs opaque temporary files in one process. Very large captures use disk objects, progressive worker preparation, and virtualized rendering; the capture adapter still holds the complete parsed text diff in memory.

Agent skill

Install the small discovery skill from your local Superreview source checkout:

npx skills add /path/to/superreview --skill superreview

The CLI package also includes the discovery skill. After a global CLI install:

npx skills add "$(npm root --global)/@tobiw/superreview" --skill superreview

Choose your harness in the installer. Add --global to install for all projects. The skill installer does not install the Superreview executable.

The agent loads current instructions with superreview skill read (or --json). This works offline and outside Git without creating files. The installed skills/superreview/SKILL.md is only a discovery entrypoint; skill-data/review.md ships with the CLI, so upgrades update the full instructions together with the commands.

This follows the agent-browser runtime skill strategy and the Skills CLI local-source format.