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

@agentprodready/runtime

v1.1.1

Published

Runtime execution for AgentProdReady — timeout, cancel, checkpoint, recover, stream. Core engine behind createAgent (not a graph DSL).

Readme

@agentprodready/runtime

Operational execution engine for AgentProdReady — run work, cancel it, checkpoint it, recover it, and stream results.

This is the core execution abstraction behind createAgent: Runtime owns timeout, retry, cancellation, checkpoints, recovery, and streaming — not a graph engine. See What is AgentProdReady?.

| | | |---|---| | Status | Production contracts published (1.1.x) | | Install | npm install @agentprodready/runtime | | Module | ESM | | License | MIT | | Repository | ameenmari/agentprodready |

Usually installed automatically with @agentprodready/agent-framework.


Installation

npm install @agentprodready/runtime

# Typical stack
npm install @agentprodready/agent-framework @agentprodready/composition @agentprodready/foundation

Features

| Feature | Description | |---|---| | Execution orchestration | Coordinate capability invocations end-to-end | | Cancellation | Cooperative cancel with terminal results | | Checkpoints | Durable ExecutionCheckpointPort for restart safety | | Recovery | recoverIncomplete with resume-if-safe defaults | | Streaming | executeStream → deltas + exactly one terminal event | | Tool-loop checkpoints | Optional multi-turn tool state (pre-tool / post-tool / awaiting-approval) | | Stream event log | Durable StreamEventLog for Simple replay (resumeFrom / replayStream) | | Provider failover ledger | Attempt tracking for multi-provider routing (host-wired) | | Ports, not vendors | No OpenAI / Postgres imports in this package |


What Runtime owns vs does not own

| Owns | Does not own | |---|---| | Start / complete / fail / cancel | Choosing which AI vendor (Capability Resolution) | | Checkpoints & recovery | Instantiating adapters (Composition) | | Stream delivery semantics | Authorization allow/deny (Security) | | Operational timeouts / retries (policy) | Agent identity / lifecycle (Agent Framework) |


Usage overview

import type { RuntimeOrchestrator } from '@agentprodready/runtime';

// Obtained from Composition in a real host — not constructed ad hoc in apps.
declare const runtime: RuntimeOrchestrator;

// Non-stream
const result = await runtime.execute(/* ExecutionRequest */);

// Stream
for await (const event of runtime.executeStream(/* ExecutionRequest */)) {
  if (event.type === 'delta') {
    // process chunk
  } else {
    // terminal: completed | failed | cancelled
    console.log(event.type, event.result);
  }
}

Agent Framework handoff:

// AgentFramework.invoke  → AgentRuntimePort.accept
// AgentFramework.invokeStream → AgentRuntimePort.acceptStream

Your host implements AgentRuntimePort by forwarding into RuntimeOrchestrator.


Checkpoints & recovery

store(checkpoint) → process crash → recoverIncomplete() → resume-if-safe

| Piece | Role | |---|---| | ExecutionCheckpointPort | store / load / listIncomplete | | InMemoryExecutionCheckpointPort | Tests / local | | Host Postgres adapter | Durable (via Persistence in platform-host) |

Guide: Runtime recovery


Streaming rules

  • Chunks are not individually checkpointed
  • Final capability result remains post-invoke
  • Exactly one terminal stream event

Guide: Streaming


Tool-loop checkpoints

Additive ExecutionCheckpoint.toolLoop for multi-turn tool calling (pre-tool / post-tool / awaiting-approval).
Guide: Tools · HITL Approval


Stream event log

StreamEventLog appends normalized stream events during execution. Simple stream({ resumeFrom }) and replayStream(executionId) read from this log.

Guide: Stream Replay


Related packages

| Package | Role | |---|---| | @agentprodready/agent-framework | Agent identity + invoke handoff | | @agentprodready/capability-resolution | Implementation selection | | @agentprodready/composition | Wiring | | @agentprodready/ai-provider | AI contracts |


Documentation


License

MIT © 2026 ameenmari