# webdriver-bidi-protocol

> This repository contains TypeScript types conforming to the [WebDriver BiDi](https://w3c.github.io/webdriver-bidi/) specification. It also supports WebDriver BiDi extension modules defined in other specifications:

Latest version **1.0.1** (published 2026-09-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install webdriver-bidi-protocol
pnpm add webdriver-bidi-protocol
yarn add webdriver-bidi-protocol
bun add webdriver-bidi-protocol
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2026-09-14 |
| First published | 2024-06-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 263.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 14 |
| Author | The Chromium Authors |
| Maintainers | orkon, google-wombot |
| Keywords | webdriver, bidi, protocol |

## Links

- npm: https://www.npmjs.com/package/webdriver-bidi-protocol
- Repository: https://github.com/GoogleChromeLabs/webdriver-bidi-protocol
- Homepage: https://github.com/GoogleChromeLabs/webdriver-bidi-protocol#readme
- Issues: https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues
- npm.io page: https://npm.io/package/webdriver-bidi-protocol

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2026-09-14
- 0.4.3 — 2026-08-26
- 0.4.2 — 2026-05-22
- 0.4.1 — 2026-02-11
- 0.4.0 — 2026-01-20
- 0.3.11 — 2026-01-13
- 0.3.10 — 2025-12-11
- 0.3.9 — 2025-11-19
- 0.3.8 — 2025-10-12
- 0.3.7 — 2025-10-07
- 0.3.6 — 2025-09-26
- 0.3.5 — 2025-09-25
- 0.3.4 — 2025-09-25
- 0.3.3 — 2025-09-25
- 0.3.2 — 2025-09-24
- … 30 more at https://npm.io/package/webdriver-bidi-protocol/versions

## README

# webdriver-bidi-protocol

This repository contains TypeScript types conforming to the [WebDriver
BiDi](https://w3c.github.io/webdriver-bidi/) specification. It also
supports WebDriver BiDi extension modules defined in other
specifications:

- [Permissions](https://w3c.github.io/permissions/#automation-webdriver-bidi)
- [Web Bluetooth](https://webbluetoothcg.github.io/web-bluetooth/#automated-testing)

## Installation

```
npm install webdriver-bidi-protocol
```

## Usage

In your TypeScript client implementation, you can now import WebDriver
BiDi types:

```ts
import {Commands} from 'webdriver-bidi-protocol';

async function sendCommand<T extends keyof Commands>(
  method: T,
  params: Commands[T]['params']
): {result: Commands[T]['returnType']} {
  // Implementation for sending the data using WebSockets.
}

// Now TypeScript validates that the params match the spec for 'browsingContext.print'.
await sendCommand('browsingContext.print', {context: 'xxx'});
```

## Versioning

This package patch version will be incremented whenever there are
specification updates.

---
_Source: https://npm.io/package/webdriver-bidi-protocol · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
