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

orangerail-studio

v0.1.5

Published

Local read-only web app mapping the objects, links and approval-gated write actions your MCP server exposes to an AI agent (React Flow + ELK).

Readme

orangerail-studio

The map you can trust of orangerail: a local, read-only web app that renders your declared ontology as an interactive domain map — every object, how they relate, and every write action an agent can reach, each with the policy that governs it.

The point is not decoration. If you are going to hand an agent tools over your domain, you should be able to see exactly what it can reach and confirm it matches your intent, without reading generated code.

Most users never install this directly — the orangerail CLI depends on it and serves it:

npx orangerail studio

It opens at http://127.0.0.1:4820 by default (--port <n>, --no-open), reads your config, and pushes a fresh snapshot over SSE as you edit your ontology. Nothing leaves your machine: there is no account, no telemetry and no external asset — fonts are bundled locally.

Install

npm install orangerail-studio

orangerail-core is a dependency; zod is a peer dependency (^3.23 || ^4). React, React Flow and ELK are dev-only — they are bundled into the prebuilt app, not imposed on your project.

What the package ships

Two build outputs in one tarball:

  • dist/app — the prebuilt browser app, all asset URLs relative, so any static file server can mount the directory at /. Nothing to build.
  • dist/node — a node-consumable entry with no browser dependencies, which is what the . and ./snapshot exports resolve to.
import { buildSnapshot, studioAppDir } from 'orangerail-studio/snapshot';

const snapshot = buildSnapshot({ registry }); // { objects, links, actions }
const appDir = studioAppDir(); // absolute path of the prebuilt app to serve

buildSnapshot is pure and does no I/O. Objects, links and actions come out alphabetically ordered, so the same registry always produces the same snapshot.

Also exported: buildInstanceSnapshot (the runtime instance graph view) and buildAgentFleetSnapshot with its derivations — deriveUngatedDestructiveActions, deriveBlastRadius, deriveAuthorityOverlaps, deriveDelegationCycles, deriveRecursiveSpawners, deriveObjectWriters — which back the agent-fleet governance view.

Governance facts are truthful

A snapshot action carries approval: 'auto' | 'required', its approver roles, and where: 'none' | 'declarative' | 'functional'. A functional guard is marked functional and is never pretended declarative — only a declarative guard gets whereText — so the map never draws a condition it cannot actually read. notImplemented stubs are carried through rather than rendered as working actions.

Read-only, by construction

The studio renders a snapshot. It has no approve button and no route to your datasource; the approval decision lives in orangerail approvals in your own terminal, on purpose. The server the CLI runs answers GET/HEAD only — every other method is a 405 — and serves exactly two endpoints beside the static app: GET /api/registry for the snapshot JSON and GET /api/events for the reload stream. All strings pass through the snapshot layer verbatim and the frontend renders them as text nodes only, so a hostile name in your schema cannot become markup.

License

MIT