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

@eridian-ai/loom

v0.8.0

Published

Loom embedded data plane for customer apps

Downloads

503

Readme

@eridian-ai/loom

Mount the Loom data plane inside your own backend so agent-authored dashboards query your database directly — your credentials never leave your infrastructure, and query results never transit Loom's servers.

How it works

Loom's control plane signs every query and mutation as a short-lived Ed25519 capability token. This package verifies those signatures with Loom's public key and executes only what was signed — your endpoint holds the database credentials, Loom holds the private signing key, and neither side can act without the other.

  • Reads: the exact SQL text is inside the signed token. Anything else is rejected.
  • Writes: tokens carry table / op / pk column / allowed fields — never raw SQL. Every mutation targets exactly one row by primary key, deletes are soft-deletes, and an audit row (who, what, before/after) is written in the same transaction.
  • Replay protection: mutation tokens are single-use (nonce-tracked) and expire quickly.

Install

npm install @eridian-ai/loom

Mount (Next.js example)

// app/api/loom/[[...path]]/route.ts
import { createLoomHandler } from "@eridian-ai/loom/data-plane";

const handler = createLoomHandler({
  publicKey: process.env.ERIDIAN_LOOM_PUBLIC_KEY!, // provided during onboarding
  databaseUrl: process.env.ERIDIAN_LOOM_DATABASE_URL_RO!, // read-only role
  databaseUrlRw: process.env.ERIDIAN_LOOM_DATABASE_URL_RW, // optional writer role
});

export const GET = (req: Request) => handler(req);
export const POST = (req: Request) => handler(req);

The handler is a plain (Request) => Promise<Response> function, so any framework that speaks the Fetch API (Express via adapter, Hono, Remix, Fastify, etc.) can mount it.

Single sign-on for the embedded UI

If you embed the Loom app in an iframe, mint a short-lived handoff token for your already-authenticated user so they never see a second login screen:

import { createEmbedToken } from "@eridian-ai/loom/data-plane";

const token = await createEmbedToken({
  secret: process.env.ERIDIAN_LOOM_EMBED_SECRET!, // per-connection, from onboarding
  connectionId: process.env.ERIDIAN_LOOM_CONNECTION_ID!,
  email: user.email,
  name: user.name,
});
// iframe src: `${ERIDIAN_LOOM_APP_URL}/embed?connection=${connectionId}&token=${token}`

Tokens are HMAC-signed, expire within 5 minutes, and are single-use. Mint them server-side only — never expose the secret to the browser.

The iframe needs no sandbox attribute; Loom isolates dashboard code on its own origin. If you set one anyway, include allow-downloads alongside allow-scripts and allow-same-origin — sandbox flags only narrow as frames nest, so omitting it silently discards CSV and image exports from inside a dashboard.

Database roles

We recommend two dedicated Postgres roles:

  • a read-only role (SELECT on the schemas you want dashboardable — this is the visibility boundary: what this role cannot see, Loom cannot see);
  • a writer role with INSERT/UPDATE only (no DELETE, no DDL), plus INSERT on the loom_audit schema where the audit log lives — in your database, next to your data.

Omit databaseUrlRw to run dashboards read-only.

License

Proprietary — use is governed by your Loom service agreement.