Ink Render Pipeline

Description

5-stage rendering pipeline that turns React components into terminal output: (1) src/ink.ts exposes render()/createRoot() wrapped with ThemeProvider; (2) src/ink/root.ts creates an Ink root and mounts the React tree; (3) src/ink/reconciler.ts drives a custom React reconciler targeting terminal nodes; (4) src/ink/dom.ts models terminal 'DOM' nodes; (5) src/ink/renderer.ts converts the virtual DOM to terminal strings, handling flexbox via Yoga and colors via chalk/ansi. Common failure modes during rebuild: missing yoga-wasm-web, React 19 reconciler mismatch, non-TTY stdout, missing chalk.

Key claims

Relations

Sources

src-20260420-587410d57b8e