Show HN: TermDOM – HTML, CSS and JavaScript (With a Real DOM) for TUIs and CLIs

bikeshaving 12 points 0 comments August 11, 2026
github.com · View on Hacker News

TermDOM renders a real DOM styled with real CSS to terminal cells. You build a document with createElement or innerHTML, or any frontend web framework, and it automatically produces colored ANSI output, with browser-style layout, text wrapping and flexbox included. The library can also be used to translate HTML to static ANSI. Full disclaimer: This project was started a year ago and written entirely by Claude. I mainly provided QA and words of encouragement (yelling).

Semantic search powered by Rivestack pgvector
4,128 stories · 37,281 chunks indexed