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

@lokomotif/cli

v0.1.0

Published

The lokomotif command-line tool. List, validate, scaffold, compose, evaluate, and deploy RTCSG modules.

Readme

@lokomotif/cli

The lokomotif command-line tool. The first surface practitioners and contributors meet.

Install

npm install --global @lokomotif/cli
# or, one-shot
npx @lokomotif/cli --help

Commands

lokomotif modules list                   List RTCSG modules in the current repo.
lokomotif modules validate <path>        Validate a module file or glob.
lokomotif modules new <kind> <name>      Scaffold a new module skeleton.
lokomotif compose <flow.yaml>            Compose a flow into a single prompt.
lokomotif eval run [-- args]             Run the eval harness (Python, packages/eval).
lokomotif deploy <target> <flow.yaml>    Adapt a flow to a runtime blueprint.

Every command supports --json for machine-readable output.

Examples

List role modules in the current repo:

lokomotif modules list --kind role

Scaffold a new finance AML role module:

lokomotif modules new role finance/aml-analyst

This writes:

  • modules/roles/finance/aml-analyst.yaml — the module skeleton (frontmatter + body placeholders).
  • modules/roles/finance/__tests__/aml-analyst.eval.yaml — the eval test placeholder (real format ships with the harness in Phase 5).

Validate a single module:

lokomotif modules validate modules/roles/finance/aml-analyst.yaml

Validate every module under a directory:

lokomotif modules validate "modules/roles/**/*.yaml"

JSON validation output for CI:

lokomotif modules validate --json modules/**/*.yaml

Status

v0.0.x — pre-release. Surface and flags may change before v1.0.0.

  • modules list / validate / new — full implementation.
  • compose — basic concatenation. Real composition (with proper RTCSG ordering, flow schema, and SDK integration) lands in Phase 4.
  • eval run — delegates to uv run pytest in packages/eval. The full harness ships in Phase 5.
  • deploy — lists known runtime targets. Adapter logic ships per-runtime in Phase 7.

Track the build sequence in IMPLEMENTATION_PLAN.md.

Repository discovery

Most commands look for a modules/ directory by walking up from the current working directory. Override with --root <path> when running outside a repository (or in tests).

Exit codes

  • 0 — success.
  • 1 — operation failure (validation errors, missing files, etc.).
  • 2 — usage error (clipanion default for invalid arguments).

In --json mode, error details are emitted to stdout as part of the JSON payload; the exit code still indicates success or failure.