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

@autonome-research/thread-phase-cli

v5.0.0

Published

CLI and auto-loader for thread-phase — discovers extensions under .thread-phase/ and runs registered pipelines. Installing this gets the full runtime (core + adapters).

Readme

@autonome-research/thread-phase-cli

The CLI and auto-loader for thread-phase. Discovers extensions under ./.thread-phase/{triggers,adapters,pipelines}/ and runs registered pipelines.

# One install gets the full runtime — core + adapter protocol + bin.
npm install -g @autonome-research/thread-phase-cli

# …plus the agent SDKs your adapters actually use (optional, only when needed):
npm install -g @anthropic-ai/sdk                # anthropicAgent
npm install -g openai                           # codexAgent (Responses API)
npm install -g @earendil-works/pi-coding-agent    # piAgent (Node.js >=22.19.0)

Commands

thread-phase list                    # show registered extensions
thread-phase list --verbose          # …plus structural details per entry
thread-phase run <pipeline-name>     # invoke a pipeline once and exit
thread-phase run <name> --input ...  # override defaultInput (JSON literal, @file, or -)
thread-phase serve                   # start all triggered pipelines (SIGINT/SIGTERM to stop)
thread-phase serve --health-port N   # …with a /health endpoint on port N

run replaces npx tsx pipelines/foo.ts once the pipeline is registered. serve is the systemd-unit / docker-container case — one long-running process per project hosting every triggered pipeline.

run --input

Three forms for supplying input that overrides the pipeline's defaultInput:

thread-phase run digest --input '{"date":"2026-05-20"}'  # inline JSON
thread-phase run digest --input @./payload.json          # read JSON from file
echo '{"date":"2026-05-20"}' | thread-phase run digest --input -  # read from stdin

Invalid JSON or unreadable files exit 1 with a clear stderr message.

serve --health-port

Opt-in health endpoint backed by node:http. While the serve loop is running it returns 200 {"status":"ok"}. Once a shutdown signal arrives but pipelines are still draining it returns 503 {"status":"shutting_down"}. The server stops listening when serve fully exits. Useful for k8s liveness/readiness probes or load-balancer drain checks.

Extension layout

your-project/
  .thread-phase/
    triggers/<name>.ts       a Trigger registered via api.registerTrigger
    adapters/<name>.ts       an AgentAdapter registered via api.registerAdapter
    pipelines/<name>.ts      a Pipeline registered via api.registerPipeline

Each file's default export is (api: ThreadPhaseAPI) => void. See EXTENDING.md for the full contract, three-tier discovery (loose file → folder → package.json manifest), and copy-paste templates.

Programmatic API

import { Registry, loadExtensions, runCli } from '@autonome-research/thread-phase-cli';

const registry = new Registry();
await loadExtensions(registry, { cwd: process.cwd() });

const pipelines = registry.listPipelines();
// or invoke the full CLI dispatch:
const code = await runCli({ args: ['run', 'morning-digest'] });

Useful for embedding the loader inside a larger runtime (a job queue worker, a Temporal activity, a custom server).

Stability

Versions are locked across the thread-phase monorepo. CLI 2.x.x ships against thread-phase 2.x.x.