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

repram-mcp

v2.1.0

Published

MCP server for REPRAM — ephemeral coordination layer for AI agents

Readme

repram-mcp

Unified REPRAM node + MCP server. A single npx repram-mcp gives AI agents an embedded ephemeral coordination node with store/retrieve/list tools — no separate server process needed.

Modes

| Mode | How | What it does | |------|-----|-------------| | MCP (default) | npx repram-mcp | Embedded REPRAM node + MCP stdio transport | | MCP + external | REPRAM_URL=... npx repram-mcp | Connects to existing node via HTTP | | Standalone | npx repram-mcp --standalone | HTTP server only, no MCP (replaces Go binary) |

Tools

| Tool | Description | |------|-------------| | repram_store | Store data with automatic expiration (TTL). Returns a key for retrieval. | | repram_retrieve | Retrieve data by key. Returns null if expired or missing. | | repram_exists | Check if a key exists without retrieving the value. Returns remaining TTL. | | repram_list_keys | List stored keys, optionally filtered by prefix. |

Quick Start

Claude Code

Add to your MCP settings (.claude/settings.json or project-level):

{
  "mcpServers": {
    "repram": {
      "command": "npx",
      "args": ["repram-mcp"]
    }
  }
}

That's it — no separate server needed. The embedded node starts automatically with conservative defaults (ephemeral port, 50MB storage cap, warn-level logging).

Connect to an existing node

If you're running a REPRAM cluster and want the MCP server to use it instead of the embedded node:

{
  "mcpServers": {
    "repram": {
      "command": "npx",
      "args": ["repram-mcp"],
      "env": {
        "REPRAM_URL": "http://localhost:8080"
      }
    }
  }
}

Standalone server (no MCP)

Run a full REPRAM node as an HTTP server without MCP transport:

npx repram-mcp --standalone
# or
REPRAM_MODE=standalone npx repram-mcp

Configuration

All settings via REPRAM_* environment variables. Defaults differ between embedded (MCP) and standalone modes:

| Variable | Embedded Default | Standalone Default | Description | |----------|-----------------|-------------------|-------------| | REPRAM_HTTP_PORT | 0 (auto) | 8080 | HTTP API port | | REPRAM_GOSSIP_PORT | 0 (auto) | 9090 | Gossip protocol port | | REPRAM_ADDRESS | localhost | localhost | Advertised address for peer discovery | | REPRAM_NODE_ID | auto-generated | auto-generated | Unique node identifier | | REPRAM_NETWORK | public | public | Network name for peer grouping | | REPRAM_ENCLAVE | default | default | Data replication scope | | REPRAM_REPLICATION | 3 | 3 | Replication factor | | REPRAM_MIN_TTL | 300 | 300 | Minimum TTL in seconds (5 min) | | REPRAM_MAX_TTL | 86400 | 86400 | Maximum TTL in seconds (24 hr) | | REPRAM_WRITE_TIMEOUT | 5 | 5 | Quorum write timeout in seconds | | REPRAM_CLUSTER_SECRET | (empty) | (empty) | HMAC secret for gossip auth (open mode if empty) | | REPRAM_RATE_LIMIT | 100 | 100 | Requests per second per IP | | REPRAM_TRUST_PROXY | false | false | Trust X-Forwarded-For headers | | REPRAM_MAX_STORAGE_MB | 50 | 0 (unlimited) | Storage capacity limit | | REPRAM_LOG_LEVEL | warn | info | Log level (debug/info/warn/error) | | REPRAM_URL | (not set) | n/a | External node URL (MCP mode only; skips embedded node) | | REPRAM_PEERS | (not set) | (not set) | Comma-separated peer addresses for bootstrap |

HTTP API (v1)

Available in standalone mode or when connecting to a node via REPRAM_URL.

| Method | Path | Description | |--------|------|-------------| | PUT | /v1/data/{key} | Store data. TTL via ?ttl=N or X-TTL header. | | GET | /v1/data/{key} | Retrieve data. Returns X-Remaining-TTL, X-Original-TTL, X-Created-At. | | HEAD | /v1/data/{key} | Check existence. Same headers as GET, no body. | | GET | /v1/keys?prefix=X&limit=N&cursor=X | List keys with optional prefix filter and pagination. | | GET | /v1/health | Health check. | | GET | /v1/status | Node status with memory usage. | | GET | /v1/topology | Known peers. |

Wire Compatibility

The TypeScript node uses the same JSON wire format and HMAC-SHA256 signing as the Go implementation. TS and Go nodes can coexist in the same cluster.

Building from Source

npm install
npm run build
npm test          # 248 tests

License

MIT