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

loopmaid

v0.1.0

Published

A live rendering surface for agentic coding loops

Readme

Loopmaid

Loopmaid is a rendering surface for agentic coding loops. Agents create loops from Mermaid flowcharts, then emit events with the current Mermaid node id and JSON variables. Viewer pages poll every five seconds, highlight the current step when possible, and let people click through the event timeline.

Install

bun add --global loopmaid
loopmaid server start
loopmaid agent install opencode

The server command starts Loopmaid in the background at http://localhost:9393 and is safe to run again when the server is already running. Data and logs are stored under ~/.config/loopmaid. Restart OpenCode after installing the plugin.

For local development, run bun install, bun link, and bun run dev.

Run On Tailscale

Set the host name in .env:

HOST=your-tailnet-host.example.ts.net

Build and serve the production app:

bun run serve

Then open http://$HOST:9393 from a device on the tailnet.

Storage

Loopmaid uses Drizzle with Bun SQLite. The installed server stores data at ~/.config/loopmaid/loopmaid.sqlite; the development server uses ./data/loopmaid.sqlite.

Override the database path with:

LOOPMAID_DB_PATH=/path/to/loopmaid.sqlite

API

Create a loop:

curl -X POST http://localhost:9393/api/loops \
  -H 'content-type: application/json' \
  --data '{"title":"Agent loop","mermaid":"flowchart TD\n  start[Start] --> edit[Edit] --> test[Test] --> done[Done]","variables":{"attempt":1}}'

Append a timeline event:

curl -X POST http://localhost:9393/api/loops/{id}/events \
  -H 'content-type: application/json' \
  --data '{"activeNodeId":"test","variables":{"attempt":2,"status":"running"},"message":"Running checks"}'

Read a loop snapshot:

curl http://localhost:9393/api/loops/{id}

The viewer URL for a loop is /loop/{id}.

OpenCode Plugin

The repo ships an OpenCode plugin at opencode/loopmaid-plugin.ts.

Install it globally for every project:

loopmaid agent install opencode

The install command copies the plugin into ~/.config/opencode/plugins/loopmaid-plugin.ts. Restart OpenCode after installing it.

Use loopmaid agent install opencode --project to install only in the current project's .opencode/plugins directory. Use loopmaid agent status opencode to inspect the global installation and loopmaid agent uninstall opencode to remove it. Both commands also accept --project.

Set LOOPMAID_URL if Loopmaid is not running at http://localhost:9393.

The plugin exposes:

  • loopmaid_create_loop
  • loopmaid_update_loop, called for every visited node. Decision nodes include their selected outcome in the timeline.

Dependencies

JavaScript dependencies are managed with Bun.