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

@arnilo/prism-browser

v0.0.22

Published

Optional Prism browser tools over a host-supplied Playwright Browser: open, snapshot, act, and close with run-owned contexts, egress policy, and upload/download/screenshot quarantine.

Readme

@arnilo/prism-browser

Optional Playwright browser tools for Prism. Hosts supply a pinned Playwright Browser; Prism never downloads or launches browsers on import.

import { chromium } from "playwright-core";
import { createBrowserTools, createSharedSandboxBrowserOptions } from "@arnilo/prism-browser";

const aligned = createSharedSandboxBrowserOptions({
  workspaceRoot: "/workspace",
  downloadsRoot: "/downloads",
  containedProxyAttestation: {
    proxyEndpoint: "http://127.0.0.1:3128",
    denyDirectEgress: true,
  },
  approveDownloadRelease: async () => true,
});

const browser = await chromium.launch({ headless: true });
const tools = createBrowserTools({
  browser,
  ...aligned,
  limits: { maxPages: 4, maxActions: 100, maxSnapshotBytes: 256 * 1024 },
});
// browser_open / browser_snapshot / browser_act / browser_close

Model tools

| Tool | Purpose | | --- | --- | | browser_open | Create/reuse one non-persistent BrowserContext for the current run; optional http(s) navigation | | browser_snapshot | Bounded AI-mode accessibility YAML with snapshot-scoped refs | | browser_act | Ordered navigate/click/type/fill/select/check/uncheck/scroll/wait/dialog/select_page/upload/screenshot/download_release | | browser_close | Close the run context, pages, listeners, quarantined downloads, and snapshot state |

All four tools set exclusive: true. The manager also serializes actions per run.

Host lifecycle

import { createBrowserManager } from "@arnilo/prism-browser";

const manager = createBrowserManager({ browser, ...aligned });
await manager.closeRun(runId); // terminal/abort/cancel
await manager.close();         // dispose every run

Safety

  • Import is inert: no browser launch, download, or network.
  • Targets: snapshot refs, role/name, label, testId, text. No CSS/XPath/evaluate/CDP.
  • Refs require the current snapshotId and invalidate after mutation/navigation.
  • Egress defaults to require contained-proxy attestation; private/loopback/file/data/blob/devtools denied. Playwright routing is defense in depth.
  • Uploads are realpath-contained; downloads quarantine until host approveRelease; screenshots return bounded ImageContent.
  • Observation vs mutation/high-impact actions map to ExecutionPolicy / beforeSideEffect.
  • Verified-state checkpoints (0.0.14, createBrowserCheckpointLedger()): store URL + domain-state hash + host data refs only — never serialized browser internals. After resume/interruption, assertVerifiedBeforeSideEffect() fails closed until reload + verify(), so side effects never replay on stale state.
  • [email protected] is an optional peer; construction fails clearly when no browser/manager is supplied.
  • Default tests use fakes only, including network-free adversarial eval fixtures. Protected live gate: PRISM_LIVE_PLAYWRIGHT=1 (or PRISM_TEST_PLAYWRIGHT=1) npm run test:live.

See Browser automation.