One world, many views.

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.

LIVE SYSTEM // ECS
HYDRATIONReady
TICK / FPS
Signal Demo: awaiting hydration...
WHY TX-2

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.

THE STACK

1. tx2-ecs (TypeScript/Node)

The web runtime with reactive rendering, SSR, DOM rendering, and network sync with delta compression.

Repo

2. tx2-core (Rust)

The native engine for desktop/high-perf apps. Type-safe ECS, wgpu rendering, cross-platform windowing.

Repo

3. tx2-link (Rust)

Bridge protocol for syncing worlds. Field-level delta compression (1171x), rate limiting, multiple formats.

Repo

4. tx2-pack (Rust)

Binary world snapshot format for persistence and time-travel. Compression, encryption, checkpoints.

Repo

5. tx2-query (Rust)

SQL analytics layer. One-way ECS -> SQL sync, auto schema generation, PostgreSQL/SQLite backends.

Repo

6. tx2-cli (Rust)

CLI for inspecting, debugging, and managing apps. Snapshot management, SQL analytics, TUI mode.

Repo
HOW IT ALL FITS TOGETHER

1. 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.

USE CASES

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.

EXAMPLES

Live Counter

Reactive signal demo running inside this page. Watch the HUD tick.

Open HUD

SSR Hydration

This page is server rendered via TX-2 and hydrated on load. No extra framework.

View Render

Particle Field

Pointer-reactive neon particle field driven by signals.

Run Demo
© 2025 TX-2 // Built with tx2-ecsSketchpad → TX-2 → Web