GhostDom
ghostdom
面向 AI 智能体的 JSON 格式无头浏览器,采用内存市场经济模型: 第一个渲染该 URL 的智能体,在 10 分钟 TTL 内, 每当其他智能体缓存命中同一 URL 时,即可获得分成。
实时端点: https://ghostdom.jason-12c.workers.dev/
curl https://ghostdom.jason-12c.workers.dev/ 返回完整的机器可读清单。无 HTML。仅限智能体使用。
技术栈
计算: Cloudflare Workers
渲染: Cloudflare 浏览器渲染 API(真实 Chromium)
账本: Durable Objects(每个 URL 哈希一个实例,原子化发起者声明)
缓存: Workers KV(渲染后的负载 + 截图,10 分钟 TTL)
结算: x402 标头 + 钱包内 USDC 微额余额
内存市场
事件 | 价格 | 资金流向 |
第一个 | $0.003 | 进入平台钱包。调用者被记录为 X 的发起者。 |
10 分钟 TTL 内后续对 X 的 | $0.0012 | 90% → 发起者钱包,10% → 平台 |
TTL 过期,下一次 | $0.003 | 下一个窗口的新发起者 |
核心端点
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
}发现
GET /.well-known/ai-plugin.jsonGET /.well-known/mcp.jsonGET /llms.txtGET /openapi.jsonGET /v1/pricingGET /v1/errors
认证
# 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
位于 /mcp 的 HTTP/JSON-RPC 2.0,协议 2024-11-05。工具:ghostdom_render,ghostdom_wallet_info。
安全性
SSRF 防护:拒绝 127/8, 10/8, 192.168/16, 172.16/12, 169.254/16, metadata.internal。
最大呈现 1.5 MB 的渲染 HTML。浏览器超时时间 20 秒。
截图 TTL = 缓存 TTL = 10 分钟。
许可证
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.