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

@trama-dev/runtime

v0.1.5

Published

Runtime and client library for trama — an agentic runtime for agent-authored TypeScript programs

Readme

@trama-dev/runtime

Agents don't need frameworks. They need a runtime.

The runtime behind trama — execution, state persistence, auto-repair, and version history for agent-authored programs.

Two surfaces

Client — what trama-generated programs import. Three objects: ctx, agent, tools.

import { ctx, agent, tools } from "@trama-dev/runtime";

const data = await tools.read("input.csv");
const report = await agent.instruct(`Analyze this:\n${data}`);
await tools.write("report.md", report);
await ctx.done();

ctx manages lifecycle and persistent state. agent makes LLM calls (including autonomous tool use via pi-coding-agent). tools handles file I/O, shell commands, and HTTP requests.

Runner — what the CLI and programmatic callers use to create and execute programs.

import { createProject, runProgram, updateProject } from "@trama-dev/runtime/runner";

What the runtime provides

The runtime is what makes agent programs self-contained and shareable:

  • Execution — child process spawning, streaming output, timeout management, background process cleanup.
  • IPC bridge — local HTTP server mediating all LLM calls, file I/O, and shell commands. The runtime monitors and controls every operation.
  • State persistencectx.state survives across runs. Programs can be long-running, interruptible, and resumable.
  • Auto-repair — on crash, the runtime gets an LLM fix, validates it in isolation, applies it with snapshot protection. Up to 3 attempts.
  • Version history — every create, update, and repair saves a snapshot to history/.
  • Scaffolding — package.json, module symlinks, gitignore, logs. git clone && trama run just works.

Self-orchestration

trama programs can create and run other trama programs through tools.shell(). The generated program becomes the orchestrator — decomposing tasks, spawning sub-programs, and synthesizing results. No orchestration framework needed. trama is the scheduler.

See the main README for examples, the full API reference, and design philosophy.