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

@skelm/cli

v0.4.8

Published

skelm CLI — run pipelines, manage the gateway, and operate triggers from the command line

Readme

@skelm/cli

Command-line interface and programmatic CLI primitives for skelm.

npm

Part of skelm.

This package owns the skelm bin and the runCommand / parseArgv / main primitives that the bin composes. Both the published skelm meta package and direct workspace consumers use the same main(argv, io) entry point — tests can drive the CLI without spawning a subprocess.

Architecture

As of v0.5, the CLI dispatches every non-exempt command (run, list, describe, history, audit, workspace, secrets) to a local gateway process over HTTP. The CLI no longer constructs Runner, EventBus, SqliteRunStore, WorkspaceManager, ChainAuditWriter, FileSecretResolver, or the skill registry in-process — the gateway is the single execution surface and trust boundary.

Exempt commands (still work with no gateway running): help, version, gateway *, init, validate.

When a non-exempt command runs with no gateway live, the CLI auto-starts one. If the platform's service manager has the unit installed (systemctl --user start skelm-gateway on linux, launchctl kickstart on macOS) it delegates; otherwise it spawns skelm gateway start --foreground detached and prints a one-time hint suggesting skelm gateway install for a supervised service.

Opt out of auto-start with SKELM_NO_AUTOSTART=1 (the CLI then exits non-zero with an actionable message). In CI auto-spawn is refused unless SKELM_AUTOSTART_IN_CI=1.

Install

End users install the skelm meta package, which ships the same bin:

npm install -g skelm
skelm --help

@skelm/cli is exported separately so framework integrators (the gateway, in-process embedders, IDE extensions) can reuse the parser and command implementations:

npm install @skelm/cli

Commands

skelm init [dir]                      Scaffold a new project
skelm run <workflow.mts>              Run a workflow once
skelm validate <workflow.mts>         Type-check a workflow without running it
skelm describe <workflow.mts>         Print the workflow's step graph
skelm history                         List recent runs
skelm schedule add <workflow.mts>     Register a trigger (cron / webhook / interval / poll)
skelm schedule list                   List active schedules
skelm schedule stop <id>              Stop a schedule
skelm secrets get <name>              Read a secret from the configured driver
skelm secrets set <name>              Write a secret
skelm audit query                     Query the hash-chained audit log
skelm approvals list                  List pending approval requests
skelm approvals approve <id>          Approve a suspended step
skelm approvals deny <id>             Deny a suspended step
skelm logs                            Tail gateway logs
skelm gateway start --foreground      Run the gateway in this process (Ctrl-C drains and exits)
skelm gateway start                   Print how to run it (install, or --foreground)
skelm gateway status                  Inspect a running gateway
skelm gateway stop                    Stop a running gateway
skelm gateway install                 Install as a service; auto-detects systemd (linux) / launchd (macOS)
skelm gateway install --systemd       Force a systemd user unit
skelm gateway install --launchd       Force a launchd LaunchAgent
skelm --version
skelm --help

skelm run flags:

--input <json>          Input JSON (single argument)
--input-file <path>     Input from a file
--input-stdin           Read input JSON from stdin
--events <fmt>          human (default) | json | none

Exit codes

| Code | Meaning | | ---- | ---------------------------------------------------------- | | 0 | run completed | | 1 | uncaught CLI error (bad args, file not found) | | 2 | schema validation failure (input or output) | | 3 | workflow run failed (any step failed) | | 4 | run was cancelled (SIGINT) | | 5 | wait() timed out | | 6 | security policy violation (denied tool, exec, network, fs) | | 7 | step timed out (timeoutMs exceeded) | | 8 | run paused awaiting external resume | | 9 | backend capability mismatch |

stdout receives the workflow's final output as JSON. Everything else (progress, JSON events when --events json, error messages, prompts) goes to stderr — making skelm run foo.ts > result.json 2> events.log work without a parser.

Programmatic use

import { main, EXIT } from '@skelm/cli'

const result = await main(['run', './my.workflow.mts'], {
  stdout: process.stdout,
  stderr: process.stderr,
  stdin:  process.stdin,
})
process.exit(result.exitCode)

Stability

0.x — APIs may change between minor versions until v1.

Contributing

See the contributing guide.

License

MIT