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

agentledger-runtime

v1.1.0

Published

Dependency-free Node/TypeScript-compatible runtime for AgentLedger.

Readme

AgentLedger Node / TypeScript Runtime

This directory contains the dependency-free Node/TypeScript-compatible runtime-core baseline for AgentLedger 1.1.0.

It runs a native local runtime loop, participates in the shared Python/Go/TypeScript/Rust conformance gate, and should be treated as runtime-core aligned; concrete production adapters are shipped separately as they mature.

Current Status

Implemented:

  • local JSON store with atomic file writes and in-memory store for tests
  • run/session/step state model
  • leased step claim, heartbeat, lease recovery, and cancellation fencing
  • AgentContext with state patch writes and runtime-managed tool calls
  • ToolGateway with Tool Ledger idempotency for side-effect tools
  • evidence export, replay, trace/diff/debug consumers, time-travel timeline, repro helpers
  • policy denial, approval pause/resume, sandbox fail-closed behavior
  • cost records, budget enforcement, and failure attribution
  • media artifact refs and stream checkpoint refs in evidence/replay
  • scheduler facade, worker service, failure injection, adversarial review, evidence regression
  • MCP-style and dependency-free framework adapters
  • .d.ts declarations
  • official optional adapter APIs for Postgres, S3/MinIO, OTLP transport, and Docker sandbox manifests
  • CLI for conformance, contract validate, and contract export

Not claimed yet:

  • live Postgres/S3/Docker/OTLP service-backed hardening
  • full framework-native packages
  • full media processing and stream transport adapters

Install

Use the published npm package in a Node.js project:

npm install agentledger-runtime

Import the runtime API:

import { Runtime, simpleRun } from 'agentledger-runtime';

Install or run the CLI through npm package binaries after installation:

npx agentledger-ts --help
npx agentledger-ts quickstart

From this repository, use node src/cli.js ... while developing.

Quickstart

import { Runtime, exportEvidence } from 'agentledger-runtime';

const rt = await Runtime.local('.agentledger-ts/state.json');
rt.registerTool({
  name: 'docs.echo',
  func: async (args) => ({ echo: args.text }),
});

const { runId } = await rt.createRun({ input: 'hello' });
await rt.runOnce({
  runId,
  workerId: 'worker-ts',
  agentRole: 'Agent',
  agent: async (ctx, state) => {
    const result = await ctx.callTool('docs.echo', { text: state.input });
    await ctx.writeState('result', result);
  },
});

console.log(exportEvidence(rt.store, runId).run.run_id);

Adapter Quickstart

import { PostgresAdapter, S3BlobStoreAdapter, DockerSandboxAdapter } from 'agentledger-runtime';

await new PostgresAdapter(injectedSqlClient).applyMigrations();

const s3 = new S3BlobStoreAdapter(injectedObjectClient, { bucket: 'agentledger-test' });
const { ref } = await s3.putJSON({ answer: 'ok' });
console.log(ref);

const manifest = new DockerSandboxAdapter().manifest({ network: 'deny' }, ['echo', 'ok']);
console.log(manifest);

Verify

cd typescript
npm test
npm run check
npm run conformance
npm run contract:validate

From the repository root:

python3.11 scripts/check_language_parity.py --json-report /tmp/agentledger-language-parity.json

Compatibility Target

../contracts/agentledger.runtime.v1.json
../contracts/conformance/runtime_semantics.v1.json
../docs/LANGUAGE_QUICKSTART.md
../docs/LANGUAGE_PARITY_MATRIX.md