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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@progress/roadkill

v0.3.0

Published

> WebDriver for the Masses

Readme

Roadkill

WebDriver for the Masses

Version: Alpha! Not ready for use public adoption yet.

A node.js testing solution over the WebDriver protocol. Will also consider WebDriver BiDi.

Requirements

  • Node.js 22+ (required for ECMAScript 2024 Explicit Resource Management)
  • TypeScript 5.2+ (for native Disposable support)

Powered by:

A WebDriver based slim testing framework. Closes the gaps between QAs and Front-End developers by:

  • Sharing the same TypeScript or JavaScript language with Angular, React and Vue front-end developers
  • Stay within the nodejs ecosystem
  • Skill-transfer between QAs and Front-End devs
  • Share the lightweight VSCode IDE
  • Compile-time type-checking

Modern Resource Management

The @progress/roadkill uses ECMAScript 2024 Explicit Resource Management for automatic cleanup:

Per-Test Automatic Cleanup (Recommended)

import { describe, it } from "vitest";
import { WebDriverClient } from "@progress/roadkill";

describe("my tests", () => {
  it("automatically cleans up resources", async () => {
    // Automatic cleanup with using declarations - preferred pattern
    await using client = new WebDriverClient("http://localhost:4444");
    await using session = await client.session({ browserName: "chrome" });
    
    await session.navigate("https://example.com");
    // Resources automatically disposed when test completes
  });
});

Suite-Level Manual Cleanup (When Needed)

import { describe, it, beforeAll, afterAll } from "vitest";
import { WebDriverClient } from "@progress/roadkill";

describe("my test suite", () => {
  let client: WebDriverClient;
  let session: Session;

  beforeAll(async () => {
    // When constructed in beforeAll, manual disposal is required
    client = new WebDriverClient("http://localhost:4444");
    session = await client.session({ browserName: "chrome" });
  });

  afterAll(async () => {
    // ECMAScript 2024 symbol-based disposal
    await session?.[Symbol.asyncDispose]();
    // Note: WebDriverClient doesn't need disposal, only sessions do
  });

  it("reuses session across tests", async () => {
    await session.navigate("https://example.com");
  });
});

Vitest Integration

To set up testing with Vitest, add to your package.json:

{
  "scripts": {
    "test": "vitest run",
    "test:watch": "vitest"
  },
  "devDependencies": {
    "vitest": "^1.6.1"
  }
}

Context-Aware Signal Handling

The framework provides context-aware WebDriver operations that automatically receive timeout and cancellation signals:

import { describe, it } from "vitest";
import { WebDriverClient } from "@progress/roadkill";

describe("signal handling", () => {
  it("per-test automatic cleanup", async () => {
    await using client = new WebDriverClient("http://localhost:4444");
    await using session = await client.session({ browserName: "chrome" });
    
    // All operations automatically receive the test's AbortSignal
    await session.navigate("https://example.com");
    const element = await session.findElement("css selector", "h1");
    await element.click(); // Will be cancelled if test times out
    // Automatic cleanup when test ends
  });

  // Or with beforeAll/afterAll pattern
  let sharedSession: Session;
  
  beforeAll(async () => {
    const client = new WebDriverClient("http://localhost:4444");
    sharedSession = await client.session({ browserName: "chrome" });
  });
  
  afterAll(async () => {
    await sharedSession?.[Symbol.asyncDispose](); // ECMAScript 2024 disposal
  });

  it("shared session across tests", async () => {
    await sharedSession.navigate("https://example.com");
    // Still gets automatic signal handling
  });
});

The WebDriver client automatically inherits cancellation signals from the current test context, eliminating the need for manual signal management.

Example Output

Example test run with automatic resource cleanup:

✓ webdriver tests
✓ automatic cleanup tests
✓ context-aware signal tests

Test Files  3 passed (3)
Tests      12 passed (12)
Duration   1.23s

All WebDriver sessions and resources are automatically cleaned up using ECMAScript disposable patterns.

Model Context Protocol (MCP) Integration

Roadkill includes a Model Context Protocol server that provides WebDriver automation tools to AI assistants like Claude Desktop.

VS Code MCP Configuration

To use Roadkill's MCP server in VS Code with the Claude Desktop extension, add this configuration to your MCP settings:

{
  "mcpServers": {
    "roadkill": {
      "command": "npx",
      "args": ["@progress/roadkill"]
    }
  }
}

This provides access to ChromeDriver management, WebDriver session control, DOM exploration, and semantic page object discovery tools directly in your AI chat interface.

Available MCP Tools:

  • ChromeDriver: chromedriver.start, chromedriver.stop, chromedriver.status, chromedriver.restart
  • WebDriver: Session management, navigation, element interaction, screenshots
  • DOM Browser: Page snapshots, selector testing, script execution
  • Semantic Discovery: Intelligent page object discovery and interaction