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

wiki-plugin-termflow

v0.2.1

Published

Federated Wiki plugin — generic workflow gating: guarded, ordered steps across a page; companion to wiki-plugin-terminal

Readme

wiki-plugin-termflow

A generic workflow-gating plugin for Federated Wiki. A page often lists steps that must happen in order — install a tool before you configure it. TermFlow turns those steps into a guided workflow: later steps stay locked (shown as a plain, un-runnable item) until their prerequisite is met, and the whole page can be run as one guarded step-through.

It is the companion to wiki-plugin-terminal: Terminal supplies the runnable steps and the shell that evaluates guards; TermFlow orders and gates them. The engine is generic, so other item types can participate by registering an adapter (see below).

The item

A termflow item's text is one runnable bash script — the single source of truth. A preamble holds a # ── guards ── block of bash functions; one block per step follows, keyed to the source item's id, with an optional guard:

#!/usr/bin/env bash
# wiki-workflow: Codex

# ── guards ──
have_codex() { command -v codex >/dev/null 2>&1; }

# ── step 7d0192ae… ──
brew install codex

# ── step 9bc9a58f… needs: have_codex ──
if have_codex; then
  codex --version && which codex
fi
  • needs: <fn> names a guard function. A step is unlocked iff the function exits 0 — the same function gates the step in the page and guards it when the script is run standalone.
  • tty marks an interactive step; the step-through pauses for it rather than running it non-interactively.
  • Press generate to (re)build the script from the page's runnable items, run workflow to step through honouring guards, copy to take the script.

The engine contract

TermFlow exposes registries on window.workflow; participant plugins register adapters (idempotently, at load):

| Registry | Signature | Purpose | |---|---|---| | evaluators[kind] | (expr, ctx) => Promise<bool> | evaluate a guard; ships shell, done | | runners[type] | (ctx) => Promise<{ok,exit,output}> | run a step of an item type | | scriptOf[type] | (item) => string | extract a step's body for generate | | setLock/getLock | (pageKey, id[, state]) | lock dispatch (fires a workflow-lock event) |

wiki-plugin-terminal registers runners.terminal, scriptOf.terminal, and listens for workflow-lock to render its locked state.

Build

npm install
npm run build      # runs tests, then bundles src/client → client/termflow.js

Local-first only: the live engine activates on localhost/.localhost hosts, or on a page served by the local mirror farm (the wiki-security-author client sets window.isLocalMirror), where the terminal service is reachable; elsewhere the item is display-only. On an https mirror page the service base follows the page protocol (https://terminal.localhost / wss://) to avoid mixed-content blocking.