Hubcap Bridge: Persistent Two-Way Messaging Between CLI and Browser JavaScript via CDP

What Hubcap Bridge Does
Hubcap Bridge establishes a persistent two-way message channel between a local process and JavaScript running in a browser page using the Chrome DevTools Protocol. This addresses the gap where web apps lack public APIs or developers don't have access to them, but the apps have rich client-side JavaScript APIs powering their UI.
Key Features and Usage
The bridge command syntax is:
hubcap bridge --target "$TAB" ' for await (const msg of messages) { const result = await window.appAPI.query(msg.sql); send({rows: result}); } 'Communication happens via stdin/stdout carrying LDJSON format. Heartbeats detect disconnection, and multiple bridges can run in the same tab.
Practical Applications
This enables building Claude Code skills that include a local server kept in sync with a web page through its internal APIs. The server uses bridge to push and pull data through the page's JavaScript layer, with Claude communicating to the server. This approach avoids HTML scraping and doesn't require waiting for someone to build an MCP server.
Because CDP-injected code runs in the page's own context, there are no CORS, CSP, or mixed content issues to work around. The author notes: "If you can call it from the browser console, you can pipe it through bridge."
Additional Release Notes
Also in this release: eval now supports top-level await.
Important Consideration
The source includes this note: "(Make sure you're staying within the terms of service of whatever you're integrating with.)"
Resources
- Blog post: https://tomyandell.dev/blog/hubcap-bridge
- Hubcap plugin: https://github.com/tomyan/claude-skill-hubcap
- Docs: https://hubcap.tomyandell.dev
- Source: https://github.com/tomyan/hubcap
📖 Read the full source: r/ClaudeAI
👀 See Also

OpenClaw 2026.3.23 adds DeepSeek provider, Qwen pay-as-you-go, and Chrome MCP improvements
OpenClaw v2026.3.23 introduces a DeepSeek provider plugin, Qwen pay-as-you-go pricing, OpenRouter auto pricing with Anthropic thinking order, Chrome MCP tab waiting, and fixes for Discord/Slack/Matrix and Web UI.

Self-updating translation system for OpenClaw maintains domain glossaries automatically
A Python script wraps the Kimi2.5 API to translate .srt files while preserving block indices, timestamps, and segmentation. The system uses project profiles with glossary.json, style.md, and memory.jsonl files, and includes a cron job that scans official sources every 6 hours to update terminology.

Parallel Agent Orchestrator for Claude Code Using Git Worktrees
A developer built a parallel orchestrator that uses git worktrees to create isolated environments for Claude Code agents, solving the problem of shared working directories causing broken apps and messy git status.

Relay: Open-Source Control Plane for OpenClaw AI Agents
Relay is an Electron desktop app that provides Claude Cowork-like workflow for OpenClaw, running on your infrastructure with your choice of LLM models and built-in governance features including approval gates and exportable audit trails.