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

tocsin

v0.1.0

Published

Security advisories, built for agents. Wire Tocsin into your agent tools and check a project for known advisories.

Readme

tocsin

Security advisories, built for agents. This CLI wires the Tocsin MCP server into your agent tools and checks a project for known advisories. Node 20 or later. No runtime dependencies.

Commands

npx tocsin connect

Finds the agent tools on this machine and adds the tocsin MCP server (https://mcp.tocsin.sh/mcp) to each one:

| Tool | Found when | File it edits | |---|---|---| | Claude Code | ~/.claude.json or ~/.claude/ exists | ~/.claude.json (mcpServers.tocsin), plus the skill at ~/.claude/skills/tocsin/SKILL.md | | Cursor | ~/.cursor/ exists | ~/.cursor/mcp.json (mcpServers.tocsin) | | Claude Desktop | ~/Library/Application Support/Claude/ (macOS) or %APPDATA%\Claude\ (Windows) exists | claude_desktop_config.json in that folder (through npx -y mcp-remote) | | Codex | ~/.codex/ exists | ~/.codex/config.toml ([mcp_servers.tocsin]) |

Flags:

  • --claude-code, --cursor, --claude-desktop, --codex: wire only these tools. With a flag, connect creates the config file when it does not exist.
  • --dry-run: print the edits. Write nothing.
  • --print: print the MCP JSON block only. Touch nothing.

A second run changes nothing and says already connected. Connect never writes a file it cannot parse, and never replaces a tocsin entry that is already there with a different value: it prints the path and the block for you to add by hand. Connect does not write TOCSIN_API_KEY into any file. Close Claude Code before you run connect: Claude Code also writes ~/.claude.json.

npx tocsin check

Reads the lockfiles at the top of the current directory (package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml, yarn.lock, requirements.txt, requirements-*.txt, go.sum, composer.lock, Cargo.lock, Gemfile.lock) and the installed versions of node, php, python (or python3), go, bun and deno. It sends them to POST /v1/check and prints a table. --json prints the result as one JSON document: { checked, affected, skipped, feed_cursor }.

npx tocsin latest [--ecosystem x] [--since cursor] [--limit n]

Prints the newest advisories, one per line, newest first (default 20, max 100). The next cursor goes to stderr. --json prints the raw API page.

npx tocsin watch [--ecosystem x] [--since cursor]

Polls the feed every 5 minutes and prints each new advisory. Without --since it starts at the newest advisory. Press Ctrl-C to stop it.

Exit codes

| Code | check | connect | latest / watch | |---|---|---|---| | 0 | clean | every tool connected or already connected | ok | | 1 | one or more dependencies affected | a file could not be read, parsed or written | | | 2 | usage error, or no lockfile and no runtime | usage error | usage error | | 3 | the API call failed (this is not a clean result) | | the API call failed (latest) |

watch keeps polling after an API error. It prints one line on stderr per error.

Environment

  • TOCSIN_BASE_URL: the API host. Default https://tocsin.sh.
  • TOCSIN_API_KEY: optional. Sent as Authorization: Bearer <key>. Never printed.
  • TOCSIN_MCP_URL: the MCP server URL that connect writes. Default https://mcp.tocsin.sh/mcp.

Apache-2.0. Source: https://github.com/Fortunian/tocsin