Markdy Animated Diagrams Foundation
⚡ Open-Source Diagram-as-Code DSL · Native Browser Motion

Animated architecture diagrams from plain text.

Declare semantic nodes, flows, and timed beats in reviewable text. Markdy compiles browser-native motion graphics that stay version-controlled, PR-friendly, and AI-native.

SIGNATURE ARCHITECTURE PRESETS:
Markdy 3D IconAI AGENT PROMPT TUTORIAL

Generate Animated Architecture with AI Agents

Markdy is designed from the ground up for LLMs. Instruct Cursor, Claude, GitHub Copilot, Open Code, Antigravity, or ChatGPT to generate and animate production architecture scenes using the canonical specification.

SUPPORTED AGENTS & TOOLS:
💡In Cursor Composer (Cmd+I / Cmd+L), paste the prompt referencing @https://markdy.com/AGENT.md or configure @markdy/mcp-server for instant diagram generation.
SELECT ARCHITECTURE PROMPT:
Architecture Goal: Design a URL Shortener architecture
Follow https://markdy.com/AGENT.md and generate one complete MarkdyScript scene:
"Design a URL Shortener architecture: a user creates a short link via API Gateway and URL Shortener service, writes to PostgreSQL and warms Redis cache. Then a visitor opens the short link and gets redirected 301 from cache or DB fallback. Use beats for each step and highlight the cache hit path."
1
Point Agent to Canonical Spec

Reference markdy.com/AGENT.md or configure @markdy/mcp-server so the AI outputs valid 0.8 grammar, node kinds, and timed beats.

2
Describe System & Flows

Describe your architecture in plain English (gateways, microservices, caches, databases, async queues). Layout and edge routing are automatic.

3
Paste & Render Motion Graphics

Paste the resulting .markdy code straight into the Live Studio below, your Astro/MDX documentation, or CI/CD pipelines.

MarkdyScript Live Studio
📄scene.markdy
Live Editable
WAAPI Motion Canvas

17 Domain-Native Engines & 8 Publication Themes

From microservices and security perimeters to medallion pipelines and sprint roadmaps.

🏗️

Architecture & Systems

type=architecture

Ranked DAG topology with smart obstacle-avoiding edge routing (default).

type=flowchart

Top-down decision branches, conditional routing, and pipeline steps.

type=tree

Parent/child hierarchies with shared horizontal sibling buses.

type=state

Cycle-safe state machine transitions, loops, and self-referencing arcs.

type=sequence

Participant columns, lifelines, ordered messages, and activation spans.

🛡️

Structure & Security Boundaries

type=layers

Full-width horizontal stacked abstraction bands (OSI, CSS cascade, memory).

type=nested

Concentric rounded boundaries with stepped insets for defense-in-depth.

type=swimlane

Cross-functional team lanes and multi-actor handoff tracks.

🔄

Pipelines, Roadmaps & Radial

type=timeline

Horizontal hairline baseline with alternating milestone placement.

type=gantt

Phase-based horizontal bar stacking with phase and span properties.

type=medallion

Multi-tier Bronze → Silver → Gold lakehouse data stages.

type=flywheel

Circular closed-loop compounding engine with tangential flow paths.

type=constellation

Radial focal-node layout with deterministic orbit decoration.

🎨

Curated Publication Themes

theme=paper

Clean light documentation canvas with high-contrast series palette.

theme=editorial

Serif typography, refined ink lines, and muted semantic accents.

theme=terminal

Monospace CLI aesthetic with vibrant phosphorescent glow accents.

theme=sketchy

Organic hand-drawn whiteboard style with SVG displacement turbulence.

theme=ink

Monochromatic blue tones inspired by ballpoint pens, fountain pens, cyanotype & porcelain prints.

theme=doodle

Playful hand-drawn doodle sketchbook with felt-tip markers and comic block shadows.

theme=blueprint

Technical CAD drafting grid with cyan wireframe geometry.

theme=midnight

Deep developer canvas with layered glassmorphism elevations.

Never Start From Scratch

Convert existing static architecture definitions into animated MarkdyScript scenes in 1 command or 1 click.

$markdy import flow.mmd --out flow.markdy
ORIGINAL STATIC INPUTflowchart.mmd
Static 2D Diagram / Manifest
flowchart LR
  Client[Client Browser] --> Gateway[API Gateway]
  Gateway --> Auth[Auth Service]
  Auth --> DB[(PostgreSQL)]
  Auth -.-> Cache[(Redis Session)]
ANIMATED MARKDYSCRIPToutput.markdy
Native WAAPI Browser Motion
scene theme=paper type=flowchart
layout TB

service Client "Client Browser"
gateway Gateway "API Gateway"
service Auth "Auth Microservice"
cache Cache "Redis Session"
database DB "PostgreSQL"

beat flow:
  show $nodes stagger=60ms
  Client -> Gateway "POST /login"
  Gateway -> Auth "Validate"
  Auth -> DB "Query Credentials"
  Auth -> Cache "Set Session"
  Gateway <- Auth "JWT Token"

