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/from-playwright

v0.1.2

Published

Migrate Playwright scripts to MCP-compatible browser automation plans. Convert .spec.ts / .test.ts files into deterministic .tap.json that runs at zero LLM tokens in Claude Code, Cursor, and any MCP host.

Readme

@taprun/from-playwright

Convert Playwright test scripts into Tap plan-v1 .tap.json files.

npm install @taprun/from-playwright @taprun/spec

Take any Playwright .ts/.js script, get back a .tap.json envelope that tap doctor and tap heal understand. Reuse the script you already have; add monitoring + self-healing on top.

Status

0.1.0 — MVP works. page.goto / click / fill / type / press / waitForSelector / waitForTimeout / screenshot are mapped to plan-v1 ops. Anything else permissively becomes { op: "exec" } preserving the original line, or throws under strict: true.

Usage

import { readFile, writeFile } from "fs/promises";
import { playwrightToTap } from "@taprun/from-playwright";
import { runConformance } from "@taprun/spec";

const source = await readFile("tests/github.spec.ts", "utf8");
const plan = playwrightToTap(source, {
  site: "github",
  name: "search",
  intent: "read",
});

const v = runConformance(plan);
if (!v.pass) throw new Error("adapter output not conformant: " + JSON.stringify(v.failures));

await writeFile("github/search.tap.json", JSON.stringify(plan, null, 2));

Scope

| Playwright API | → plan-v1 op | Status | |---|---|---| | page.goto(url) | { op: "nav", url } | ✓ 0.1 | | page.click(selector) | { op: "input", kind: "click", target } | ✓ 0.1 | | page.fill(s, v) | { op: "input", kind: "fill", target, value } | ✓ 0.1 | | page.type(s, v) | { op: "input", kind: "type", target, value } | ✓ 0.1 | | page.press(s, k) | { op: "input", kind: "press", target, value: k } | ✓ 0.1 | | page.waitForSelector(s) | { op: "wait", selector } | ✓ 0.1 | | page.waitForTimeout(ms) | { op: "wait", ms } | ✓ 0.1 | | page.screenshot() | { op: "screenshot" } | ✓ 0.1 | | page.locator(s).textContent() | { op: "extract", root, per_item: { text: "" } } | planned 0.2 | | page.evaluate(...) | { op: "exec", allowUnverifiable: true } (permissive) or throws (strict) | ✓ 0.1 |

MVP limitations

The Iter-2 MVP uses a regex-then-string-literal scanner. Known gotchas:

  • Variable-bound selectors (const sel = "..."; page.click(sel)) — the scanner sees the variable name, not the value. Inline literals work; variables don't.
  • Template-string interpolation works only when the entire string is a literal. \${dynamic}`falls through to permissiveexec`.
  • Trailing line comments stay in the source visible to regex (they don't affect successful matches but may cause the unhandled-line warning to fire on commented-out calls).

These will be addressed in 0.2 when the scanner upgrades to a real TypeScript AST walk.

Out of scope (escaped via { op: "exec", fn: <original code>, allowUnverifiable: true }):

  • Custom test fixtures
  • expect() assertions (use health.non_empty / authoritative instead)
  • Multi-context / multi-page setups
  • Playwright trace files (separate adapter)

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.

License

MIT.