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

@ariada-org/core-playwright

v0.2.0

Published

Node + Playwright adapter for @ariada-org/core-engine — browser launch, CDP snapshot, captureSnapshot, and the canonical scan() entry point.

Readme

@ariada-org/core-playwright

Node + Playwright adapter for @ariada-org/core-engine. The canonical Node entry point used by any CI-gate consumer or downstream tool that needs to scan a URL from a Node process.

| Field | Value | | -------------- | --------------------------------------------------------------------- | | Package name | @ariada-org/core-playwright | | Version | 0.1.0 | | Licence | EUPL-1.2 (European Union Public Licence) | | Runtime | Node >= 22 | | Dependencies | @ariada-org/core-engine, playwright, pino, ulid | | Peer deps | playwright >= 1.49 | | REUSE-compliant | yes — REUSE.toml + per-file SPDX headers |

Public API (v0.1)

import {
  scan,
  createScanner,
  launchBrowser,
  captureSnapshot,
  createPlaywrightBoundingBoxResolver,
  createLogger,
} from '@ariada-org/core-playwright';

const report = await scan('https://example.com', {
  domains: ['a11y'],
  ai: 'off',
});
  • scan(url, opts?) — single-call entry point: launches Playwright, navigates to url, captures a UnifiedSnapshot, runs runOrchestration, returns the UnifiedReport. Closes the browser on exit.
  • createScanner(defaults) — factory for a reusable Scanner instance with fixed defaults (good for batch CLI runs).
  • launchBrowser(name, headless) — Playwright browser launch helper.
  • captureSnapshot(page, opts?)UnifiedSnapshot capture via CDP (Chrome DevTools Protocol).
  • createPlaywrightBoundingBoxResolver(page)BoundingBoxResolver impl for the engine's element iterator.
  • createLogger()pino logger configured for ariada's log levels.

Usage — CLI / CI gate

// scripts/scan.mts
import { scan } from '@ariada-org/core-playwright';

const url = process.argv[2];
if (!url) {
  console.error('Usage: scan <url>');
  process.exit(2);
}

const result = await scan(url, { domains: ['a11y'] });
console.log(JSON.stringify(result.report.stats, null, 2));
if (result.report.stats.totalViolations > 0) process.exit(1);

Usage — reusable scanner (batch mode)

import { createScanner } from '@ariada-org/core-playwright';

const scanner = createScanner({
  ai: 'off',
  playwright: { browser: 'chromium', headless: true },
});

for (const url of urls) {
  const result = await scanner.scan(url);
  console.log(url, result.report.stats.totalViolations);
}

Testing

Unit tests run with vitest; end-to-end tests (real Chromium via Playwright) live behind pnpm --filter @ariada-org/core-playwright test:e2e (playwright.config.ts) and require a working Playwright browser install (pnpm exec playwright install chromium).

Layout

src/
  index.ts            — public exports
  scanner.ts          — scan() + createScanner()
  snapshot.ts         — captureSnapshot()
  cdp.ts              — CDP wiring
  bbox-resolver.ts    — Playwright BoundingBoxResolver
  logger.ts           — pino setup
tests/
  *.test.ts           — vitest unit tests

Licence

EUPL-1.2 — see LICENSE. Per-file SPDX headers + REUSE.toml keep machine-readable metadata in sync. Trademarks not granted; see TRADEMARK.md.

Security

Vulnerability reports → https://github.com/ariada-org/ariada/security/advisories/new or [email protected]. See SECURITY.md.