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

ratchet-mcp

v0.3.0

Published

MCP server for Ratchet. Your agent asks before it charges, deploys, publishes or sends — the same action is attempted at most once.

Readme

ratchet-mcp

OpenSSF Best Practices OpenSSF Scorecard CI License

MCP server for Ratchet — an effect gate for AI agents.

Agents retry. LLM control flow is non-deterministic, network calls fail ambiguously, and processes die mid-action, so the same logical action gets attempted zero, one, or several times and nothing knows which. Ratchet is a gate you ask before acting, and it answers durably.

Setup

Get a key at https://ratchetgate.com/console (free, no card), then:

{
  "mcpServers": {
    "ratchet": {
      "command": "npx",
      "args": ["-y", "ratchet-mcp"],
      "env": { "RATCHET_API_KEY": "rk_live_..." }
    }
  }
}

Put the key in env, never in args — arguments are visible in process listings.

Works with Claude Desktop, Claude Code, Cursor, and any MCP client that spawns a stdio server.

Runs on macOS, Linux, Windows and BSD — anywhere Node 18+ runs. The bridge is a single dependency-free file with no native modules, no shell-outs and no platform-specific paths, so there is nothing to compile and nothing that behaves differently between operating systems. Ratchet itself is a hosted service, so the gate is never something you install or operate.

Tools

| Tool | What it does | |---|---| | ratchet_begin_effect | Ask permission before a side effect. Returns execute, duplicate, in_flight, blocked, approval_required, or denied | | ratchet_report_effect | Report the outcome after acting | | ratchet_get_effect | Ask "did I already do this?" without reserving anything | | ratchet_resolve_effect | Settle an effect whose outcome was unknown, after verifying | | ratchet_list_effects | Review recent effects; filter by indeterminate to find unresolved work | | ratchet_get_policy | Read the retry and budget policy for an effect type | | ratchet_get_usage | Plan, allowance, credit balance, and today's spend |

Only execute authorises the model to act. Every other decision returns a next_step beginning with STOP.

The part that matters

If your agent dies between "go" and "done", Ratchet does not quietly let the next caller retry. The lease expires, the effect becomes indeterminate — a known unknown — and your configured policy for that effect type decides what happens: block (the default), retry, or verify first.

Exactly-once delivery is not achievable and is not claimed. What is guaranteed is at-most-once initiation, a recorded outcome that later callers replay, and an explicit state for the case most systems bury.

Configuration

| Variable | Default | Purpose | |---|---|---| | RATCHET_API_KEY | (required) | Your scoped API key | | RATCHET_BASE_URL | https://ratchetgate.com | Point at your own instance | | RATCHET_TIMEOUT_MS | 15000 | Request timeout |

This package holds no database connection and no server secret — only your key, which is scoped and revocable. It is a thin bridge to the HTTP API, with zero dependencies.

If the gate is unreachable it returns a JSON-RPC error rather than crashing, so your agent can apply its fail-open or fail-closed policy. Decide which before integrating: https://ratchetgate.com/docs

License

Apache-2.0