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

@executioncontrolprotocol/cli

v0.12.0

Published

ECP command-line interface

Readme

@executioncontrolprotocol/cli

ECP command-line interface for running workflows (@executioncontrolprotocol.workflow) in configured environments (runtime + extensions + policies).

This CLI is how you run ECP deterministically in a Node.js / TypeScript ecosystem:

  • Compile workflow source modules (.ts / .js) to portable JSON manifests
  • Validate workflows against an environment’s registered capabilities
  • Describe/search environment capabilities for agent/UI discovery
  • Run workflows and print structured run results
  • Invoke a single capability outside a workflow (ecp invoke)
  • Serve an environment over loopback HTTP for POST /v1/invoke (ecp serve)
  • Test workflows with a persistent session (ecp test start|run|rerun|status)
  • Encode/decode workflows using format extensions (TOON, Fluent, JSON)

For the architecture and monorepo package boundaries, start with AGENTS.md and ecp-overhaul.md.

Install

From npm (when published):

npm install -g @executioncontrolprotocol/cli

From this monorepo (recommended for development):

npm install
npm run build
cd packages/cli
npm link

Usage

All operational commands that need an environment accept:

  • --env <path>: a module that exports the environment builder (default export)

Run

ecp run examples/01-echo/workflow.ts --env examples/01-echo/environment.ts

Provide workflow input (JSON file):

ecp run workflow.json --env environment.ts --input input.json

Dry run (validate + plan without invoking capabilities):

ecp run workflow.ts --env environment.ts --dry-run

Validate

ecp validate examples/01-echo/workflow.ts --env examples/01-echo/environment.ts

Compile (portable JSON)

ecp compile examples/01-echo/workflow.ts -o dist/workflow.json

Describe / search environment capabilities

ecp describe --env examples/01-echo/environment.ts
ecp search "echo" --env examples/01-echo/environment.ts

Test session (ecp test)

Drive a workflow incrementally with frozen state (distinct from @executioncontrolprotocol/core/testing stubs):

ecp test start workflow.ts --env environment.ts -o session.json
ecp test run --to step-b --env environment.ts --session session.json
ecp test rerun step-a --env environment.ts --session session.json
ecp test status --session session.json
  • run --to <step-id> is inclusive (runs through that step, then pauses).
  • rerun <step-id> re-executes one step and clears downstream history and .as state keys.
  • Session file schema: @executioncontrolprotocol.test.session.

Fluent API: ecp.test(workflow).with({ input }).start() then session.runTo(id) / session.rerun(id).

Invoke a capability

Call a single bound capability without a workflow:

ecp invoke @executioncontrolprotocol/test.echo --env examples/01-echo/environment.ts --input input.json

Optional --uses <provider-capability-id> overrides the harness default provider. Prints an InvokeResult JSON document; exits non-zero when success is false.

Serve (ecp serve)

Expose any --env over loopback HTTP (no auth; loopback-only trust):

ecp serve --env examples/01-echo/environment.ts
ecp serve --env environment.ts --port 3090 --cors-origin http://localhost:5173
  • GET /health{ ok, version }
  • POST /v1/invoke — body { capability, input?, provider? }ecp.invoke(...).with(...).process()

Default port 3090 (ECP leet), host 127.0.0.1.

Local daemon (ecp up)

Ollama/PNA demo bridge (fixed local env, not arbitrary --env). Prefer ecp serve for general HTTP invoke. Start the daemon, then open the demo with a pairing token:

ecp up
# Opens https://executioncontrolprotocol.github.io/browser-demo/?token=<uuid>&bridge=http://127.0.0.1:3090

ecp up --open-url http://localhost:5173/
ecp up --no-open
  • GET /health{ ok, version, ollamaReachable } (no auth; used by the demo to enable Ollama)
  • POST /v1/invoke — Bearer token required; same body shape as ecp serve

Default port 3090. The demo reads ?token= (and optional ?bridge=) automatically. Hosted HTTPS demos need Chromium (Chrome/Edge) for Private Network Access. Add extra page origins with --cors-origin.

Encode / decode formats

Encoding and decoding uses format extensions bound in your environment.

ecp encode workflow.json --format toon --env environment.ts -o workflow.toon
ecp encode workflow.json --format fluent --env environment.ts -o workflow.generated.ts
ecp decode workflow.toon --format toon --env environment.ts -o workflow.json

Notes:

  • Fluent decode is not supported. Use ecp compile for TypeScript/Fluent source → manifest.
  • JSON is the canonical manifest format; other formats are optional extensions.

Related packages