player:
  playback:
    loop true
  controls:
    theme true
  interaction:
    zoom true
    pan true
    click_to_play true
    double_click_to_reset true
    keyboard false
  chrome:
    badge true
    progress boundary
    color "#3b82f6"

Why Engineers & Teams Choose Markdy

A diagramming layer built for modern software architecture, autonomous coding agents, and CI/CD reviews.

Full System Support & Integration Matrix

Transparent overview of supported ingestion formats, export targets, analysis features, and framework integrations.

🔄

Ingestion & Transpilation Inputs

Source FormatStatusSupported FeaturesDocumentation & Demo
Mermaid Flowcharts (.mmd, ```mermaid)StableNodes, subgraphs, direction (LR/TB), flow labels, shapesMigration Guide ↗
Docker Compose (docker-compose.yml)StableServices, container ports, volume storage, networksImport in Studio ↗
Kubernetes Manifests (k8s.yaml)StableDeployments, Pods, Services, Ingress, PersistentVolumesK8s Guide ↗
Terraform State / HCL (.tf, .tfstate)StableAWS / GCP / Azure resources, VPCs, subnets, DAG dependenciesImport in Studio ↗
Draw.io XML (.drawio, .xml)BetamxGraph vertex geometry, labels, grouped containersTry Draw.io Import ↗
🚀

Export Targets & Developer Frameworks

Target / PlatformStatusPackage / ToolCapabilities
Browser Web Animations (WAAPI)Stable@markdy/renderer-domHardware-accelerated 60fps motion, camera framing, pulse cues
Standalone HTML BundleStablemarkdy render <file>Zero-dependency offline HTML file with embedded dark/light themes
Vector SVG & PNG RasterStableStudio / CLICrisp infinite-resolution SVG vectors with embedded styles
Astro IntegrationStable@markdy/astroSSR-friendly <Markdy /> component with client hydration
MDX / Next.js / DocusaurusStable@markdy/mdx<MarkdyDiagram /> component with indentation collapse resiliency
AI MCP Server & DiagnosticsStable@markdy/mcp-serverNative tools for Cursor, Claude, Antigravity with self-healing repairs
CI/CD Governance & Multi-File CheckStablemarkdy check / markdy lintDeadlock cycle prevention, cross-layer linter, --dist HTML validator

Official Model Context Protocol (MCP) Server

Point Claude Desktop, Cursor, or Antigravity to Markdy for instant AST validation and self-healing diagrams.

How AI pairs with Markdy

Markdy AI Mascot
  1. Hosted Agent Reference

    Share markdy.com/AGENT.md or llms.txt with your coding assistant.

  2. Prompt with Natural Language

    "Draw a cache-aside architecture diagram with Redis and Postgres on user checkout."

  3. Autonomous Self-Healing Loop

    The MCP server automatically parses the AST and fixes invalid cues or node typos.

Claude Desktop / Cursor MCP Config
{
  "mcpServers": {
    "markdy": {
      "command": "npx",
      "args": ["-y", "@markdy/mcp-server"]
    }
  }
}

Docs-as-Code in Any Framework

Vanilla JS / Any Bundler
import { createDiagram } from "@markdy/renderer-dom";

const diagram = createDiagram({
  container: document.getElementById("scene"),
  code: `
    scene theme=paper
    client WebApp -> service Api -> database Postgres
  `,
});

diagram.play();
Astro Island Component
---
import { Markdy } from "@markdy/astro";

const sceneCode = `
  scene theme=paper
  client WebApp -> service Api -> database Postgres
`;
---

<Markdy code={sceneCode} autoplay />
MDX Markdown Embedded Block
// In your MDX documentation file:
```markdy
scene theme=paper
client Browser -> gateway API -> cache Redis
```
CLI Installation & Rendering
# Install CLI globally
npm install -g @markdy/cli

# Render scene to interactive HTML
markdy render system.markdy --open

# Batch validate all diagrams in CI/CD
markdy check-all ./docs/diagrams

Frequently Asked Questions

Markdy is an open-source, diagram-native DSL for animated architecture and system diagrams. You write semantic nodes, groups, flows, and beats in plain text; Markdy compiles browser-native motion graphics with zero coordinate math and zero manual keyframing.

Mermaid, D2, and PlantUML produce static 2D images. Markdy is designed for system motion: request-response paths, cache invalidations, event streaming, camera framing, and step-by-step lifecycles rendered via the browser-native Web Animations API.

No. Markdy uses DOM elements, CSS transforms, and the Web Animations API. Scenes are crisp at any DPI, lightweight, accessible, and run seamlessly inside Astro, MDX, React, or static docs sites.

Yes! Markdy's line-based grammar is designed for LLMs. Our official @markdy/mcp-server connects to Cursor, Claude Desktop, and Antigravity to validate, transpile, and self-heal diagrams in real time.