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

@usetorii/gateway

v0.1.20

Published

The secure gateway for AI tools. Sits between AI assistants (Claude, Cursor) and MCP servers, providing static analysis, threat modelling, policy enforcement, consent, and audit.

Readme

Torii Gateway

The runtime side of Torii. A small Node.js process that:

  • speaks MCP to your AI client (Claude Desktop, Cursor, your own app),
  • proxies tool calls to the real MCP servers you've registered,
  • enforces policies (block, ask-me-first),
  • streams audit + threat findings to the Torii backend, and
  • runs the local pieces of the consent flow.

It pairs with a TORII_API_KEY you generate in the dashboard.

Install

Pick one. Same binary, different package.

1. npx (no install)

// claude_desktop_config.json
{
  "mcpServers": {
    "torii": {
      "command": "npx",
      "args": ["-y", "@usetorii/gateway"],
      "env": { "TORII_API_KEY": "tok_..." }
    }
  }
}

2. Native binary

# macOS / Linux (Homebrew)
brew install scumfrog/tap/torii

# Linux / macOS (curl)
curl -fsSL https://usetorii.dev/install.sh | sh

Then in claude_desktop_config.json:

{
  "mcpServers": {
    "torii": {
      "command": "torii",
      "env": { "TORII_API_KEY": "tok_..." }
    }
  }
}

3. Docker

docker pull ghcr.io/scumfrog/torii-gateway:latest
{
  "mcpServers": {
    "torii": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "TORII_API_KEY",
        "ghcr.io/scumfrog/torii-gateway:latest"
      ],
      "env": { "TORII_API_KEY": "tok_..." }
    }
  }
}

Configuration

Without a TORII_API_KEY, the gateway looks for a local YAML config at:

  1. $TORII_CONFIG if set, else
  2. ~/.torii/config.yaml

See the config schema for the full shape.

When TORII_API_KEY is set, the gateway pulls its config from https://api.usetorii.dev/v1/me/servers/config so you can manage everything from the dashboard.

Local development

pnpm install
pnpm run build
node dist/index.js

How distribution works

  • Tag a release: git tag v0.x.y && git push --tags.
  • .github/workflows/release.yml runs and:
    • publishes @usetorii/gateway to npm (needs NPM_TOKEN secret),
    • builds native binaries for macOS/Linux × x64/arm64 with bun build --compile,
    • uploads them to a GitHub Release with SHA-256 checksums,
    • builds and pushes a multi-arch Docker image to ghcr.io/scumfrog/torii-gateway,
    • bumps the homebrew-tap formula (needs HOMEBREW_TAP_TOKEN secret).

To bootstrap the secrets:

# in this repo
gh secret set NPM_TOKEN -b "<from https://www.npmjs.com/settings/tokens>"
gh secret set HOMEBREW_TAP_TOKEN -b "<a PAT with 'repo' scope on scumfrog/homebrew-tap>"

GITHUB_TOKEN is auto-injected by Actions for the GHCR push.

License

MIT. See LICENSE.

Part of Torii

Torii is split across standalone repos — this repo is the source of truth for the gateway runtime; edit here, not in any monorepo copy.

| Component | Repo | Deploys to | |---|---|---| | API + workers | Torii-api | Railway · api.usetorii.dev | | Dashboard + landing | Torii-front | Vercel · usetorii.dev | | Gateway runtime | Torii-gateway | npm / Homebrew / GHCR / install.sh |