AI UML diagram generator.
In practice teams use about four of UML's fourteen diagram types, and this draws those four properly rather than all of them badly.
The UML worth using
UML defines fourteen diagram types and working teams use a handful: sequence for interactions, component for structure, class for domain models, and state for anything with a lifecycle. The others are either specialised or have been quietly replaced by better-fitting conventions such as C4. Treating UML as a vocabulary to borrow from rather than a standard to comply with is what keeps it useful.
How Lucid Train draws one
Describe what you want, or point it at a repository. The agent emits a semantic graph of nodes and edges with no coordinates, and the ELK layout engine computes positions and orthogonal routing. That separation is the reason the output cannot come back with boxes overlapping or arrows crossing through cards, which is the characteristic failure when a language model is asked to place things on a canvas itself. It also means editing is editing the graph: change a component and the layout re-solves rather than drifting out of alignment.
State diagrams are the underused one
Anything with a status column has a state machine, and it is almost never written down: orders, subscriptions, deployments, tickets. Drawing the states and the permitted transitions usually reveals transitions the code allows that nobody intended, which makes this one of the few diagram types that regularly finds bugs.
Specification compliance is not the goal
This produces diagrams that read correctly to an engineer familiar with UML, not diagrams that would pass validation against the specification. If you need formal UML for a regulated deliverable or model-driven code generation, a dedicated modelling tool is the right choice and this is not it.
Local, offline, your models
It runs as a desktop application. Against a local Ollama model the whole thing works offline with no API key and no telemetry, which is the practical difference from every browser-based diagram tool: your architecture never leaves the machine.
UML types, and whether they earn their place
| Type | Use it for | In practice |
|---|---|---|
| Sequence | Interactions over time | Genuinely useful, widely used |
| Component | Structure and interfaces | Useful, often replaced by C4 containers |
| Class | Domain models | Useful for the model, rarely for the code |
| State machine | Lifecycles and transitions | Underused, frequently finds real bugs |
| Activity | Process flow | A flowchart with more notation |
| Use case | Actors and goals | Rare in engineering practice |
| Deployment | Where things run | Usually better as an infrastructure diagram |
Try it
Questions
Related
- AI Architecture Diagram GeneratorDescribe the system, or point it at the repository and let it find out for itself.
- AI System Design Diagram GeneratorFor a design doc, a review, or the whiteboard round where you have forty minutes and need the shape to be right.
- AI Sequence Diagram GeneratorFor when the question is not what the components are but in what order they talk, and what happens when step four fails.
- AI ER Diagram GeneratorPoint it at the schema you already have. The relationships are declared, so the diagram is a rendering rather than an interpretation.