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

ryanvogel-opencode-note-review

v0.3.3

Published

OpenCode TUI review-note plugin and local HTML/PDF report generator.

Readme

OpenCode Content Review

Local OpenCode review-note tooling for model and release evaluations.

What It Does

  • Adds a TUI slash command: /note.
  • Lets the reviewer choose how many prompt/response pairs to capture.
  • Lets the reviewer select or create a tag before saving.
  • Saves each note as structured local JSONL under .opencode/reviews/<tag>/.
  • Captures exact prompt text, model/version fields when available, reasoning effort, request IDs, tool inputs/outputs, and trace parts.
  • Generates a minimal, academic-style HTML or PDF report.

Install From npm

Add the TUI plugin to .opencode/tui.json in the project where you want to review models:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [
    ["ryanvogel-opencode-note-review", {
      "defaultPairs": 1,
      "defaultTag": "General",
      "outputDir": ".opencode/reviews",
      "maxTextChars": 12000,
      "includeToolOutputs": true
    }]
  ]
}

Restart OpenCode after editing tui.json.

Install the report CLI globally if you want the opencode-review command available outside OpenCode:

npm install -g ryanvogel-opencode-note-review

You can also run the report CLI with npm exec:

npx ryanvogel-opencode-note-review report --help

Run the report command without arguments for an interactive setup flow:

opencode-review report

It asks for report name, notes input, output format, output path, and optional tag filter while showing defaults. The default notes input is .opencode/reviews, and the default output filename includes the report name and current date.

Install For Local Development

Build the package:

bun install
bun run build

For local development, point .opencode/tui.json at the built file:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [
    ["/Users/ryanvogel/dev/opencode-content-review/dist/tui.js", {
      "defaultPairs": 1,
      "defaultTag": "General",
      "outputDir": ".opencode/reviews",
      "maxTextChars": 12000,
      "includeToolOutputs": true
    }]
  ]
}

Restart OpenCode after editing tui.json.

Usage

In an OpenCode session, run:

/note

The plugin asks for the number of prompt/response pairs to capture, then asks you to select or create a tag, then opens a note prompt. It writes notes under the selected tag:

.opencode/reviews/<tag>/tag.json
.opencode/reviews/<tag>/notes.jsonl
.opencode/reviews/<tag>/notes/<note-id>.json

Each note is self-contained. For each captured pair, it stores the exact prompt, assistant output, model/provider IDs, request IDs when OpenCode exposes them, reasoning effort when available, token/cost metadata, tool inputs and outputs, raw message metadata, and trace parts such as reasoning, snapshots, patches, retries, and step markers.

Generate Report HTML

opencode-review report \
  --input .opencode/reviews \
  --out .opencode/reviews/reports/model-review.html \
  --title "GPT-5.5 Model Review"

Or after building:

opencode-review report --out .opencode/reviews/reports/model-review.html

If --title is omitted in an interactive terminal, the CLI asks for a report name. Default output filenames include the report name and current date, for example .opencode/reviews/reports/frontier-model-review-2026-05-13.pdf.

--input can be a single .jsonl file, a single note .json file, or a folder. Folder inputs are scanned recursively for .jsonl files and note_*.json notes, then deduped by note ID. This lets multiple reviewers send you their .opencode/reviews/<tag>/notes/*.json files or whole review folders.

Example combined folder workflow:

combined-notes/
  alice/note_20260511_120000_a1b2c3d4.json
  ben/notes.jsonl
  casey/reviews/notes/note_20260511_130000_e5f6g7h8.json
opencode-review report \
  --input combined-notes \
  --out reports/combined-model-review.pdf \
  --title "Combined Model Review"

Filter by tag:

opencode-review report \
  --input combined-notes \
  --tag gpt-5-5 \
  --out reports/gpt-5-5-review.pdf

Generate Report PDF

The CLI can render the report directly to PDF with headless Chrome. On macOS it automatically checks /Applications/Google Chrome.app/Contents/MacOS/Google Chrome; on other systems it checks common Chrome/Chromium executable names in PATH.

opencode-review report \
  --input .opencode/reviews \
  --pdf .opencode/reviews/reports/model-review.pdf \
  --title "GPT-5.5 Model Review"

You can also use a .pdf output path:

opencode-review report --out .opencode/reviews/reports/model-review.pdf

Useful PDF options:

  • --html <path> writes the intermediate HTML used for PDF rendering.
  • --keep-html writes a sidecar HTML file next to the PDF.
  • --chrome-path <path> uses a specific Chrome or Chromium executable.
  • --title <text> skips the interactive report-name prompt.
  • --tag <name> filters by tag name or tag folder ID.

Notes

  • Tool inputs and outputs are captured by default for technical review evidence. Set includeToolOutputs to false if notes get too large.
  • maxTextChars limits each prompt and response body to prevent accidental giant reports.
  • Use defaultPairs: "all" only for short review sessions.
  • Use defaultTag to change the default tag shown in the tag picker.