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

@sightmap/plugin

v0.5.5

Published

Sightmap plugin for Claude Code, Codex, Cursor, and opencode. Slash commands, skills, and curator subagents that wrap @sightmap/mcp.

Readme

sightmap plugin

Slash commands, skills, and curator subagents for keeping a .sightmap/ view inventory in sync with your codebase. Wraps @sightmap/mcp.

Ships per-harness manifests at the repo root so the same source tree installs into Claude Code, Codex, Cursor, and opencode.

Install (Claude Code)

From inside Claude Code:

/plugin marketplace add sightmap/plugin
/plugin install sightmap@sightmap

The first command registers this repo's .claude-plugin/marketplace.json; the second installs the sightmap plugin from it.

Install (other harnesses)

| Harness | Manifest | Status | |-----------|--------------------------------|-------------| | Claude Code | .claude-plugin/plugin.json | Supported | | Codex | .codex-plugin/plugin.json | Manifest in place; harness wiring in progress | | Cursor | .cursor-plugin/plugin.json | Manifest in place; harness wiring in progress | | opencode | .opencode/plugin.json | Manifest in place; harness wiring in progress |

Surface

Slash commands

  • /sightmap:init — first-time scaffolding
  • /sightmap:bootstrap — seed .sightmap/ from an existing codebase
  • /sightmap:audit — six-dimension audit of the current inventory
  • /sightmap:explain — narrate what a view does
  • /sightmap:fix — apply patches (confirm-first; --apply to auto-apply)
  • /sightmap:reflect — end-of-turn nudge to fold the agent's just-completed source edits back into .sightmap/ (description/memory only)

Skills

audit/, bootstrap/, explain/, fix/, init/, reflect/ under skills/.

Subagents

  • sightmap-auditor — read-only; runs the six-dimension audit
  • sightmap-assistant — write-capable curator with full authority over every view field (structural + semantic). Adds, updates, and deletes views via the mcp__sightmap__* curation tools, and proposes audit-driven fix patches.

Hooks (Claude Code)

| Role | Script | When | |--------------|---------------------------------|-----------------------------------------------| | SessionStart | bin/session-start.sh | Once per session, unconditional | | PreToolUse | bin/pre-tool-use-advisory.sh | Before Write/Edit on .sightmap/** | | PostToolUse | bin/post-tool-use-validate.sh | After Write/Edit/MultiEdit on .sightmap/** | | Stop | bin/stop-summary.sh | End of turn; nudges /sightmap:reflect when the agent touched component sources |

All four are advisory — they print to stderr/stdout but never block the user's edits.

MCP compatibility

This plugin invokes tools provided by @sightmap/mcp. The compatibleMcpVersion field in each per-harness plugin.json declares the MCP semver range this version expects (currently ^0.8.0). The hooks shell out to npx --no-install sightmap by default; override with SIGHTMAP_BIN to pin a binary path.

Development

git clone --recurse-submodules https://github.com/sightmap/plugin.git
cd plugin
pnpm test   # or: bats test/*.bats test/unit/ test/integration/

Tests require bats-core (brew install bats-core on macOS, apt-get install bats jq on Debian/Ubuntu) and jq. bats-support and bats-assert ship as git submodules under test/helpers/.

The hook scripts and tests honour SIGHTMAP_BIN for pinning the sightmap CLI — defaults to npx --no-install sightmap.