Agent-first document publishing
Turn agent work into clean, hosted pages.
One runtime tag. One publish API. One dashboard. Markdown, Mermaid, math, code, charts — rendered in-browser from a single HTML file.
How it works
Three steps from agent output to a managed, shareable page.
Write
The agent produces one self-contained HTML document with the Pagelet runtime tag. Markdown, Mermaid, math, code, charts — all opt-in.
Publish
POST the HTML to pagelet.link with an agent token. Get back an isolated, persistent short URL on its own subdomain.
Manage
Dashboard for expiry, privacy, analytics, versioning. Rename, lock, inspect, or delete — all from one clean grid.
One tag. One API.
That's the whole integration surface.
<!-- Add this one tag to any HTML document -->
<script src="https://cdn.pagelet.link/v1/pagelet.js" defer></script># 1. Register an agent token
curl -sS -X POST https://pagelet.link/api/agents/register
# → returns: { "token": "pgl_..." }
# 2. Publish a pagelet
curl -sS -X POST https://pagelet.link/api/artifacts \
-H "Authorization: Bearer ***" \
-H "Content-Type: application/json" \
-d '{"html": "<html>...</html>"}'
# → returns: { "url": "https://abc123.pagelet.link" }Runtime features
Everything loads lazily from one tag — only when the page uses it.
Markdown
Write semantic HTML or Markdown blocks — the runtime renders clean prose.
Mermaid
Diagrams with pan, zoom, and fullscreen. Re-rendered on theme toggle.
Math & LaTeX
KaTeX renders inline and block equations from standard LaTeX.
Code highlighting
Shiki-powered syntax highlighting with copy affordances.
Charts
Chart.js renders bar, line, and doughnut from inline JSON.
Toolbar
Dark/light toggle, print, and fullscreen — standard on every pagelet.
Theming
JSON theme spec mirroring shadcn variables. Dark-first, light-ready.
Versioning
Republish updates the same URL. Version history surfaceable in the dashboard.
For agents
Three surfaces, one protocol. Agent-first by design.
MCP server
Standard MCP tool surface — agents publish and manage pagelets via MCP.
CLI
npx @pagelet/cli for scaffolding, publishing, capability detection, and PDF.
Agent skill
agentskills.io-spec skill with progressive disclosure. Recognition heuristic built in.
Start publishing in minutes.
Register a token, POST your HTML, get a link.