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

@thaodangspace/argos-core

v0.1.5

Published

Argos playbook loader, engine, RPC server, and Paseo adapter

Readme

@thaodangspace/argos-core

Library core of Argos — the durable YAML playbook engine for Paseo agents and herdr-core (hc) terminals. Most users want the CLI instead: npm i -g @thaodangspace/argos.

This package has no entry in the playbook control path that consults a model: readiness, transitions, loop limits, gates, retries, and timeouts are decided by a pure reducer. A model only does the work inside a step.

Subpaths

Everything is opt-in — the package root exports the error codes, the path helpers, and the playbook/engine barrels, but never durable/paseo/hc/git/rpc. A consumer therefore cannot accidentally pull the SQLite owner or a socket into the wrong process.

| Import | Contains | |---|---| | @thaodangspace/argos-core | error codes, $ARGOS_HOME paths, plus playbook and engine | | @thaodangspace/argos-core/playbook | YAML loader, resolver, sub-playbook expansion, validation, hashing, frozen IR | | @thaodangspace/argos-core/engine | the pure decision layer (next(record, event) → record + effects); no I/O, no timers | | @thaodangspace/argos-core/durable | ArgosHost: the one SQLite owner, run lifecycle, executor registry, schedules, worktrees, scripts | | @thaodangspace/argos-core/paseo | Paseo adapter, target/quota policy, deterministic fake | | @thaodangspace/argos-core/hc | herdr-core adapter (JSON-RPC over its socket, hc/<template> targets, deterministic fake) | | @thaodangspace/argos-core/git | the only node:child_process user (worktrees, snapshots) | | @thaodangspace/argos-core/rpc | HTTP contracts + client; safe for CLIs and plugins | | @thaodangspace/argos-core/rpc/contracts | Node-free contracts only | | @thaodangspace/argos-core/rpc/server | the RPC server that wraps the durable host (serve-only) |

src/executor/model.ts (the canonical executor ids and their normalizer) and src/executor/output.ts (the shared structured-result parser) are internal to the package: they are imported by the durable host and both adapters, not published as their own subpaths.

Example

import { loadPlaybook } from "@thaodangspace/argos-core/playbook";
import { createRunRecord, next } from "@thaodangspace/argos-core/engine";

const ir = loadPlaybook(process.cwd(), "fix"); // deep-frozen IR + content hash
let record = createRunRecord({
  id: "01J...",
  ir,
  inputs: { issue: "login returns 500" },
  cwd: process.cwd(),
  now: Date.now(),
});
const { record: advanced, effects } = next(record, { type: "tick", now: Date.now() });
// `effects` names what the host should do (dispatchStep, openGate, finishRun, ...); `next` performs nothing.

A run writes to $ARGOS_HOME/argos.sqlite only through ArgosHost, which refuses a second live owner. In practice you run the host with argos serve (the CLI package) rather than embedding it.

Requires Node >=22.13. See the repository for the architecture, the durability model, and the scheduler.

License

MIT