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

@muninhq/serve

v0.2.0

Published

Munin local host (`munin serve`) — the ONE process that opens the local PGlite store and exposes the engine reads M1 needs over a loopback-only HTTP API with a bearer token. Studio and the MCP server both become clients of it. Part of the open-core local

Readme

@muninhq/serve

The Munin local hostmunin serve.

The local PGlite store is single-process: only one process may open it at a time (an exclusive ${dataDir}.lock is taken before the store opens). munin serve is that one opener. It calls loadGraphStore(env) once, holds the handle and the lock for its whole lifetime, and exposes the engine reads and writes the local Studio, the MCP server and the munin CLI need over a loopback-only (127.0.0.1) HTTP API with a bearer token. Studio, the MCP server and the CLI data verbs (munin ingest/add/extract/docs/status/forget) all become clients of it, so they never open the store themselves and never fight over the lock.

This is part of the open-core local product (AGPL-3.0). The hosted/managed product and the verticals are separate and closed.

What it does

  • Opens the store once and holds the lock (exactly one opener, always).
  • Mints a random bearer token at startup and advertises { url, token } in $MUNIN_HOME/serve.json (file mode 0600).
  • Serves authenticated reads on 127.0.0.1 only — no outbound network is added, so the MUNIN_LOCAL_MODE zero-egress posture is preserved.
  • Releases the lock and removes serve.json on SIGINT / SIGTERM.

API

The full route list lives in src/http.ts (its header comment is the canonical index): the reads (/status, /retrieve-context, /ask, /gather, /document, /documents, the /mind/* Orrery routes, /settings), the writes (/upload + status/cancel, /documents/:id/erase, /settings/provider), and the CLI-through-host verbs (POST /extract + status/cancel, GET /documents/:id/erase-preview).

Every request must carry Authorization: Bearer <token>; anything else is 401. Permissions are enforced in the host against the real store (a single-user, fail-closed RegularReadContext); the HTTP boundary carries only already-filtered results.

Run

MUNIN_HOME=~/.munin \
GRAPH_STORE=local \
MUNIN_CONFIG_PACKAGE=@muninhq/config-personal \
pnpm --filter @muninhq/serve start

It prints the loopback URL and the path to the handshake file. Stop it with Ctrl+C (the lock is released and serve.json is removed).