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

v0.4.2

Published

Browser automation plan format for MCP servers and AI agents — TypeScript types + W3C Annotation validator + JSON Schema for .tap.json. Used by Tap and its Playwright / Puppeteer / Stagehand converters. Typecheck or validate plans without the full Tap CLI

Readme

@taprun/spec

Tap plan-v1 format spec — TypeScript types + W3C Annotation validator for .tap.json files.

npm install @taprun/spec

Use this package to typecheck or validate compiled Tap plans (.tap.json) without running the full Tap CLI. It's the public contract third-party tools build against.

What's in scope

  • ExecutionPlan — the body of a .tap.json envelope (site, name, intent, ops, health, authoritative source).
  • TapAnnotation — the W3C Web Annotation envelope wrapping an ExecutionPlan body.
  • OP_NAMES / OpName — closed union of the plan ops.
  • validateAnnotation(value) — zero-runtime-dep MUST-level W3C validator. Returns { valid, errors[], warnings[] }.
  • All op interfaces (FetchOp, NavOp, WaitOp, ExtractOp, …), HealthContract, AuthoritativeSpec, ArgSpec.
  • JSON Schema 2020-12 at @taprun/spec/schema for non-TypeScript validators (Python / Go / Rust / Ruby).
  • Conformance suiterunConformance(value) + CONFORMANCE_FIXTURES for adapter authors. Combines W3C envelope + plan-level checks into a single human-friendly verdict, with categorized failure codes (envelope / body / intent / ops / op-name / authoritative).

Usage — TypeScript

import { validateAnnotation, OP_NAMES, type ExecutionPlan } from "@taprun/spec";

const plan: ExecutionPlan = JSON.parse(await fs.readFile("plan.tap.json", "utf8"));
const result = validateAnnotation(plan);
if (!result.valid) console.error(result.errors);

Usage — Adapter conformance (TypeScript)

If you're writing an adapter that emits .tap.json (e.g. converting Playwright/Puppeteer scripts into Tap plans), use the conformance suite to verify your output:

import { runConformance, CONFORMANCE_FIXTURES } from "@taprun/spec";

// Verify your adapter output
const result = runConformance(yourAdapterOutput);
if (!result.pass) {
  for (const f of result.failures) {
    console.error(`[${f.category}] ${f.code} @ ${f.path}: ${f.message}`);
  }
}

// Verify against the official fixture corpus
for (const fixture of CONFORMANCE_FIXTURES) {
  const r = runConformance(fixture.input);
  // r.pass === !fixture.expectFail
  // r.failures[].code === fixture.expectFail?.code
}

The fixtures cover six failure classes (envelope / body / intent / ops / op-name / authoritative) plus two known-good cases. Adapter test suites typically iterate CONFORMANCE_FIXTURES to confirm their output behaves identically to a reference implementation.

Usage — JSON Schema (any language)

The package ships a JSON Schema 2020-12 file alongside the TS types. Any JSON-Schema-compatible validator works:

import schema from "@taprun/spec/schema" assert { type: "json" };
import Ajv from "ajv/dist/2020";
const ajv = new Ajv();
const validate = ajv.compile(schema);
const valid = validate(planJson);

Or fetch from the published spec URL:

curl https://taprun.dev/spec/plan-v1.schema.json

The schema's $defs.OpName.enum is drift-guarded against the TS source — adding a plan op requires editing both, enforced by the tap-core test suite.

What's NOT in scope

  • forge (compiling URLs / natural language into plans)
  • doctor (semantic cross-validation of plan output against authoritative sources)
  • heal (AI-driven plan repair)
  • Authentication, license, and runtime execution

Those live in the proprietary Tap CLI. This package is the format substrate so anyone can write a plan emitter (e.g. tap-from-playwright) without coupling to the closed engine.

Format reference

Versioning

v1 is the stable on-disk format.

  • Field additions allowed in v1.x (default-undefined preserves older plans).
  • Op-union additions require ADR + minor version bump.
  • Field removal or semantic change requires major bump.

Status

0.0.0 — Iteration 1 stub. The exports land in Iteration 2; this README is published with the package skeleton so downstream tooling can pin the wire identifier early.

See core/docs/reconstruction-plan-2026-04-27-addendum-B.md (private) for the slice plan.

Part of the Tap ecosystem

Tap is local-first browser automation — compile your scraper once, run it in your own browser forever, and diff the drift when sites change. This package is the open contract every other Tap surface builds against.

License

MIT.