{"id":51037845,"url":"https://github.com/firefox-devtools/bidi-web-client","last_synced_at":"2026-06-22T08:01:18.571Z","repository":{"id":147083038,"uuid":"540487319","full_name":"firefox-devtools/bidi-web-client","owner":"firefox-devtools","description":"Small prototype client for WebDriver bidi","archived":false,"fork":false,"pushed_at":"2026-02-17T10:20:14.000Z","size":61,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-14T10:33:07.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/firefox-devtools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-23T14:47:29.000Z","updated_at":"2026-06-03T19:59:44.000Z","dependencies_parsed_at":"2023-12-18T12:24:30.122Z","dependency_job_id":"60e5cfcb-6538-4a2b-9197-1cd34c0b0818","html_url":"https://github.com/firefox-devtools/bidi-web-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/firefox-devtools/bidi-web-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefox-devtools%2Fbidi-web-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefox-devtools%2Fbidi-web-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefox-devtools%2Fbidi-web-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefox-devtools%2Fbidi-web-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firefox-devtools","download_url":"https://codeload.github.com/firefox-devtools/bidi-web-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firefox-devtools%2Fbidi-web-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34639715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-22T08:01:17.296Z","updated_at":"2026-06-22T08:01:18.562Z","avatar_url":"https://github.com/firefox-devtools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bidi-web-client\n\nA web-based testing client for WebDriver BiDi protocol commands.\n\nSee live at https://juliandescottes.github.io/bidi-web-client/web/\n\n## Features\n\n- **62 BiDi Commands**: Supports all commands from the WebDriver BiDi specification\n- **Module-based Organization**: Commands grouped into tabs by module (session, browser, browsingContext, emulation, network, script, storage, input, webExtension)\n- **Spec Links**: Direct links to the specification for each command\n- **Parameter Type Hints**: Hover over the info button to see parameter names, types, required/optional status, and default values\n- **Custom Commands**: Test experimental or browser-specific commands\n- **Protocol Traffic Log**: View all WebSocket requests, responses, and events\n- **Command-line API**: Script commands via browser console using `sendCommand(method, params)`\n\n## Usage\n\n### Starting Firefox\n\nStart Firefox with remote debugging enabled:\n\n```bash\nfirefox --remote-debugging-port --remote-allow-origins=http://localhost:8080\n```\n\nOr for the live version:\n\n```bash\nfirefox --remote-debugging-port --remote-allow-origins=https://juliandescottes.github.io\n```\n\n### Connecting\n\n1. Open the web client (locally or at the live URL)\n2. Enter the WebSocket URL: `localhost:9222/session` (or `/session/session_id` to connect to an existing session)\n3. Click \"Connect\"\n4. Browse commands by module tabs\n5. Fill in parameters and click \"Send\"\n\n### Adding Custom Commands\n\nClick \"add new command\" button to test experimental or unlisted commands. Custom commands appear in the \"Custom\" tab.\n\n## Development\n\n### Prerequisites\n\n- Node.js (for build scripts)\n- Python 3 (for local HTTP server, optional)\n\n### Building Commands Data\n\nThe command definitions are auto-generated from the WebDriver BiDi CDDL specification:\n\n```bash\nnpm run build:commands\n```\n\nThis fetches and parses the CDDL file from [webref](https://github.com/w3c/webref) and generates `web/scripts/commands-generated.js`. No local spec repository is required.\n\n### Running Locally\n\nServe the `web/` directory with any HTTP server:\n\n```bash\ncd web\npython3 -m http.server 8080\n```\n\nThen open http://localhost:8080 in your browser.\n\n### Project Structure\n\n```\nbidi-web-client/\n├── scripts/\n│   └── parse-spec.js           # Spec parser (generates commands)\n├── web/\n│   ├── index.html              # Main page\n│   ├── style.css               # Styling\n│   └── scripts/\n│       ├── app.js              # Application orchestration\n│       ├── commands-generated.js  # Auto-generated commands (DO NOT EDIT)\n│       ├── ui.js               # UI management and tabs\n│       ├── websocket-client.js # WebSocket communication\n│       ├── command-line.js     # Console API\n│       └── event-emitter.js    # Event handling utility\n```\n\n## Updating Commands\n\nWhen the WebDriver BiDi spec is updated:\n\n1. Run `npm run build:commands` (it fetches the latest CDDL from webref automatically)\n2. Commit the updated `web/scripts/commands-generated.js`\n\nThe generated file is committed to the repository so the webapp works on GitHub Pages without a build step.\n\n### CDDL Source\n\nCommands are parsed from the official CDDL file maintained by W3C:\nhttps://github.com/w3c/webref/blob/main/ed/cddl/webdriver-bidi-remote-cddl.cddl\n\nThis CDDL file is automatically extracted from the WebDriver BiDi spec and provides a cleaner, more structured format for parsing than the Bikeshed HTML source.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefox-devtools%2Fbidi-web-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirefox-devtools%2Fbidi-web-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirefox-devtools%2Fbidi-web-client/lists"}