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

@tracelane/core

v0.1.0-alpha.18

Published

Framework-agnostic rrweb recording engine for tracelane. Wraps a per-framework browser object behind a common BrowserExecutor interface.

Readme

@tracelane/core

The framework-agnostic recording engine behind tracelane. Wraps any test runner's browser object behind one BrowserExecutor interface and drives the rrweb capture. Shared internals — not installed directly.

npm downloads license CI OpenSSF Scorecard types node status: alpha

Framework-agnostic recording engine for tracelane. Wraps a per-framework browser object behind a common BrowserExecutor interface, injects the rrweb capture bundle, drains in-page events to Node, and builds the buffer that the report packages render.

Not intended for direct consumption — depend on a product package instead:

npm install --save-dev @tracelane/wdio        # WebdriverIO Service
npm install --save-dev @tracelane/playwright  # Playwright reporter + fixture
# @tracelane/cypress — on the roadmap

See the @tracelane/wdio README for the integration guide.

What's in here

  • BrowserExecutor — the framework-agnostic surface that adapters implement.
  • Recorder controller — in-page buffer install + Node-polled drain.
  • Navigation re-injection with a 250ms cooldown + tracelane.nav boundary events.
  • Mode switch ('failed' | 'all') and a 25 MB FullSnapshot-preserving report-size guard.

Built on @cubenest/rrweb-core.

Exact internal values (cooldown ms, report-size cap) are the calibrated defaults at the time of writing; see src/recorder.ts and src/size-guard.ts for the source of truth.

API

The public surface is re-exported from src/index.ts. The load-bearing contract is the BrowserExecutor interface that every adapter implements — @tracelane/core only ever talks to it, never to a concrete framework driver:

export interface BrowserExecutor {
  execute<T>(fn: (...args: unknown[]) => T, ...args: unknown[]): Promise<T>;
  executeAsync<T>(fn: (...args: unknown[]) => void, ...args: unknown[]): Promise<T>;
  cdp(domain: string, command: string, params?: Record<string, unknown>): Promise<unknown>;
  on(event: string, handler: (params: unknown) => void): void;
}

Also exported: createRecorder (the recorder controller), attachNetworkCapture (CDP network capture), loadRrwebBundle, the resolveMode mode switch, and the pruneToSizeBudget report-size guard. See src/browser-executor.ts for the full interface docs.

Related packages

License

Apache-2.0. Contributions require a DCO sign-off (git commit -s).

See the CHANGELOG for release history and SECURITY-NOTES for the recording/redaction threat model.