ALL INTELLIGENCE
Hacker News AIT2·Tools

Text.js Renders Full-Stack React Apps Inside console.log

Original title: Text.js: Build full-stack React apps that render inside console.log
58AI Score

Text.js introduces the Turbolog engine, which uses a custom React reconciler, Yoga layout, dirty-row gating and RLE encoding to turn each changed frame into a single console.log call, avoiding clear-screen flicker. A 100×32 dashboard repaints in about 0.163ms, a one-row edit in 0.011ms, and idle frames cost zero calls.

Full Report

Contents8 sections

Every changed frame is one console.log call

A commit that changes no cells never reaches the console.

  1. React 19
Text
<Box>
 ├ <Text>
 └ <Text> 1

01Commit

React commits through a custom reconciler. 2. Yoga

02Layout

Yoga lays out boxes on whole cells. 3. CellBuffer

03Paint

Only damaged rows repaint. 4. Row hash9f1c08e2a07e5b3131b2c4d9e8d046fa0 calls · 0 B

04Dirty gate

Unchanged frames stop here. 5. RLE

05Encode

3,200 cells become 149 %c spans. 6. console.log

06Emit

Frames are appended at least 66ms apart.

Changed frame Unchanged frame, 0 calls

Appended frames

Clearing the console before each frame leaves it blank until DevTools paints the next one. Turbolog appends each frame instead.

Read the postclear() + log()70.6% blanklog(), appended1.0% blank0.163msFull repaint (layout, paint, encode)0.011msOne-row edit, such as a keystroke0 callsIdle frame149 spans%c arguments for 3,200 cells100×32 dashboard, mean of 1,000 frames · Apple M5 Pro · Bun 1.4.4Turbolog engine docs