GhostDom
ghostdom
Headless-Browser-als-JSON für KI-Agenten mit Memorymarket-Ökonomie: Der erste Agent, der eine URL rendert, wird jedes Mal bezahlt, wenn ein anderer Agent innerhalb der 10-minütigen TTL einen Cache-Hit für dieselbe URL erzielt.
Live-Endpunkt: https://ghostdom.jason-12c.workers.dev/
curl https://ghostdom.jason-12c.workers.dev/ gibt ein vollständiges maschinenlesbares Manifest zurück. Kein HTML. Nur für Agenten.
Stack
Compute: Cloudflare Workers
Rendering: Cloudflare Browser Rendering API (echtes Chromium)
Ledger: Durable Objects (eine Instanz pro URL-Hash, atomarer Urheberanspruch)
Cache: Workers KV (gerenderte Payloads + Screenshots, 10 Min. TTL)
Abrechnung: x402-Header + USDC-Mikroguthaben im Wallet
Memorymarket
Ereignis | Preis | Fluss |
Erster Agent für | $0,003 | An Plattform-Wallet. Aufrufer wird als Urheber von X registriert. |
Nachfolgendes | $0,0012 | 90 % → Urheber-Wallet, 10 % → Plattform |
TTL läuft ab, nächstes | $0,003 | Neuer Urheber für das nächste Zeitfenster |
Core-Endpunkt
POST /render
Headers: X-Wallet: <wallet>, X-Wallet-Key: <signing_key>, Content-Type: application/json
Body: { "url": "https://...", "wait_for": "optional CSS selector" }
Response:
{
"rendered_html": "...",
"structured_dom": { tag, id, cls, text, children },
"title": "...",
"visible_text": "...",
"screenshot_url": "https://.../v1/screenshot/<hash>",
"links": [ { href, text }, ... ],
"status": 200,
"render_time_ms": 3425,
"cache_hit": true/false,
"cache_age_s": 172,
"originator_wallet": "0x...",
"role": "originator" | "cache_hit",
"cost_usd": 0.0012,
"payout": { "to_originator_usd": 0.00108, "to_platform_usd": 0.00012 },
"wallet_balance_usd": 0.9904
}Discovery
GET /.well-known/ai-plugin.jsonGET /.well-known/mcp.jsonGET /llms.txtGET /openapi.jsonGET /v1/pricingGET /v1/errors
Authentifizierung
# 1. Mint a wallet
curl -X POST https://ghostdom.jason-12c.workers.dev/v1/wallets
# 2. Fund it ($1 via x402 test-mode)
curl -X POST https://ghostdom.jason-12c.workers.dev/v1/wallets/fund \
-H "Content-Type: application/json" \
-d '{"wallet":"0x...", "amount_usd": 1}'
# Follow the returned payment_url to complete
# 3. Render
curl -X POST https://ghostdom.jason-12c.workers.dev/render \
-H "X-Wallet: 0x..." -H "X-Wallet-Key: gd_sk_..." \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'MCP
HTTP/JSON-RPC 2.0 unter /mcp, Protokoll 2024-11-05. Tools: ghostdom_render, ghostdom_wallet_info.
Sicherheit
SSRF-Schutz: 127/8, 10/8, 192.168/16, 172.16/12, 169.254/16, metadata.internal werden alle abgelehnt.
Maximal 1,5 MB gerendertes HTML werden ausgegeben. Browser-Timeout 20s.
Screenshot-TTL = Cache-TTL = 10 Minuten.
Lizenz
Apache 2.0.
This server cannot be deployed
Related MCP Connectors
Hosted browser for AI agents: screenshots, post-JS DOM, console, WCAG. No install, no API key.
Headless browser primitives for AI agents when sites need real JS rendering.
Reliable web access for AI agents: smart HTTP, rotating proxies, and full-browser rendering.
Cloud scraping & crawling API for AI agents. Turn any URL into clean, LLM-ready markdown.