BUILD ONCE, RUN EVERYWHERE.
TX-2 is a complete ecosystem for building applications where the same Entity-Component-System world runs everywhere - web, native, CLI - with automatic synchronization, persistence, and time-travel debugging.
In 1963, Ivan Sutherland drew on a phosphor display with the TX-2 light pen and built the first interactive ECS. TX-2 brings that architecture to the modern web: isomorphic logic, zero bloat, precise control.
World-First Design
The ECS world is the source of truth. Everything else (databases, files, UI state) is derived. No ORM, no separate state, no impedance mismatch.
Isomorphic State
The same component definitions work in Rust and TypeScript. tx2-link handles the synchronization.
Pure ECS
Components are data, systems are logic, strictly separated. No component methods, no inheritance, no hidden state.
Deterministic Simulation
Systems execute in defined order with fixed timestep. Reproducible, replayable, and testable.
1. tx2-ecs (TypeScript/Node)
The web runtime with reactive rendering, SSR, DOM rendering, and network sync with delta compression.
Repo2. tx2-core (Rust)
The native engine for desktop/high-perf apps. Type-safe ECS, wgpu rendering, cross-platform windowing.
Repo3. tx2-link (Rust)
Bridge protocol for syncing worlds. Field-level delta compression (1171x), rate limiting, multiple formats.
Repo4. tx2-pack (Rust)
Binary world snapshot format for persistence and time-travel. Compression, encryption, checkpoints.
Repo5. tx2-query (Rust)
SQL analytics layer. One-way ECS -> SQL sync, auto schema generation, PostgreSQL/SQLite backends.
Repo6. tx2-cli (Rust)
CLI for inspecting, debugging, and managing apps. Snapshot management, SQL analytics, TUI mode.
Repo1. Server ↔ Browser
tx2-core (Rust server) ↔ tx2-ecs (browser). Via tx2-link over WebSocket. Delta compressed updates.
2. Native ↔ Webview
tx2-core (Rust) ↔ tx2-ecs (embedded webview). Via tx2-link over IPC. For hybrid desktop apps.
3. Process ↔ CLI
tx2-core (server) ↔ CLI tools. Via tx2-link over stdio pipes. For debugging and scripting.
4. Persistence
Any runtime → tx2-pack. Save/load checkpoints. Time-travel replay.
5. Analytics
tx2-core → tx2-query → SQL databases. One-way ECS synchronization. BI tools and dashboards.
Multiplayer Games
Authoritative server (tx2-core), client prediction, admin dashboard (tx2-ecs), and analytics (tx2-query).
Agent IDEs
Agent execution environment, code editor UI, time-travel debugging, and session persistence.
Collaborative Apps
Real-time sync, offline support, conflict resolution, and version history with undo/redo.
Simulations
High-performance simulation, 3D/Web visualization, replay, and data export.
SSR Hydration
This page is server rendered via TX-2 and hydrated on load. No extra framework.
View Render