whereismyai
Yantra
Yantra: Diagram tool that turns JSON descriptions into interactive architecture diagrams and flowcharts saved as offline HTML files.
Yantra is an open-source diagram tool that turns short JSON descriptions into interactive architecture diagrams, flowcharts, sequence diagrams, state machines, ER diagrams, org charts, mind maps, and one-page answers with charts. It automatically handles layout, edge routing, and label placement without manual coordinate setting. A built-in validator checks for broken references, overlaps, and label collisions, reporting stable codes that coding agents can fix. The output ships as a single offline HTML file requiring no network requests, with support for SVG, PNG, and Markdown exports. It runs from the command line, through coding agents via MCP, in browser playgrounds, or via Python.
Yantra at a glance
- Best for: Software engineer, Product manager
- Runs on: Web, CLI, API, Python, Node.js, self-hosted, open source
- Pricing: Free and open source
- Released: October 2026
- Category: AI coding tool
- Website: github.com/niyankhadka/yantra
Key features
- Automatic layered layout and orthogonal edge routing
- Built-in validator checking references and overlaps
- Single offline HTML file export with no network requests
- Import from Mermaid, PlantUML, draw.io, and Visio
- Interactive walkthroughs with steps and autoplay
- Support for architecture, flow, sequence, and state diagrams
- Command line interface and Python SDK
- Model Context Protocol (MCP) server integration
Use it for
- Draw architecture diagrams from JSON descriptions
- Convert existing Mermaid or PlantUML files
- Build diagrams using coding agents with MCP
- Generate step-by-step walkthroughs for processes
Alternatives to Yantra
- Draw.io Skill — Synchronizes diagrams with code changes without discarding manual layout adjustments.
- OpenFlowKit 2 — Generates architecture diagrams automatically from GitHub repositories and code files.
- SeeCode — Turns agent specs into animated, interactive HTML diagrams with multiple export options.
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Magpie — It enables AI agents to use models not natively supported by their internal protocols.
- Markdown Viewer Skills — Extends AI coding agents with structured visualization capabilities.
- Code to Flow — Visualizes complex programming logic through interactive diagrams instantly.
- Diagramly — Generates hand-drawn diagrams instantly from plain text or AI prompts without sign-up.
- pstack — Improves AI coding agent outcomes with rigorous workflows.
- Flowstep — Generates interactive multi-screen UI directly from text prompts, specs, or code.
- Jantt — Generates structured schedules for AI agents with fewer tokens.
- Enola — Generates a deterministic graph of system architecture locally without AI.
All Yantra alternatives