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

@snagset/mcp

v0.1.5

Published

Read your Snagset review threads from a coding agent — the pin, the element, the route and the console with each one.

Readme

@snagset/mcp

The Snagset MCP server. It gives a coding agent the review comments left on your site, so "fix the pin on the PDP" is a task the agent can start — rather than a screenshot pasted into a chat window.

Setting it up

Mint a token on your instance — Studio › Integrations › MCP › New token…, which shows it once beside the config below, or on the box itself:

snagset mcp-token create "Claude Code"

It is shown once. Put it in your MCP client's config:

{
  "mcpServers": {
    "snagset": {
      "command": "npx",
      "args": ["-y", "@snagset/mcp"],
      "env": {
        "SNAGSET_MCP_TOKEN": "snagmcp_…",
        "SNAGSET_MCP_HOST": "https://review.example.com",
        "SNAGSET_MCP_PROJECT": "prj_…"
      }
    }
  }
}

Start the client from your checkoutmap_thread_to_source searches the directory it was spawned in. SNAGSET_MCP_REPO_ROOT overrides that.

The tools

| Tool | Scope | What it does | |---|---|---| | list_threads | threads:read | What is broken, where, in which state | | get_thread | threads:read | One snag's full conversation | | get_thread_context | context:read | Browser, viewport, console breadcrumbs | | map_thread_to_source | source:map | Search your checkout for the element | | comment_on_thread | comments:write | Reply, as the agent | | mark_ready | threads:write | Move a snag to review |

There is no tool that resolves a thread. An agent can propose, never dispose — whoever reported a snag decides when it is fixed. Same for editing or deleting anyone's comment: neither exists.

The default token is read-only. Add write scopes explicitly:

snagset mcp-token create "Claude Code" threads:read,source:map,comments:write

Remote

With the remote transport on — the switch on Studio › Integrations › MCP, or SNAGSET_MCP_HTTP_ENABLED=true in the instance's environment — the same server is served at POST /mcp for an agent that has no checkout: the token goes as a bearer, map_thread_to_source is absent, and writes need a token minted with remote writes allowed. The dashboard's token dialog shows the config for it.

What it is not

It holds no database connection. Every read goes through the same /api/v1 routes with the same authorisation as any other caller, so a bug in this package cannot read a thread its token could not already read.

Review comments are typed by anyone who can load your site. Everything this server returns is wrapped in <untrusted-content> and preceded by a boundary statement — but fencing reduces the rate at which a model follows injected text, it does not close the class. The controls that hold when the model is fooled are the ones that do not depend on it: no execution primitives, a hard write budget (20 writes / 10 minutes, enforced server-side), a read-only default, and a revocable token with an audit trail.

If that is not enough for your deployment, do not issue a write scope.

MIT.