[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109179":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":13,"forks30d":13,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":13,"starSnapshotCount":13,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},109179,"remote-webview-debugger","ZaneL1u\u002Fremote-webview-debugger","ZaneL1u","Let AI agents debug the WebViews inside your app and your H5 pages — on real users' phones, over MCP.","https:\u002F\u002Fdebugger.site",null,"TypeScript",61,0,51,48,50,144,85,"MIT License",false,"main",[23,24,25,26,27,28,29],"ai-agents","claude-code","devtools","h5","mcp","remote-debugging","webview","2026-11-22 16:56:16","2026-11-23 02:15:52","\u003Cdiv align=\"center\">\n\n# Remote WebView Debugger\n\n**Let AI agents debug the WebViews inside your app and your H5 pages — on real users' phones, remotely, over MCP.**\n\n[debugger.site](https:\u002F\u002Fdebugger.site) · [Live demo](https:\u002F\u002Fdebugger.site\u002F#demo) · [Docs](docs\u002Farchitecture.md)\n\nEnglish | [简体中文](README.zh-CN.md) | [繁體中文](README.zh-TW.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | [Español](README.es.md) | [Français](README.fr.md) | [Deutsch](README.de.md) | [Português (Brasil)](README.pt-BR.md) | [Русский](README.ru.md) | [العربية](README.ar.md)\n\n[![CI](https:\u002F\u002Fgithub.com\u002FZaneL1u\u002Fremote-webview-debugger\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FZaneL1u\u002Fremote-webview-debugger\u002Factions\u002Fworkflows\u002Fci.yml)\n[![SDK on npm](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fremote-webview-debugger?label=sdk&color=cb3837)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fremote-webview-debugger)\n[![Gateway release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002FZaneL1u\u002Fremote-webview-debugger?filter=gateway-v*&label=gateway&color=2496ed)](https:\u002F\u002Fgithub.com\u002FZaneL1u\u002Fremote-webview-debugger\u002Freleases)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](LICENSE)\n\n\u003C\u002Fdiv>\n\nA bug that only happens on one user's phone, inside a WeChat-style super app or your own app's WebView, is the hardest kind to debug: no USB cable, no remote-debugging port, no way to reproduce it on your machine. Remote WebView Debugger puts that page in front of your AI agent instead.\n\n- **One script tag** (or a native injection) puts a page online. The user sees a small pill with a device code, and can tap *Request assistance*.\n- **Your agent connects through MCP** — Claude Code, Cursor or any MCP client — after the user approves on the device. It reads accessibility snapshots, console, network and screenshots, and clicks, types and scrolls like a person, across every page and WebView of that device.\n- **Real Chrome DevTools for people.** From the console, an admin opens DevTools on any online page — Elements, Console, Network (with what happened before it opened) and Application storage — after the user approves on the device.\n- **The user stays in control.** They see what the AI is doing (agent cursor, a task card with the planned steps, a glowing edge) and can take over or end the session at any time. Passwords, phone and card numbers are masked before anything leaves the phone.\n- **Self-hosted.** One Go binary with the console and the SDK embedded; SQLite or Postgres.\n\n```\nClaude Code \u002F Cursor ──MCP (HTTPS)──▶ Gateway ──WebSocket──▶ SDK in the page ──▶ DOM · console · network\n                                         ▲\n                                   Web console\n```\n\n## Quick start\n\nThree steps: run the gateway, add the SDK to a page, point your agent at the gateway.\n\n### 1. Run the gateway\n\n```bash\ndocker run -d --name rwd -p 8080:8080 -v rwd-data:\u002Fdata \\\n  -e RWD_ADMIN_PASSWORD='change-me' \\\n  ghcr.io\u002Fzanel1u\u002Fremote-webview-debugger:latest\n```\n\nOpen `http:\u002F\u002F\u003Cyour-host>:8080` and sign in as **`admin`** with that password. Leave `RWD_ADMIN_PASSWORD` out and a random one is printed once in `docker logs rwd`. The image is Alpine-based (linux\u002Famd64 and linux\u002Farm64), embeds the console and the SDK, and keeps everything in the `rwd-data` volume; to upgrade, `docker pull` the new tag and recreate the container.\n\nSettings you may want, passed with `-e` ([all settings](gateway\u002FREADME.md)):\n\n| Variable | Purpose |\n|---|---|\n| `RWD_ADMIN_EMAIL` | Owner login name (default `admin`) |\n| `RWD_PUBLIC_URL` | The address phones and agents use, e.g. `https:\u002F\u002Frwd.example.com\u002Fv1`, when it differs from the one in your browser |\n| `RWD_LANG=zh` | MCP tool descriptions and results in Chinese |\n| `RWD_DATABASE_URL` | `postgres:\u002F\u002F…` to use Postgres instead of SQLite |\n| `RWD_TRUST_PROXY=1` | Only behind your own reverse proxy: take the client IP and scheme from `X-Forwarded-*` |\n\n\u003Cdetails>\n\u003Csummary>Other ways to run it: binaries, Docker Compose with HTTPS, from source\u003C\u002Fsummary>\n\n- **Binary.** Each gateway release on [GitHub Releases](https:\u002F\u002Fgithub.com\u002FZaneL1u\u002Fremote-webview-debugger\u002Freleases) has `rwd_\u003Cversion>_\u003Cos>_\u003Carch>.tar.gz` for Linux and macOS: unpack it and run `.\u002Frwd serve --addr :8080`.\n- **Docker Compose.** [`deploy\u002Fplatform`](deploy\u002Fplatform\u002FREADME.md) adds a Caddy in front: behind your own TLS proxy, or serving HTTPS itself with a Let's Encrypt certificate (`RWD_DOMAIN=\u003Chost>`).\n- **From source.** `make -j16` (needs Go and Node), then `gateway\u002Fbin\u002Frwd-\u003Cos>-\u003Carch> serve --addr :8080`.\n\n\u003C\u002Fdetails>\n\n### 2. Put a page online\n\nCreate a project in the console to get an app key, then add the SDK with your gateway's address:\n\n```html\n\u003Cscript src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fremote-webview-debugger@0.3.0\u002Fdist\u002Fsdk.js\">\u003C\u002Fscript>\n\u003Cscript>RemoteWebviewDebugger.run('https:\u002F\u002Frwd.example.com\u002Fv1', 'rwd_pk_…')\u003C\u002Fscript>\n```\n\nThe SDK is the npm package [`remote-webview-debugger`](sdk\u002FREADME.md): load it from jsDelivr as above or from unpkg (`https:\u002F\u002Funpkg.com\u002Fremote-webview-debugger@0.3.0\u002Fdist\u002Fsdk.js`), or `npm install remote-webview-debugger` and `import { run } from 'remote-webview-debugger'`. Your gateway also serves the copy it embeds at `\u002Fv1\u002Fsdk.js`.\n\nIn an app, inject the same script at document start from native code (iOS `WKUserScript`, Android `addDocumentStartJavaScript`): see [native integration](docs\u002Fnative-integration.md) and the guide built into the console.\n\n### 3. Connect your agent\n\nCreate an API key in the console (one key reaches every device), then:\n\n```bash\nclaude mcp add --transport http rwd https:\u002F\u002Frwd.example.com\u002Fv1\u002Fmcp --header \"Authorization: Bearer rwd_sk_live_…\"\n```\n\n…and ask: *\"Connect to device K7Q2-9M4X and find out why the checkout total shows `--`.\"*\n\n### HTTP or HTTPS?\n\nThe gateway speaks plain HTTP and works fine that way: the SDK picks `ws:\u002F\u002F` or `wss:\u002F\u002F` from the gateway address, and the console and MCP work over either. What decides is **the page you debug**. Browsers and WebViews don't let an `https:\u002F\u002F` page load `http:\u002F\u002F` scripts or open `ws:\u002F\u002F` connections (mixed content), even when `sdk.js` itself comes from the HTTPS CDN.\n\n| The page you debug | Gateway over plain HTTP |\n|---|---|\n| `http:\u002F\u002F`: local dev server, intranet test environment | ✅ Works |\n| `https:\u002F\u002F` in a browser or an iOS `WKWebView` | ❌ Blocked as mixed content: give the gateway HTTPS |\n| `https:\u002F\u002F` in an Android WebView | ⚠️ Only if the app calls `setMixedContentMode(MIXED_CONTENT_ALWAYS_ALLOW)`, in debug builds only |\n\nOver plain HTTP, API keys and console passwords travel unencrypted, so keep it to a network you trust. To get HTTPS, run the [Compose stack](deploy\u002Fplatform\u002FREADME.md) with `RWD_DOMAIN=\u003Chost>` (automatic certificate), or put the container behind your own TLS proxy and add `-e RWD_TRUST_PROXY=1`.\n\n## Features\n\n- **Device-first.** A device (one app install or browser) has many pages; one API key and one MCP server reach every device. The agent follows navigations and newly opened WebViews and sees a cross-page timeline.\n- **Agent tools.** Accessibility snapshots with element refs (Playwright's aria snapshot), find, click, fill, type, press, select, hover, scroll, drag, navigate, evaluate, console, network with bodies, storage, screenshots (native bridge or DOM), batched actions, waits and events.\n- **Consent and control.** On-device approval with levels (`observe` \u002F `interact` \u002F `advanced`), optional auto-approve, screen lock while the agent operates, take over \u002F hand back \u002F end, confirmation for sensitive actions (`data-rwd-confirm`).\n- **Privacy.** Password fields, `data-rwd-mask` and configurable selectors \u002F patterns are masked in snapshots, screenshots, console and network data. The audit log records who did what, without page content.\n- **Operations.** Members and roles, API keys with level \u002F expiry \u002F IP allowlist, device tokens, invites by QR code, quotas, live console over SSE, Prometheus metrics.\n- **11 languages, your own styles.** Console, phone UI and agent-facing text in English, Simplified and Traditional Chinese, French, Spanish, Russian, Arabic (right to left), Japanese, Korean, German and Portuguese: the console follows the browser (with a switcher), the phone UI follows the phone or `run({ lang })`, and the agent side follows `RWD_LANG`. The page SDK takes your own language packs and wording, and restyles through CSS variables ([SDK languages and styling](sdk\u002FREADME.md#languages)).\n- **Plays well with eruda.** Optional Remote Debugger tab inside eruda; can load eruda for developers on demand.\n\n## Repository layout\n\n| Path | What |\n|---|---|\n| [`gateway\u002F`](gateway) | Go gateway: page WebSocket, REST and console auth, MCP server, audit, metrics |\n| [`sdk\u002F`](sdk) | Page SDK (`sdk.js`) and its in-page UI |\n| [`packages\u002Fchobitsu\u002F`](packages\u002Fchobitsu) | Vendored [chobitsu](https:\u002F\u002Fgithub.com\u002Fliriliri\u002Fchobitsu) plus our page-side engine in `src\u002Fengine\u002F` |\n| [`console\u002F`](console) | Web console (React, Vite) |\n| [`website\u002F`](website) | [debugger.site](https:\u002F\u002Fdebugger.site), with the interactive demo |\n| [`examples\u002F`](examples) | A multi-page demo shop and a macOS app that hosts WKWebViews like an iOS app |\n| [`deploy\u002Fplatform\u002F`](deploy\u002Fplatform) | Docker Compose deployment |\n| [`docs\u002F`](docs) | [Architecture](docs\u002Farchitecture.md), [protocol](docs\u002Fprotocol.md), [native integration](docs\u002Fnative-integration.md), [releasing](docs\u002Freleasing.md) |\n\n## Releases\n\nThe page SDK and the gateway are released separately, each with its own version, tag (`sdk-vX.Y.Z`, `gateway-vX.Y.Z`) and changelog: [SDK](sdk\u002FCHANGELOG.md), [gateway](gateway\u002FCHANGELOG.md). A gateway release comes with `rwd` binaries for Linux and macOS and the image `ghcr.io\u002Fzanel1u\u002Fremote-webview-debugger`. See [GitHub Releases](https:\u002F\u002Fgithub.com\u002FZaneL1u\u002Fremote-webview-debugger\u002Freleases) and, for maintainers, [releasing](docs\u002Freleasing.md).\n\n## Development\n\n```bash\nmake -j16 check                                      # gateway tests, SDK typecheck + Playwright tests, console build\ncd console && PORT=8080 npm run mock & npm run dev   # console against an in-memory mock gateway\ncd website && npm run dev                            # the website\n```\n\n## Acknowledgements\n\nThe page-side engine builds on [chobitsu](https:\u002F\u002Fgithub.com\u002Fliriliri\u002Fchobitsu) (MIT) for console and network capture, and uses [Playwright](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fplaywright)'s accessibility snapshot code (Apache-2.0). The console's DevTools is the Chrome DevTools frontend as prebuilt by [chii](https:\u002F\u002Fgithub.com\u002Fliriliri\u002Fchii) (MIT; DevTools itself BSD-3-Clause). See [NOTICE](NOTICE).\n\n## License\n\n[MIT](LICENSE)\n","Remote WebView Debugger 是一个面向移动端 WebView 和 H5 页面的远程调试工具，支持在真实用户设备上无侵入式采集 DOM、控制台、网络请求与截图，并通过 MCP 协议将上下文实时提供给 AI 代理（如 Claude Code）执行自动化诊断与交互操作。其核心特点是基于自托管网关、端侧数据本地脱敏、用户全程授权与可见性控制，同时提供类 Chrome DevTools 的人工调试界面。适用于超级 App、微信小程序容器、混合应用等无法直连调试的生产环境 WebView 问题定位与复现。",2,"2026-11-24 04:36:06","CREATED_QUERY"]