TermDOM – HTML, CSS and JavaScript (With a Real DOM) for TUIs and CLIs
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).
In plain words
TermDOM is a JavaScript/TypeScript library that renders HTML and CSS to terminal output. Developers can build terminal user interfaces and command-line applications using standard DOM methods and CSS styling, with the library automatically converting them to colored ANSI output. It supports browser-style layout, text wrapping, and flexbox, and works with vanilla JavaScript or frontend frameworks. The library can also translate HTML to static ANSI text.
written from the facts on this page · September 2026
From the sources
Build terminal apps with HTML, CSS and DOM. Contribute to bikeshaving/termdom development by creating an account on GitHub.
TermDOM is a JavaScript/TypeScript library that renders HTML and CSS to the terminal. It draws actual DOM nodes to terminal output and redraws the screen when they are mutated, so TUIs and interactive CLIs can be written with vanilla JavaScript, or any frontend web framework or library. npm install @b9g/termdom import { TermDOM } from "@b9g/termdom" ; const term = new TermDOM ( ) ; term . attach ( ) ; // The document is a real DOM document. const { document } = term ; document . body . innerHTML = ` <style> .card { border: 1px solid #5fafff; padding: 0 1ch; width: 36ch; } .title { color: #5fafff; font-weight: bold; } .done { color: green; } .rest { color: #444; } .pct { color: #888; }…from github.com
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 2d ago · opentrailpaper.com

Launched alongside, August 2026
the whole month →- TL
Life & fun · 10d ago · louisabraham.github.io


- SA
Hello HN! I found that picking out plausible but diverse skin tones for my digital art and game development projects was kind of difficult, and I got curious about if there was a way to define a color space that made it easy. I've built a color picker and procedural generation algorithm based on the space as well as a bunch of other fun js features and demos throughout the page that use the equations. If you find it interesting, I have lots of explanations of how I built it and what properties the space has. The methodology might be a bit shaky, but hopefully the result is as helpful for…
Life & fun · Aug 2026 · toneyalexander.github.io


I trained a 125M-parameter transformer to autocomplete piano performances in real time (~108 notes/sec on an iPhone 15). The idea is basically GitHub Copilot or Tabnine, except instead of prompting it with code, you prompt it by playing a few notes on a MIDI piano. The model then continues what you played, entirely on-device. The app is free if anyone wants to try it. Happy to answer questions about the model, training, Core ML, or the many things that didn't work.
AI · 17d ago · simedw.com