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

@taprun/sdk

v0.1.1

Published

TypeScript SDK for Tap — compile your AI agent's browser trajectory into a deterministic, self-verifying program

Downloads

187

Readme

@taprun/sdk — TypeScript SDK for Tap

Compile your AI agent's browser-acting trajectory into a deterministic program that replays at zero LLM tokens, with built-in drift verification.

npm install @taprun/sdk

5-line example

import { run, doctor } from "@taprun/sdk";

const rows = await run("hn/top");           // execute a compiled tap
console.log((rows as any[])[0].title);

const verdict = await doctor("hn/top");     // cross-validate against authoritative
console.log((verdict as any).status);       // 'ok' / 'broken' / 'stale'

What is Tap

Tap is the missing layer between your LLM agent and the websites it needs to act on. The compile-once / run-forever / diff-the-drift pattern in three primitives:

  • forge — compile a browser trajectory into a deterministic .tap.json plan (one-shot AI cost, then 0 forever).
  • run — replay the plan, no LLM in the loop.
  • doctor — independently verify the plan still produces what it claims (drift detection without re-running your agent).

This SDK is a thin subprocess wrapper around the tap CLI binary.

Prerequisites

The tap CLI must be installed:

brew install LeonTing1010/tap/tap     # macOS
# Linux/Windows: see https://taprun.dev/install?utm_source=npm&utm_medium=package&utm_campaign=sdk-ts

Override the binary path via TAPRUN_BIN=/path/to/tap.

Compile from a browser-use trajectory

import { forge } from "@taprun/sdk";
// after `await agent.run()` from browser-use:
await forge({
  trajectory: agent.history,        // AgentHistoryList object, JSON string, or path
  site: "ycombinator",
  name: "homepage",
});
// writes ~/.tap/taps/ycombinator/homepage.tap.json — replays at 0 LLM tokens.

v1 compiles the navigation skeleton (go_to_url, click_element, input_text, scroll, wait, done). extract_content steps throw with a remediation pointing to tap forge <url> to compile the extraction half via Tier 0 sources (RSS / JSON-LD / agents.json / OpenAPI). Stagehand and Anthropic tool-use formats land in a follow-up.

API

import {
  run,        // tapId -> parsed rows
  doctor,     // tapId -> verdict
  verify,     // alias for doctor
  forge,      // url|description|{trajectory,site,name} -> compiled tap
  list,       // [site?] -> available taps
  show,       // tapId -> source + manifest + fingerprint
  stats,      // K(t) telemetry snapshot
  which,      // diagnostic — resolved tap binary path or null
  TapError,
  TapNotFoundError,
} from "@taprun/sdk";

All async functions throw TapError on non-zero CLI exit, or TapNotFoundError if the binary can't be located.

Latency

Each call is one process spawn (~30–100 ms warm). Fine for batch agent jobs; for hot loops use tap mcp start and call via MCP instead — the runtime stays resident.

Status

Alpha. API intentionally minimal while we collect integration feedback (browser-use, Stagehand, Anthropic SDK users). Surface stabilizes at 0.2.

Links

MIT License (this SDK wrapper). The tap CLI binary it shells out to is proprietary — see https://taprun.dev.