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

wdio-pw-driver

v0.1.1

Published

WebdriverIO driver powered by Playwright internals — drives Chromium / Firefox / WebKit in-process, no chromedriver, no HTTP. Same WDIO API.

Readme

wdio-pw-driver

Status: pre-alpha. APIs and behavior may change before v1.0.

A WebdriverIO 9 driver that runs your tests through Playwright's native automation engine instead of W3C WebDriver HTTP — no chromedriver, no geckodriver, no remote endpoint. Same WDIO commands, faster session startup, lower per-command latency.

What you get

  • Faster startup — no driver process to spawn.
  • Lower per-command latency — no HTTP roundtrip; commands dispatch in-process.
  • Same WDIO API — your existing test code does not change.
  • Cross-browser — Chromium, Firefox, WebKit, all via Playwright's engines.
  • Built-in trace + video — recording controlled by capabilities or per-test hooks.
  • Playwright extensionspwRoute, pwSwitchDevice, pwGrantPermissions, pwOnFileChooser, pwAriaSnapshot, pwWaitForResponse, pwSaveStorage, and more.

What you give up

  • A subset of W3C WebDriver commands (covers the WDIO command surface; full matrix in the docs).
  • No mobile / Appium. No Selenium Grid.

Install

npm install --save-dev wdio-pw-driver playwright-core
npx wdioPW install              # downloads chromium (default)
# or:
npx wdioPW install all          # chromium + firefox + webkit

playwright-core is a peer dependency — pin whatever version you want.

Minimal config

// wdio.conf.ts
import { PWService } from 'wdio-pw-driver'

export const config = {
  runner: 'local',
  automationProtocol: 'wdio-pw-driver',     // tells WDIO to load this driver
  services: [[PWService, {}]],              // auto-injects the browser binary path

  capabilities: [{
    browserName: 'chromium',                // chromium / firefox / webkit
    'wdio:pwOptions': { headless: true },
  }],

  framework: 'mocha',
  specs: ['./test/specs/**/*.spec.ts'],
  reporters: ['spec'],
}
// test/specs/example.spec.ts
import { browser, expect } from '@wdio/globals'

describe('site', () => {
  it('loads', async () => {
    await browser.url('https://example.com')
    expect(await browser.getTitle()).toMatch(/Example/)
  })
})
npx wdio

Standalone (no test runner)

import { remote } from 'wdio-pw-driver'

const browser = await remote({
  capabilities: { browserName: 'chromium' },
})

await browser.url('https://example.com')
console.log(await browser.getTitle())
await browser.deleteSession()

TypeScript

Drop a one-line globals.d.ts at your project root so browser.pw*() calls type-check without casts:

/// <reference types="wdio-pw-driver" />

…and include it in your tsconfig.json:

{ "include": ["test/**/*", "wdio.*.conf.ts", "globals.d.ts"] }

CLI

The package ships a wdioPW CLI for browser-binary management and trace inspection:

npx wdioPW install [browser…]   # download browser binaries
npx wdioPW trace <file.zip>     # open a trace zip in the trace viewer
npx wdioPW doctor               # diagnose the environment
npx wdioPW --help               # full help

Documentation

Full docs: https://jemishgopani.github.io/wdio-pw-driver/

| Topic | Where | |---|---| | All wdio:pwOptions fields + capability examples | Configuration | | Every pw* extension command (signatures + examples) | Commands | | Per-test trace + video isolation patterns | Test isolation | | PWService reference (binary injection, multiremote) | PWService | | wdioPW CLI reference | CLI | | How the driver works internally | Architecture | | Common errors + fixes | Troubleshooting |

Markdown source for the site lives in website/docs/ and deploys automatically on push to main via .github/workflows/deploy-docs.yml.

Stability and versioning

This driver is pre-1.0. Breaking changes can land in any 0.x.0 release; pin a specific version ("wdio-pw-driver": "0.1.0") if you need stability between updates.

What counts as a breaking change (any of):

  • Removal or rename of a published export (PWDriver, PWService, installPerTestHooks, an error class, etc.).
  • Change to the wire shape of a protocol command handler's response.
  • Change to the wdio:pwOptions capability schema that requires existing test code to adapt.
  • Drop of support for a Node version older versions of the driver supported.
  • Bumping the minimum playwright-core peer-dependency major.

What does NOT count as breaking (will land in patch / minor releases):

  • New pw* extension commands.
  • New wdio:pwOptions fields.
  • Internal refactors that don't change command shapes or option semantics.
  • Bug fixes that align our behavior closer to W3C / chromedriver semantics, even if a test was previously passing because of a divergence.

Support policy:

  • Pre-1.0 (now): only the latest published version receives fixes. No back-porting.
  • Post-1.0: latest two minor versions of the current major; previous major gets security fixes for 6 months after the new major ships.

Migration notes for any breaking change are in CHANGELOG.md. Breaking changes are also tagged with a BREAKING CHANGE: footer in the commit message.

License

MIT — see LICENSE.