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/core

v0.12.0

Published

ECP fluent API, environment, registry, and local runtime

Readme

@executioncontrolprotocol/core

Runtime-agnostic ECP core: fluent workflow API, environment builder, registry, in-memory executor, encode/decode/patch/invoke, and Fluent rendering.

This package has no Node or browser I/O on its main entry. Host-specific compile and file loading live on subpaths (see below).

Main entry (@executioncontrolprotocol/core)

Use for:

  • Building environments: environment(), extension(), runtime(), policy()
  • Operational APIs on Ecp after await env.init(): run, encode, decode, patch, validate, describe, search, invoke, terminate
  • Workflow authoring: workflow(), step(), .accepts() / .returns(), parallel(), etc.
  • Fluent output: ecp.encode(manifest).as("fluent") (no @executioncontrolprotocol/format-fluent extension)

Do not import Node built-ins from the main barrel. Bundlers (Vite, etc.) should resolve only @executioncontrolprotocol/core for browser apps.

import { workflow, step, ref } from "@executioncontrolprotocol/core"

const manifest = workflow("Weekly brief")
  .accepts({ type: "object", properties: { prompt: { type: "string" } }, required: ["prompt"] })
  .returns({ type: "object", properties: { echo: { type: "object" } } })
  .run([step("@executioncontrolprotocol/test.echo", "Echo").with({ value: ref("prompt") }).as("echo")])
  .toManifest()

Host subpaths

| Subpath | Host | Purpose | | ------- | ---- | ------- | | @executioncontrolprotocol/core/node | Node | Re-exports @executioncontrolprotocol/core/loaders + @executioncontrolprotocol/core/compile | | @executioncontrolprotocol/core/compile | Node | compileWorkflowSource, compileHarnessArtifactSource (intent/reply TS), temp-file module eval | | @executioncontrolprotocol/core/loaders | Node | File I/O for CLI and Node apps | | @executioncontrolprotocol/core/browser | Browser | Authoring subset: builders, validate, Fluent encode, browser-safe compileWorkflowSource + compileHarnessArtifactSource (esbuild-wasm + blob import) |

CLI and @executioncontrolprotocol/node import @executioncontrolprotocol/core/compile and @executioncontrolprotocol/core/loaders directly—not the main barrel.

Why compile is here (not on runtime hosts): harnesses must compile Fluent/TS artifacts without importing @executioncontrolprotocol/node or @executioncontrolprotocol/browser. Same APIs; Node vs browser entry (or "browser" condition on ./compile). Hosts may re-export for convenience.

Environment vs Ecp

| Environment (builder) | Ecp (after init()) | | ----------------------- | ---------------------- | | withRuntime, withExtensions, withPolicies | run, encode, decode, patch, validate, invoke | | init() | describe, search, terminate |

Related packages

  • @executioncontrolprotocol/node — Node runtime, process env, secrets, re-exports Node compile
  • @executioncontrolprotocol/browser — Browser runtime, registry, session config (not the demo app)
  • @executioncontrolprotocol/types — Protocol types and JSON Schema outputs

See AGENTS.md for monorepo commands and extension rules.