{"repo":"ulinycoin/shadow-web","free":true,"listed":false,"github":"https://github.com/ulinycoin/shadow-web","clone":"git clone https://github.com/ulinycoin/shadow-web.git","description":"Local-first Python SDK for AI agents: Shadow DOM flatten, Action Map, SchemaSnap, form fill, security scan, MCP (64–97% token reduction)","language":"Python","stars":10,"topics":["ai-agents","browser-automation","mcp","playwright","shadow-dom","token-compression","form-automation","security","mcp-server"],"license":"MIT","category":"mcp-servers","readme_excerpt":"Shadow Web Cut up to 99% of tokens from web pages before your LLM sees them — then extract structured data. Open-source Python SDK + MCP + standalone shadow-web exec agent: flattens Shadow DOM, builds a typed Action Map, indexes rendered text on demand, heals broken selectors, and turns tables/forms/lists into clean JSON — Camoufox by default, no cloud required. v0.4.0 — pip install \"shadow-web[agent]\" → shadow-web exec \"…\" (observe→act→verify, SchemaSnap, single-call finish). --- Pain point AI agents need to see web pages. But raw HTML is full of , , inline CSS, and interactive elements buried in Shadow DOM trees that Playwright can't reach. A typical Wikipedia page costs 99K tokens raw. Your LLM bill doesn't need that. Shadow Web is what runs between the browser and the LLM: a compression layer that keeps only what matters — interactive elements, their labels, and a clean DOM skeleton. SchemaSnap then takes that clean HTML and turns it into structured data agents can actually use: table rows, form fields with validation, list items. --- What you get Feature Raw HTML Playwright locators Shadow Web --------- ---------- ------------------- ------------ Token cost (Wikipedia) 99,343 — 16,462 (−83%) Token cost (GitHub Trending) 167,875 — 37,833 (−77%) Long-form via Content Index full page — 600t outline → fetch blocks Shadow DOM readable ❌ ❌ partial ✅ flattened Semantic groups ❌ ❌ ✅ Login / Cart / Nav Self-healing selectors ❌ ❌ ✅ local + LLM fallback Consent + lazy hydration ❌ m","default_branch":null,"files":null,"tree":[],"storefront":"/r/ulinycoin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ulinycoin/shadow-web/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}