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

@loomfsm/kernel

v0.3.8

Published

Generic finite-state-machine kernel for multi-agent LLM workflows — atomic state, replay-deterministic, zero runtime dependencies.

Downloads

4,522

Readme

@loomfsm/kernel

The finite-state-machine kernel underneath loom: the state machine, commit-time safety invariants, the idempotency ledger, the gate-policy engine, and the plugin contracts that providers, transports, and bundles implement. Zero runtime dependencies — persistence rides on Node's built-in node:sqlite. The kernel is domain-blind: it contains no vendor, model, or transport names (enforced by CI), so a new domain is a new bundle and the kernel never changes.

What's inside

  • Atomic state — every step commits through a SQLite transaction; invariants run inside it and roll it back on violation, so an unsafe state never exists.
  • Idempotency ledger — every effect's ledger row is committed in the same transaction as the state change it dedupes; crash recovery is "restart and replay".
  • Replay determinism — one timestamp token captured per tick and threaded through every call; the same (state, timestamp, ledger) yields the same trajectory.
  • Gate policieshuman / on-blockers / auto, dispatched as functions, not switches.
  • Plugin contracts — the typed surfaces bundles, providers, and transports implement.

Runtime requirement

@loomfsm/kernel imports node:sqlite. On Node 22.x that module is behind a runtime flag, so any process that loads the kernel must pass it:

node --experimental-sqlite your-entry.js
node --experimental-sqlite --no-warnings --test   # node:test, warning silenced

node:sqlite is unflagged on Node 23+ and stable on Node 24+; the flag is a harmless no-op there.

Install

pnpm add @loomfsm/kernel

Part of loom

loom drives multi-step LLM agent work — code review, implementation, any review-gated task — as a replay-deterministic state machine: safety invariants enforced at commit time, human gates where they matter, and a complete, replayable audit trail in a local SQLite file.

Most users should install @loomfsm/pipeline (npm i -g @loomfsm/pipeline), which pulls the whole runtime in one step. Install this package directly only if you are assembling your own runtime.

Website · Quickstart · Why loom · GitHub

License

Apache-2.0