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

open-plan-annotator

v1.0.14

Published

Fully local plugin for interactive plan annotation from your Agentic assistants

Readme

open-plan-annotator

npm version License: MIT Platform

A fully local agentic coding plugin that intercepts plan mode and opens an annotation UI in your browser. Mark up the plan, send structured feedback to the agent, and receive a revised version — iterate as many times as you need until you're ready to approve.

Select text to strikethrough, replace, insert, or comment — then approve the plan or request changes

How It Works

  1. Your coding agent (Claude Code or OpenCode) finishes writing a plan
  2. The plugin launches an ephemeral HTTP server and opens a React UI in your browser
  3. You review the plan and annotate it — strikethrough, replace, insert, or comment on any section
  4. Approve to let the agent proceed, or Request Changes to send your annotations back as structured feedback
  5. The agent revises the plan and the cycle repeats until you're satisfied

Everything runs locally. Nothing leaves your machine.

Install

Claude Code

From within Claude Code, add the marketplace and install the plugin:

/plugin marketplace add ndom91/open-plan-annotator
/plugin install open-plan-annotator@ndom91-open-plan-annotator

This registers the ExitPlanMode hook that launches the annotation UI.

OpenCode

Add open-plan-annotator to the plugin array in your OpenCode config (opencode.json or .opencode/config.json):

{
  "plugin": ["open-plan-annotator"]
}

OpenCode will install the package and load it automatically. The plugin:

  • Injects plan-mode instructions into the agent's system prompt
  • Registers a submit_plan tool that the agent calls after creating a plan
  • Spawns the annotation UI in your browser for review
  • Returns structured feedback to the agent on approval or rejection
  • Optionally hands off to an implementation agent after approval

Implementation Handoff

By default, after a plan is approved the plugin sends "Proceed with implementation." to a build agent. To customize or disable this, create open-plan-annotator.json in your project's .opencode/ directory or globally in ~/.config/opencode/:

{
  "implementationHandoff": {
    "enabled": true,
    "agent": "build"
  }
}

Set enabled to false to disable auto-handoff. Project config overrides global config.

Manual Install

If you want to run the binary standalone or build from source:

npm install -g open-plan-annotator

[!NOTE] The first run might take a few seconds if you use pnpm, as it blocks postinstall scripts. Claude / OpenCode will trigger the download upon first use then.

From Source

git clone https://github.com/ndom91/open-plan-annotator.git
cd open-plan-annotator
bun install
bun run build

Then load it directly in Claude Code:

claude --plugin-dir ./open-plan-annotator

Keyboard Shortcuts

| Action | Shortcut | Description | |--------|----------|-------------| | Delete | d | Strikethrough selected text | | Replace | r | Replace selected text with new content | | Insert | i | Insert text after the selection | | Comment | c | Attach a comment to selected text | | Approve | Cmd+Enter | Approve the plan and proceed | | Request Changes | Cmd+Shift+Enter | Send annotations back to the agent |

Development

bun run dev

Starts the Bun server on port 3847 with a test plan and the Vite dev server on port 5173 with HMR.

bun run lint        # check
bun run lint:fix    # auto-fix
bun run format      # format

Maintainer Docs

License

MIT