Architecture

System design and conceptual overview.

System Overview

rte is a terminal-based React rendering engine that captures, stores, and replays React component render states in a deterministic environment.

React ComponentReconcilerFrame BufferCLI Output

Frame Store

Session (JSON)

Core Components

1. React Reconciler (src/core/)

2. Yoga Layout Engine (src/layout/)

3. Frame Buffer (src/renderer/)

4. Causality System (src/deterministic/)

Rendering Pipeline

  1. Component Mount/Update → React calls reconciler
  2. Reconciler Processing → Creates element tree
  3. Layout Calculation → Yoga computes positions
  4. Frame Generation → Buffer renders to text
  5. Frame Storage → Session captures frame
  6. Output → CLI displays frame

Session System

A session is a JSON file containing:

Capabilities

v1.0.0 Capabilities

Known Limitations