Datadef
⌘K

Embed in your docs

One line of markdown puts a diagram in your README, Notion, or Confluence, on a permanent URL with no sign-in required for readers. Edit the diagram once and every embed shows the new version. No more screenshots that rot.

What you paste

README.md

## Platform architecture

Identity resolution and activation across our customer touchpoints.

![Customer 360 Platform](https://datadef.io/api/embed/customer-360-platform)

_Diagram stays current. It is embedded from Datadef, not exported._

The highlighted line is the embed. Copy takes the whole sample doc, ready to paste anywhere markdown renders: GitHub, GitLab, Notion, Confluence, Obsidian, docs sites.

What readers see

LIVE

Platform architecture

Identity resolution and activation across our customer touchpoints.

Customer 360 Platform, a live Datadef embed

Rendering live preview

A first render can take a few seconds

Diagram stays current. It is embedded from Datadef, not exported.

This image is served live by the same /api/embed endpoint your diagrams get. Docs embedding a diagram pick up canvas edits within a few minutes.

Do it with your diagram

  1. 1
    Make the project public

    Open your diagram and click Embed in the top bar, then flip on "Anyone with the link" inside the dialog. This mints its permanent embed URL. Flip it back off anytime, and every embed stops resolving instantly.

  2. 2
    Copy the embed markdown

    The dialog shows the exact line to paste next to a live render of your diagram, side by side like the demo above. Copy the Markdown line. Prefer an interactive, zoomable version? Pick iframe instead: it drops a live canvas into Notion or any page that accepts HTML.

  3. 3
    Paste it, then forget it

    Commit it to a README, paste it in Confluence or Notion. When you (or your AI agent over MCP) edit the diagram, every embed updates within minutes. Nothing to re-export, ever.

Open a project and click Embed

Agents can do all of this for you: connected over MCP, Claude Code or Cursor exports the embed markdown straight into your README. Deep dive: the embedding guide.