Type what blocks what and get a laid-out graph back: layered automatically, cycles found and called out, a topological order to work in, and the critical path measured in your own units. Exports Mermaid for your docs and SVG for a slide.
a -> b means a blocks b. Put several on the right: a -> b, c.
Label and annotate a node on its own line: a: Build the parser [3] (wip).
States: todo · wip · done · blocked. Lines starting # are ignored.
The longest chain of dependent work. Shortening anything else does not move the end date.
A topological order — every item appears after everything it depends on.
A dependency graph models work items as nodes and "must finish before" relationships as directed edges. When the graph contains no cycles it is a directed acyclic graph (DAG), and two useful results follow. A topological order is a sequence in which every item appears after everything it depends on, which is a safe order to work in. The critical path is the chain of dependent items with the largest total estimate; it sets the shortest possible duration for the whole plan, assuming independent work runs in parallel. Shortening a task off the critical path does not move the end date, while any slip on it moves everything.
This tool parses a small text syntax, finds cycles with a depth-first search, places each node in a column equal to its longest distance from a starting node, and reduces edge crossings before drawing the graph left to right as SVG. Your source text is saved to this browser's localStorage and nothing is sent to a server.
a -> b means a blocks b, and a -> b, c adds several edges at oncea: Build the parser [3] (wip) sets the label, an estimate of 3 and a state of todo, wip, done or blocked. Lines starting with # are ignoredgraph LR definition to the clipboard, or "⬇ SVG" to download the drawingEach node's estimate (the number in square brackets, defaulting to 1 when omitted) is summed along every path through the acyclic part of the graph, visiting nodes in topological order, and the path with the largest total is reported. This is the longest-path step of the critical path method, without float or calendar dates. Node state does not change the calculation, so a done item still contributes its estimate; set it to [0] if you only want to measure the remaining work. Units is just a label, so days, hours or points all work.
Items in a cycle can never start, because each one waits on another. The tool lists up to four cycles and draws the edges that close them dashed in red. Those edges are excluded from ordering and the critical path so the rest of the plan stays readable, but treat the order as provisional until you break the loop.
Every node with its label, every edge, a green stroke on done nodes, and the critical path as a %% comment. Characters in node IDs that Mermaid rejects become underscores. If clipboard access is blocked, the definition downloads as dependency-graph.mmd.