-
-
Notifications
You must be signed in to change notification settings - Fork 3
FAQ & Troubleshooting
Frequently asked questions and best practices for authoring Markdy diagrams.
Mermaid produces static SVG or PNG diagrams. Markdy is designed from the ground up for animated architecture stories and system design explainers. You can control time across beat sequences, orchestrate animated flow particles, and direct camera focus with frame and glow cues.
Yes! @markdy/core is a zero-dependency TypeScript parser, and @markdy/renderer-dom compiles plain DOM elements and Web Animations API (WAAPI) keyframes. You can also render standalone self-contained .html files using the CLI:
npx @markdy/cli render system.markdy --out system.html-
Astro: Use
@markdy/astrocomponent:--- import { Markdy } from "@markdy/astro"; --- <Markdy code={markdyScript} width={800} height={400} autoplay client:visible />
-
React / MDX: Use
@markdy/mdxplugin to render fencedmarkdyblocks with automatic viewport hydration.
In MarkdyScript, -> defines architectural ranking (forward dependency). If NodeA -> NodeB and you also write NodeB -> NodeA, you create a cycle that distorts rank ordering.
Solution: Always use <- for responses or returns (e.g. NodeA <- NodeB "200 OK"). <- is cycle-safe and excluded from ranking calculation.
Markdy includes automatic fuzzy diagnostics across CLI, LSP, and MCP:
-
CLI Auto-Repair:
markdy fmt --fix system.markdy
-
Architecture Governance Lint:
markdy lint --arch-rules system.markdy
-
AST Architecture Diff:
markdy diff v1.markdy v2.markdy
Markdy is an open-source project by Hoang Yell · Licensed under MIT