Try Plasmate - the browser engine for AI agents - right in your browser!
- Click the Run on Replit badge above (or fork this Repl)
- Hit the Run button
- See the SOM output for Hacker News
- Change the
URLvariable inmain.pyto any website - Run again!
main.py- Fetch a single page and explore the SOM structurecompare_tokens.py- Compare HTML vs SOM token counts (uses tiktoken)batch_demo.py- Fetch multiple URLs and compare compression ratios
Plasmate is a browser engine that outputs semantics instead of pixels. It compiles HTML into a Semantic Object Model (SOM) that AI agents can understand directly.
- 16.6x fewer tokens than raw HTML
- 50x faster than Chrome headless
- 30MB memory vs Chrome's 300MB+
- Apache 2.0 open source