r/LocalLLaMA · · 1 min read

I built barebrowse: give a local-model agent a browser without Playwright — pruned ARIA snapshots instead of raw HTML (far fewer tokens)

Mirrored from r/LocalLLaMA for archival readability. Support the source by reading on the original site.

Author here, sharing something I built. If you run agents on a local model, feeding a whole page as raw HTML burns your context fast. barebrowse turns a URL into a pruned ARIA snapshot — the semantic tree with nav/ads/boilerplate stripped — so each page is a fraction of the tokens. Useful when the context window is your bottleneck.

  • No Playwright / bundled Chromium — it drives a browser you already have (Chrome/Brave/Edge/Chromium) directly over CDP.
  • Pruned ARIA snapshot instead of raw HTML/DOM — far fewer tokens per page for the model to read.
  • Reuses cookies from your real browser profile, so logged-in pages just work (no login scripting).
  • Vanilla JS, ES modules, Node 22+, two tiny deps. Ships an MCP server + CLI, so it drops into local agent setups.

MIT, open source. Repo: https://github.com/hamr0/barebrowse — happy to take feedback or feature requests.

submitted by /u/Tight_Heron1730
[link] [comments]

Discussion (0)

Sign in to join the discussion. Free account, 30 seconds — email code or GitHub.

Sign in →

No comments yet. Sign in and be the first to say something.

More from r/LocalLLaMA