# TermDOM – HTML, CSS and JavaScript (With a Real DOM) for TU…

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 t…

- **Page:** https://magpie.gallery/i/termdom-html-css-and-javascript-with-a-real-dom-fo-6jc5
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** windows, macos, linux
- **Tags:** terminal, dom, css, tui, ansi

## Source

Web · bikeshaving: TermDOM – HTML, CSS and JavaScript (With a Real DOM) for TUIs and CLIs

- **Original:** https://news.ycombinator.com/item?id=49261987

> 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). https://github.com/bikeshaving/termdom

## GitHub projects

- https://github.com/bikeshaving/termdom

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
