Built idea · Oct 18, 2026

Build Your Own Diagram Layout Engine

Built

This idea is live as Diagram Layout Engine.

See the app

Students parse a subset of Mermaid flowchart syntax and implement a full layered graph-drawing pipeline (cycle removal, layering, crossing minimization, coordinate assignment, edge routing) that emits themeable SVG, then add visual diffing between diagram versions.

What it does

Type a flowchart in Mermaid-style text and get a clean, readable diagram. It handles many shapes, link styles, nested groups and color styling, and points to the exact line and column when something won't parse. You can switch themes, export SVG or PNG, share a link, and compare two versions of a diagram with added, removed and changed parts highlighted. A step-by-step inspector shows how the layout was built, which makes it useful for teaching graph drawing. Limitation: grouped sections are placed as fixed boxes, so a heavily connected group can come out wider than other diagram tools would draw it.

More in Algorithms & Data Structures

Build Your Own Plate Solver

Students build a blind astrometry engine: give it a photo of the night sky and it finds exactly where in the sky the camera was pointing, using star detection, geometric hashing of star quads and a bright-star catalog.

Algorithms & Data StructuresClass assignmentLargeOct 9, 2026

Build Your Own Spreadsheet Engine

A staged course project where students build a working spreadsheet: formula tokenizer and parser, dependency graph, topological recalculation, cycle detection, undo/redo and a React grid on top.

Algorithms & Data StructuresClass assignmentLargeOct 6, 2026

Brick by Constraint

A multi-week graph algorithms assignment: students turn a voxel shape into a buildable LEGO model, using union-find for connectivity, a search over brick layouts, and a stability check, then export a real LDraw file.

Algorithms & Data StructuresClass assignmentLargeOct 4, 2026

Before the Sun Burns Out

Pick an algorithm and an input size, and watch its running time land on a log-scale timeline of the far future, from 'before your coffee cools' to 'after the last star dies'.

Algorithms & Data StructuresSide projectSmallOct 3, 2026

All 27 ideas in Algorithms & Data Structures →