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 Browser Rendering API (실제 Chromium)
원장: Durable Objects (URL 해시당 하나의 인스턴스, 원작자 권한 원자적 할당)
캐시: Workers KV (렌더링된 페이로드 + 스크린샷, 10분 TTL)
결제: x402 헤더 + 지갑 내 USDC 마이크로 잔액
메모리마켓
이벤트 | 가격 | 흐름 |
URL X를 최초로 | $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 모두 거부됨.
렌더링된 HTML 최대 1.5MB 제공. 브라우저 타임아웃 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.