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

@crvy/dsclnt

v0.0.1

Published

Diffstranding client and Playwright fixture helpers

Readme

@crvy/dsclnt

@crvy/dsclnt wraps the Diffstranding session API and gives Playwright projects a small fixture factory that keeps existing { page }-style tests working against the remote grid.

What It Solves

  • Removes the session-create/connect/delete boilerplate from project-local fixtures.
  • Keeps Playwright's built-in page and context flow by overriding the worker browser fixture only.
  • Exposes a lower-level client for custom orchestration or non-test tooling.

Install

npm install -D @crvy/dsclnt @playwright/test

Playwright Usage

Create a local fixture module once, then keep using normal Playwright tests.

import { describe, expect, extend } from "@crvy/dsclnt";

export const { test, describe } = extend({
  apiKey: process.env.DS_API_KEY,
  apiUrl: process.env.DS_API_URL,
  playwrightVersion: process.env.PLAYWRIGHT_VERSION,
  connectTimeoutMs: 30_000,
  timeout: 300,
});

export { expect };

test already includes these convenience fixtures out of the box:

  • page: standard Playwright page fixture backed by Diffstranding
  • remoteContext: alias of the remote browser fixture
  • remotePage: alias of the standard page fixture
  • sharedPage: worker-scoped shared page for advanced cases

Then your tests can stay close to stock Playwright:

import { expect, test } from "@crvy/dsclnt";

test("loads the app", async ({ page }) => {
  await page.goto("https://example.com");
  await expect(page).toHaveTitle(/Example/);
});

If your project can rely on environment defaults alone, you can skip a local fixture file entirely and import straight from the package root:

import { describe, expect, test } from "@crvy/dsclnt";

describe("app", () => {
  test("loads the app", async ({ page }) => {
    await page.goto("https://example.com");
    await expect(page).toHaveTitle(/Example/);
  });
});

Client Usage

import { createDiffstrandingClient } from "@crvy/dsclnt/client";

const client = createDiffstrandingClient({
  apiKey: process.env.DS_API_KEY,
  apiUrl: process.env.DS_API_URL,
  resolvePlaywrightVersion: () => "1.59.1",
});

const connection = await client.createConnection({ browserType: "chromium" });

// connection.wsEndpoint
// connection.headers.Authorization
// await connection.terminate()

Defaults

  • apiUrl: http://localhost:3000
  • apiKey: DS_API_KEY or explicit config
  • headless: true
  • concurrency: 1
  • timeout: 300 seconds

Provide one of the following for Playwright version resolution:

  • playwrightVersion on each connection request
  • extend({ playwrightVersion }) in the Playwright wrapper
  • PLAYWRIGHT_VERSION in the environment
  • resolvePlaywrightVersion in the client config