# SparkBridge > Give local AI a browser — without giving it your browser credentials. [![CI](https://github.com/musicjazz5/nvidia_dgx_spark/actions/workflows/ci.yml/badge.svg)](https://github.com/musicjazz5/nvidia_dgx_spark/actions/workflows/ci.yml) [![Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-4c8dff.svg)](LICENSE) [![Chrome MV3](https://img.shields.io/badge/Chrome-MV3-63e6be.svg)](dgx-webbridge/extension) ![SparkBridge — local AI gets browser hands, you keep the keys](site/social-preview.png) ## Live pilot example ![All-English comic-style DGX Browser Agents live pilot](docs/assets/promotion/dgx-browser-agents-live-pilot-en.gif) ### Original-language edition ![Comic-style DGX Browser Agents live pilot using sanitized campaign cards and public readback](docs/assets/promotion/dgx-browser-agents-live-pilot.gif) Read the [2026-08-30 promotion report](docs/promotion-report-2026-08-30.md) for verified delivery, token-efficiency evidence, current analytics gaps and the next promotion priorities. SparkBridge is a community-built, open-source browser bridge for local AI running on [NVIDIA DGX Spark](https://docs.nvidia.com/dgx/dgx-spark/index.html). The model and policy engine run on your DGX; the signed-in browser session remains on your desktop. They communicate only over loopback, an SSH tunnel, or your private Tailnet. The included v0.5 workflow prepares and publishes a Facebook Page post with a strict **preview → human approval → one-time publish** gate. It is an alpha reference implementation, not a general-purpose autonomous browser agent. ## Why SparkBridge - **Credentials stay in Chrome.** Cookies, passwords and browser profiles never move to the DGX. - **Preview is not publish.** `prepare` cannot activate a final Post/Publish control. - **Approval is narrow.** Tokens expire after 10 minutes, are bound to a content hash and one browser client, and work once. - **Actions are constrained.** The extension navigates only to HTTPS Facebook URLs; boost, promote, advertising, payment, logout and account-switch controls are blocked. - **Media is short-lived.** Approved images use expiring download tickets, CDP file upload and automatic browser-side cleanup. - **No cloud model required.** Any OpenAI-compatible local inference endpoint can plan the browser workflow. ```text ┌──────────────────┐ loopback / Tailnet / SSH ┌────────────────────┐ │ DGX Spark │ ─────────────────────────────────▶ │ Desktop Chromium │ │ model + policy │ ◀──────── evidence only ────────── │ signed-in session │ └────────┬─────────┘ └────────────────────┘ │ content hash + expiring one-time approval ▼ Human review gate ``` ## Ten-minute quick start Requirements: Node.js 18+, desktop Chrome/Chromium, a Facebook Page you can manage, and an OpenAI-compatible local model endpoint. Phones and tablets cannot load an unpacked MV3 extension. ```bash git clone https://github.com/musicjazz5/nvidia_dgx_spark.git cd nvidia_dgx_spark npm run init ``` The guided setup is available in English and Traditional Chinese (`npm run init -- --lang zh-TW`). It writes `dgx-webbridge/config.env` with mode `0600`, refuses unsafe wildcard listeners and will not replace an existing file unless you explicitly pass `--force`. For automated provisioning, provide every required identity explicitly: ```bash npm run init -- --non-interactive \ --page-name "Your exact visible Page name" \ --page-url "https://www.facebook.com/your.page" \ --model-url "http://127.0.0.1:8000/v1" \ --model-name "your-local-instruct-model" \ --bridge-host "127.0.0.1" ``` Power users can instead copy `dgx-webbridge/config.example.env` and set the exact Page identity and local model manually: ```dotenv DGX_FB_PAGE_NAME=Your exact visible Page name DGX_FB_PAGE_URL=https://www.facebook.com/your.page DGX_MODEL_BASE_URL=http://127.0.0.1:8000/v1 DGX_MODEL_NAME=your-local-instruct-model DGX_BRIDGE_HOST=127.0.0.1 ``` Then validate and start the bridge. `init` already creates the shared secret; `dgx:setup` can display the connection values again later. ```bash npm run doctor npm run dgx:serve ``` Install the browser agent: 1. Open `chrome://extensions` and enable **Developer mode**. 2. Choose **Load unpacked** and select `dgx-webbridge/extension/`. 3. Open SparkBridge Options. 4. Enter a unique browser name, the Bridge URL and the secret printed by `dgx:setup`. 5. Select **Authorize, save and test**. The badge changes to `ON` after it connects. The extension statically permits only Facebook and local loopback. For a remote Tailnet Bridge, it asks you to approve the single host entered in Options; no private endpoint is baked into the public package. ## Prepare your first preview Copy [the example content pack](examples/facebook-post/facebook.md) into `content/queue//out/facebook.md`, replace the Page name and add approved media paths if needed. ```bash # Fill the composer and stop before final publication. npm run dgx:prepare -- --client # Inspect the visible browser preview. Only then use the one-time token returned above. npm run dgx:publish -- --approval ``` Useful diagnostics: ```bash npm run dgx:status npm run dgx:inspect -- --client npm run dgx:reapprove -- --client npm run verify ``` ## Build a verifiable browser-agent package ```bash npm run package:extension ``` This creates a reproducible `dist/sparkbridge-browser-agent-v.zip` and adjacent `.sha256` file. Tagged GitHub releases also receive GitHub build-provenance attestation. Verify a download with: ```bash cd dist sha256sum -c sparkbridge-browser-agent-v0.5.1.zip.sha256 gh attestation verify sparkbridge-browser-agent-v0.5.1.zip \ -R musicjazz5/nvidia_dgx_spark ``` With more than one extension online, always select a browser by name or client ID. A publish transaction remains bound to the client that produced its preview. ## Private connectivity ### Tailnet Bind the daemon to the DGX Spark's exact Tailscale `100.64.0.0/10` address — never to a wildcard: ```dotenv DGX_BRIDGE_HOST=100.x.y.z ``` Set the browser agent URL to `http://100.x.y.z:18765`. Do not open this port on your router or public firewall. ### SSH tunnel Keep the daemon on loopback, then run this on the browser computer: ```bash dgx-webbridge/deploy/remote-browser-tunnel.sh user@your-dgx-tailnet-ip ``` Keep the extension URL at `http://127.0.0.1:18765`. ## Run as a user service The included unit assumes the repository is at `~/nvidia_dgx_spark`: ```bash mkdir -p ~/.config/systemd/user cp dgx-webbridge/deploy/dgx-webbridge.service ~/.config/systemd/user/ systemctl --user daemon-reload systemctl --user enable --now dgx-webbridge.service ``` ## Project map ```text dgx-webbridge/src/ daemon, policy engine, transactions and local-model adapter dgx-webbridge/extension/ Chrome MV3 browser agent dgx-webbridge/deploy/ systemd unit and SSH tunnel helper dgx-webbridge/tests/ zero-dependency Node test suite content/queue/ content waiting for approval content/published/ content moved only after verified publication site/ static project landing page ``` Read the [architecture](docs/architecture.md), [security model](docs/security-model.md) and [roadmap](docs/roadmap.md), or review the [changelog](CHANGELOG.md). Contributions are welcome — start with [CONTRIBUTING.md](CONTRIBUTING.md) or a [good first issue](https://github.com/musicjazz5/nvidia_dgx_spark/issues). ## Status and non-affiliation SparkBridge v0.5 is alpha software. Facebook's UI can change without notice; always keep human review enabled and verify the public feed after publication. This independent community project is not affiliated with, sponsored by, or endorsed by NVIDIA, Meta, Facebook or Tailscale. Product names and trademarks belong to their respective owners. Licensed under the [Apache License 2.0](LICENSE).