lazydraw is a terminal-based ASCII editor for rapidly sketching diagrams and exporting them as text or clipboard content. It provides a full-screen OpenTUI interface with a toolbar for box, select, arrow/line, text and eraser tools, plus undo/redo, export, and settings. Drawing operations support mouse and keyboard: drag to draw or resize, hold modifiers to flip elbow lines, type inline text with Enter for new lines, and nudge or delete selections. Export supports extended or basic characters, multiple comment styles, fenced Markdown, preview and copy. Autosave writes drawings to XDG data paths 500 ms after changes and again on quit. Visual options include grid styles, a choice of terminal-or-IDE color themes, and behavior like copy-on-select.
Installation and development target the Bun runtime (1.3+), with global install or bunx invocation and optional integration as a herdr pane plugin. Core drawing logic is pure TypeScript, ported from ASCIIFlow, while src/tui implements the terminal frontend on OpenTUI. Development commands include bun install/start/test/typecheck/build and produce a standalone binary. Tests include fixtures replayed from ASCIIFlow and upstream compatibility checks. Terminal notes cover tmux mouse/copy settings and macOS Option-as-Meta for Alt+digit bindings.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.