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

@whxway/loom

v1.3.0

Published

Self-hosted AI testing platform — try models and MCP servers, log every request, and front your apps through an OpenAI-compatible gateway.

Readme

Loom

A self-hosted AI testing platform for trying out models and MCP servers, recording every request, and — when you're ready — fronting your applications through the same OpenAI-compatible gateway.

npm License: MIT Node 20+ Docs Docs CI


What it does

Loom gives you, in a single process backed by one SQLite file, three things that usually live in three separate tools:

  1. A playground for exercising models and tool flows — side-by-side multi-model chat, embedding comparison, MCP tool dispatch, conversation branching, live token / TTFT / latency counters.
  2. A request log that captures the full prompt and full response of every call (streamed responses are reassembled from the wire). Search by user, model, API key, capability, or free text. Replay any request from its detail panel. Query directly with sqlite3 when you want.
  3. An OpenAI-compatible gateway at /api/v1/* so your applications can hit the same providers, same MCP servers, same auth, and end up in the same log table as your interactive exploration.

MCP testing

Loom is built around the Model Context Protocol from day one.

  • Register stdio or HTTP MCP servers in the admin UI; secrets in env and headers are encrypted at rest.
  • Loom probes each server and caches the discovered tools, resources, and prompts. The detail panel shows the raw server_info block plus every tool's parameter schema.
  • A preset catalogue covers common servers (filesystem, git, fetch, search, Pandoc, Qdrant, several academic databases, browser automation, …). Add-and-fill works for both the playground and the gateway.
  • In the chat playground, available tools are advertised automatically; tool calls are dispatched, executed, and rendered inline. The full input / output trail is persisted alongside the assistant message.
  • The same dispatch path runs for production calls hitting /api/v1/*, so what you debug interactively is what your apps will see.

Request logs

Every call that touches Loom — playground, gateway, MCP tool dispatch — writes one row to generation_logs. The /logs page exposes the table with filters, detail drawer, and replay; you can also query the SQLite file directly:

sqlite3 data/loom.db '
  SELECT user, model, count(*) AS n, avg(total_latency_ms) AS avg_ms
  FROM generation_logs
  WHERE created_at > datetime("now", "-7 days")
  GROUP BY user, model ORDER BY n DESC LIMIT 10;
'

Quickstart

# Install
npm install -g @hspk/loom

# Interactive setup wizard — picks providers, generates a master key,
# writes loom.config.yaml
loom init

# Start the server
loom start

Visit http://localhost:3000, sign in with the admin credentials, register your providers, and start a chat in the playground.

To use Loom as a gateway from your applications:

from openai import OpenAI
client = OpenAI(
    base_url="http://localhost:3000/api/v1",
    api_key="sk-loom-...",  # issued under /settings/api-keys
)

The full list of supported modalities (chat, embeddings, rerank, images, text-to-speech, transcription) lives in the API reference.

Why a single process

Loom keeps state in one SQLite file and avoids external services. Copy data/loom.db to move your installation; back it up to snapshot the entire playground history, gateway log, and MCP / provider registry at once.

The same auth model spans playground and gateway: an API key issued for a user applies everywhere, and every call shows up in the same log table regardless of where it originated. There is no separate observability service to wire up.

Requirements

  • Node.js ≥ 20
  • An OS that can run a native better-sqlite3 build (Linux / macOS / Windows)
  • An API key from at least one upstream LLM provider

Documentation

Full documentation is published to https://hspk.github.io/loom and lives under docs/. Topic index:

To build the docs site locally:

pip install -r docs/requirements.txt
mkdocs serve

Status

Loom is under active development. The public surface (HTTP API, CLI flags, config file shape) is stabilising but may shift before 1.0. Pin a specific version in production until then.

License

MIT — © HSPK and contributors. Issues and pull requests welcome.