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.3

Published

skelm CLI primitives. End users install the meta-package `skelm`, which depends on this and exposes the `skelm` bin. This package is the programmatic entry point for tooling that wants to drive the CLI directly.

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.

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.ts>               Run a workflow once
skelm validate <workflow.ts>          Type-check a workflow without running it
skelm describe <workflow.ts>          Print the workflow's step graph
skelm history                         List recent runs
skelm schedule add <workflow.ts>      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                   Run the gateway (foreground; Ctrl-C drains and exits)
skelm gateway status                  Inspect a running gateway
skelm gateway stop                    Stop a running gateway
skelm gateway install --systemd       Install a user-level systemd unit
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) |

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