Specly
Docs ↗ Join the waitlist
specly.xyz / index.mdx Waitlist open Saved You and Specly are editing

Docs for people and their agents.

Beautiful docs from the Markdown in your repo, ready for the AI agents that read them.

Guides › Webhooks › Receive webhooks
2 unpublished changes

Receive webhooks

Relay sends an HTTP POST to your endpoint every time something happens in your account.

Relay waits five seconds for an answer, so answer first and do the slow work after.

Suggested by Specly from relay/api #482

If your endpoint answers 429, Relay tries again in a minute. Relay waits for the seconds in your Retry-After header, then tries again.

app.post('/hooks/relay', raw, (req, res) => {
  verify(req.body, req.headers['relay-signature']);
  res.sendStatus(200);  // answer first
  queue.add(req.body);   // then the slow work
});
WarningVerify against the raw body. Parsing the JSON first changes the bytes.

From your code
relay/api #482 · merged Send Retry-After with every 429

Specly found one sentence on this page that the change makes wrong, and drafted the fix.

Before you publish Links resolve Contrast passes One image needs alt text

Works with the agents you and your readers already use

How it works

  1. You write Markdown.

    In your repo, next to the code it explains. MDX when a page needs components.

  2. Specly checks every build.

    Links, contrast and alt text, with a preview for each pull request.

  3. It ships as your docs.

    Colors, fonts and background come from one theme.json.

  4. And agents read it too.

    Every page also ships as clean Markdown, listed in llms.txt, and through an MCP server on Specly Cloud.

One home for docs and agents

Everything a docs team needs to write and ship, and everything an agent needs to read what you shipped.

llms.txtAgent-ready by default

Every page also ships as clean Markdown, listed in llms.txt and llms-full.txt.

MCPAn MCP server for every site

Sites on Specly Cloud get a read-only MCP server that searches and reads your pages.

PR → docsKeeps up with your code Coming

When a pull request changes how your product works, Specly drafts the fix to your docs.

theme.jsonYour design, not a template

Colors, fonts and background from one file, checked for contrast on every build.

npx specly-docsIn your repo and your editor

Markdown and MDX in GitHub, a CLI for preview and CI, and an extension for VS Code and Cursor.

✓ checksPreviewed, checked, shipped

Links, contrast and alt text are checked on every build, with a preview for each pull request.

Agents read it too

More and more of your readers arrive through an AI agent. Next to the page people read, Specly publishes the version agents read best. Your coding agent can write too: it proposes changes you review before they go live.

Relay Docsguidesapichangelog
Guides · Webhooks

Receive webhooks

Copy page

Relay sends an HTTP POST to your endpoint every time something happens in your account.

WarningVerify the raw body before you parse it. Parsing the JSON first changes the bytes.

app.post('/hooks/relay', raw, (req, res) => {
  verify(req.body, req.headers['relay-signature']);
  res.sendStatus(200);
});

Next: Verify signatures →

Looks like you

Background, colors and fonts come from one theme.json. Every color is checked for contrast before it ships.

theme.jsonEditorial
{
  "background": {
    "type": "paper",
    "color": "#f3ede1"
  },
  "accent": "#2b3a8c",
  "accent2": "#9b3d26",
  "fonts": { "heading": "Newsreader" },
  "mode": "toggle"
}
Accent on background 8.6:1Text on background 14.3:1
Relay Docsguidesapichangelog
Guides · Webhooks

Receive webhooks

Relay sends an HTTP POST to your endpoint every time something happens in your account, signed so you can trust it.

$ relay listen --forward localhost:3000
  ✓ Ready · 3 events received

Get your docs ready for agents

We're onboarding a few teams first.