Feature idea: Plasmate as a lightweight alternative to headless Chrome for AI browsing
Hey! Really cool project - the "solve every Docker headless Chrome pain point" approach resonates deeply.
I noticed HolyClaude includes headless Chromium + Xvfb + Playwright for browser automation. That's a big chunk of the container size and a lot of the setup complexity you described (shared memory, Xvfb config, etc.).
Wanted to flag Plasmate as a potential alternative for the read/extract use cases. It's a browser engine written in Rust that outputs structured semantic content (SOM) instead of rendering pixels.
What it could replace in HolyClaude:
- For
fetch page contenttasks: Plasmate is a single 30MB binary vs Chrome's 300MB+ footprint - For
extract data from a URL: outputs clean JSON instead of raw DOM, 16x fewer tokens for LLM consumption - No Xvfb needed, no shared memory issues, no GPU/display dependencies
What Chrome is still needed for:
- Screenshots (though Plasmate can delegate to Chrome for those)
- Interactive testing with Playwright (clicking, form filling)
- Heavy SPA rendering
The hybrid approach could be interesting: use Plasmate for content extraction (fast, light, cheap) and keep Chrome only for interactive/visual tasks. Would significantly reduce the container's base footprint for users who primarily use the browser for reading web content.
It also ships as an MCP server (plasmate mcp), so Claude Code gets fetch_page, extract_text, click, and evaluate as native tools.
Install: pip install plasmate or cargo install plasmate
Docs: https://docs.plasmate.app
MCP: https://www.npmjs.com/package/plasmate-mcp
Not trying to sell anything - it's Apache 2.0 and free. Just thought it might solve some of the headless browser pain points your users hit. Happy to help if you want to explore the integration.
Thanks for the detailed writeup, really appreciate you taking the time.
The hybrid approach is exactly what I've been thinking about. Chromium is the single biggest contributor to image size and most of the setup complexity (shm, Xvfb, sandbox flags, etc.) exists purely because of it. If we can offload the content extraction use cases to something lighter and only spin up Chrome when we actually need pixels on screen, that's a significant win.
What interests me most:
- The 30MB binary vs 300MB+ footprint difference is huge for the slim variant especially
- The MCP server integration is compelling since Claude Code already supports MCP tools natively, so
fetch_pageandextract_textwould just work without any additional wiring - No Xvfb dependency for content extraction would simplify the process supervision significantly
What I'd want to validate first:
- How it handles JavaScript-heavy SPAs (a lot of the pages Claude needs to read are React/Next.js apps)
- Whether the structured JSON output plays well with Claude's tool use system out of the box
- Performance comparison on real-world URLs vs headless Chrome + Playwright's
page.content()
I'm not going to commit to a timeline but this is worth exploring as an optional layer. Could see it working as a build arg (--build-arg BROWSER_ENGINE=plasmate) or just bundling both and letting Claude pick the right tool for the task.
Going to leave this issue open as a feature discussion. If you want to throw together a quick proof of concept or benchmark I'd be happy to look at it.
Thanks again for the suggestion and for keeping it open source. This is the kind of community input that makes the project better.