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

orly-mcp

v0.1.0

Published

MCP server exposing the Orly database as conflict-free shared memory for AI agents

Readme

orly-mcp — MCP server for Orly

Exposes a running orlyi to any MCP-speaking agent runtime (Claude Code, Claude Desktop, or anything on the MCP SDKs) as conflict-free shared memory: N agents exchange a POV id and write to it concurrently — commutative writes (+=, set union |=) merge in the engine with no locks and no lost updates, and reads fold the value's history. The agent-swarm and grc20-pov examples show the workload this is built for.

A thin stdio wrapper over the TypeScript driver — no engine or protocol changes. Requires Node.js 18+ and a reachable orlyi (see the repo Quick start).

Setup

From npm (#540), no checkout needed — register with your MCP client, pointing ORLY_URL at your server (default ws://127.0.0.1:8082/). For Claude Code:

claude mcp add orly -e ORLY_URL=ws://127.0.0.1:8082/ -- npx -y orly-mcp

or in a JSON MCP config:

{
  "mcpServers": {
    "orly": {
      "command": "npx",
      "args": ["-y", "orly-mcp"],
      "env": { "ORLY_URL": "ws://127.0.0.1:8082/" }
    }
  }
}

From a checkout instead (cd clients/mcp && npm install && npm run build), substitute node /path/to/orly/clients/mcp/dist/index.js for npx -y orly-mcp.

Tools

| Tool | What it does | |---|---| | orly_new_pov | Create a POV (safe/fast × shared/private, optional parent); returns the pov id agents share. | | orly_call | try {pov} package method <{args}> — call a package method (read or write), one transaction. | | orly_call_batch | N calls of one method folded into a single atomic transaction (#253). | | orly_install_package | Install a compiled package by name/version (its .so must be in orlyi's package dir). |

One Orly session per server process, lazily connected, reconnecting once on a dropped connection (povs live in the engine and survive the reconnect).

Argument encoding

Tool args are JSON; the driver encodes them as orlyscript literals — numbers as ints, strings/booleans/arrays/objects as str/bool/list/record. Three orlyscript shapes JSON can't express use escape objects (valid anywhere in args, including nested):

| Escape | Orlyscript | |---|---| | {"$set": [1, 2]} | the set literal {1, 2} | | {"$real": 5} | the real literal 5.0 | | {"$raw": "now()"} | the expression text, verbatim |

Results come back as the engine's JSON: ints as numbers, sets as unordered arrays, variants as {Tag: payload}, absent optionals as null.

The multi-agent pattern

  1. One agent (or a setup script) installs the schema package and calls orly_new_pov, then shares the pov id (it's just a string).
  2. Every agent calls orly_call / orly_call_batch against that pov id — no coordination, no locking, no merge conflicts for commutative ops.
  3. Readers see the merged state; history-shaped schemas (see the examples) additionally give replay and time-travel.

Smoke test

With the repo built (make debug):

npm run smoke

starts a throwaway mem-sim orlyi, spawns the server over stdio via the MCP SDK client, and exercises every tool end-to-end.