🛠️ Micro-Page Studio

Compressing via Gzip
0 B
Original
0 B
Compressed
0%
Saved
https://krive.xyz/Krive-Micro-App/#...

🔌 Krive REST API

HTTPS • CORS Enabled

Integrate Krive compression into any backend, script, or AI pipeline. Send raw HTML and instantly receive a zero-dependency, self-contained Krive URL.

POST https://krive.xyz/api/compress

curl -X POST https://krive.xyz/api/compress \ -H "Content-Type: application/json" \ -d '{ "html": "<h1>Generated by Agent</h1>", "title": "Agent-Page", "favicon": "🤖", "theme_color": "#09090b" }'

Sample JSON Response:

{ "success": true, "url": "https://krive.xyz/Agent--Page/#data:text/html;charset=utf-8;format=gz;base64,H4sIAAAAA...", "short_url": "https://krive.xyz/Agent--Page/#H4sIAAAAA...", "hash": "H4sIAAAAA...", "original_size_bytes": 543, "compressed_size_bytes": 393, "compression_ratio": "27.62%", "timestamp": "2026-08-05T13:30:00.000Z" }

POST https://krive.xyz/api/decompress

curl -X POST https://krive.xyz/api/decompress \ -H "Content-Type: application/json" \ -d '{ "url": "https://krive.xyz/Agent--Page/#data:text/html;charset=utf-8;format=gz;base64,H4sIAAAAA..." }'

⚡ Interactive API Test Console

Click above to test live API response...

🤖 Krive Model Context Protocol (MCP) Server

Stdio & HTTP Transport

Equip your AI Agents (Claude Code, Cursor, Antigravity, AutoGPT, LangChain) with the ability to instantly generate, compress, and render complete micro web pages.

1. Add to your MCP Agent Configuration

Add Krive MCP to your .mcp.json or claude_desktop_config.json:

{ "mcpServers": { "krive": { "command": "node", "args": ["/var/www/krive.xyz/mcp/krive-mcp.js"] } } }

2. Exposed MCP Agent Tools

krive_compress_page

Compresses raw HTML/CSS/JS into a self-contained, zero-server Krive URL.

krive_decompress_url

Takes a Krive URL or hash fragment and extracts the original HTML source code.

krive_create_micro_app

Takes separate HTML, CSS, JS, and Title parameters to build a responsive micro-web application.

3. Remote MCP HTTP/SSE Endpoint

AI agents connecting over HTTP can make standard JSON-RPC 2.0 requests directly to: https://krive.xyz/api/mcp

🔍 Krive URL Inspector & Decoder