reactive-engine
Installation
SKILL.md
Reactive Engine
A reactive state system built on a graph of typed nodes. Five packages compose:
| Package | Provides |
|---|---|
@virtuoso.dev/reactive-engine-core |
Nodes (Cell, Stream, Trigger, Resource, DerivedCell), Engine, operators, combinators, the e namespace |
@virtuoso.dev/reactive-engine-react |
EngineProvider, state hooks, local and remote diagnostic hooks |
@virtuoso.dev/reactive-engine-query |
Query and Mutation data fetching on top of nodes |
@virtuoso.dev/reactive-engine-router |
Route, Layout, Guard, Router — routes are nodes |
@virtuoso.dev/reactive-engine-storage |
linkCellToStorage (localStorage / sessionStorage / cookie) |
It also powers @virtuoso.dev/data-table internally — the same concepts apply when remote-controlling the table, and data-table's architecture is the reference for building on the engine (building-on-the-engine).
Mental model: nodes are definitions, engines hold state
Node constructors return inert references (symbols at runtime), defined at module scope with a $ suffix. They hold no state. An Engine instance activates nodes lazily on first use and owns their values — two engines using the same node have independent state. This is what makes engine-based libraries reusable: one module-scope graph, one engine per component instance.