Mayank Deshpande / All posts

Draw Your Agents: A Visual AI Agent Builder That Runs Entirely in Your Browser

By Mayank Deshpande ·

Draw Your Agents canvas with a visual agent workflow

Draw Your Agents is a visual, drag-and-drop AI agent builder. You sketch an agent workflow on a canvas -- nodes, prompts, and connections -- and it compiles into a complete, runnable Python project targeting Google ADK (Agent Development Kit) or LangGraph. Pick your framework; the same diagram generates idiomatic code for either. No boilerplate, no framework wrangling, no code to write by hand.

The part I am most proud of: it runs entirely in your browser. It is a static page by design, so your prompts, schemas, and generated code never leave your machine -- there is no server, no sign-up, and nothing to install. Open the link, start drawing, and download a ready-to-run .zip.

Draw Your Agents visual builder UI -- a drag-and-drop canvas of AI agent nodes with a live ADK Python code preview
Draw Your Agents visual builder UI -- a drag-and-drop canvas of AI agent nodes with a live ADK Python code preview
The Draw Your Agents canvas: draw your agent graph on the left, watch runnable ADK Python generate on the right.

From Diagram to Deployable Agent in Three Steps

No more staring at a blank main.py. Building a multi-agent workflow comes down to three things you can do in minutes.

1. Draw

Drag agents, functions, routers, and loops from the palette onto the canvas. Rename anything in place -- references update automatically.

2. Wire

Connect nodes to define data flow, and drag schema fields straight into prompts as typed variable chips. A live validity pill tells you the instant the graph is sound.

3. Download

Pick your target -- ADK or LangGraph -- and watch the Python update live as you edit, then export a runnable .zip. pip install && python -m workflow and you are live.

Don't Take My Word for It — Draw One Here

A pocket-sized version of the canvas, embedded right in this post. Drag the nodes around, wire them output-to-input, and compile — the same draw → wire → download loop, minus the download. Try to wire a cycle and watch the validity pill push back.

Live demo · Draw a tiny agent workflowthe real tool, miniaturized

What Makes It Different

Two Frameworks, One Diagram

The same canvas compiles to Google ADK or LangGraph -- flip a target switch and the generator emits idiomatic code for either: ADK's positional Event piping and Workflow graphs, or LangGraph's shared TypedDict state and StateGraph wiring. Draw once, ship to whichever stack you prefer.

Drag-and-Drop Canvas

A real node-graph editor (powered by React Flow) with editable node names, free arrangement, and a distinctive "drafting table" blueprint UI that color-codes every node type.

Variable Chips in Prompts

Drag a schema field into an agent's prompt and it becomes a typed chip -- <Schema.field from node> -- that auto-wires the agent's input. No more copy-pasting variable names and hoping they match.

Live Code Preview

The generated Python project -- ADK or LangGraph -- recompiles on every edit, right in the browser. You always see exactly what you are shipping -- and validation findings surface inline before you export.

Self-Correcting Loop Node

Drop in a critic/reviser loop node -- a contained generate → critique → revise cycle that iterates until an LLM critic approves. It compiles to a real ADK orchestrator behind a single tidy node.

Under the palette sits a full node taxonomy -- everything you need to express a production agent workflow:

AgentFunctionRouterJoinHuman InputToolNested WorkflowLoop

The Look: Named After Bathory

The tool's dark, vellum-and-ink theme is named after Bathory -- the pioneering Swedish black-metal band Quorthon started in the 1980s. The aesthetic is a deliberate homage, not decoration.

A Palette Lifted From Record Sleeves

The colors descend from the base16 "Black Metal (Bathory)" scheme by metalelf0, whose tones evoke late-1980s extreme-metal cover art: pure-black paper, ash-grey lettering, a cold teal, and one burnt-orange ember.

Anti-Commercial by Design

Sharp corners, film grain, and CRT scanlines -- a pointed rejection of the neon, "vibrant", gamer-centric look of modern UI. The drafting-table blueprint grid is meant to feel made, not marketed.

Why "In Your Browser" Matters

Most no-code agent builders are SaaS products: you paste your prompts and proprietary logic into someone else's server. Draw Your Agents takes the opposite stance.

0
Servers

A single static page on GitHub Pages. All compilation happens client-side.

100%
Private

Your prompts, schemas, and generated code never leave your browser.

No
Sign-up

No account, no install, no telemetry. Open the link and build.

A Peek Under the Hood

You do not need to know any of this to use the tool -- but it is the foundation that keeps the generated code trustworthy.

One Graph IR, the Single Source of Truth

Every input -- your canvas edits today, draw.io diagrams tomorrow -- compiles down to one versioned JSON Graph IR. Validation, save/load, and both code generators (ADK and LangGraph) all operate on that single IR, never on raw UI state. It is the keystone the whole tool is built around.

TypeScript Codegen, Golden-File Tested

The IR runs through an edges compiler and per-node template fragments -- then import deduplication and Black formatting -- to assemble a real multi-module project. For ADK that's workflow.py, agents.py, functions.py, schemas.py, and more; for LangGraph it's graph.py, state.py, nodes.py, and a dry-run import check. Every generated project is pinned by golden-file tests and proven to construct against google-adk==2.0.0 and langgraph 1.x.

Typed, Nested Pydantic Schemas

Define schemas in the UI and nest them (customer: Customer); the validator rejects cycles and the generator emits the Pydantic models in dependency order. Data flow between agents is typed end to end.

Want the deep dive? The repo ships an architecture blueprint and an append-only decision log (40+ ADRs) explaining every non-obvious choice. Read the docs on GitHub ↗

What's Next

With dual-framework codegen, the loop node, editable names, and non-adjacent session-state variables all shipped, the next milestone is draw.io import -- turn an existing mxGraph diagram into a working agent workflow, so the whiteboard sketch you already have becomes runnable code. Beyond that: a Python fidelity service (Black + dry-run) and undo/redo.

Links

Open source under the GNU Affero General Public License v3.0.

Thank You!