Build reactive models that bring your application’s state and behavior together, then connect them to your interface.
pnpm add @virentia/coreVirentia is open source and available under the MIT license.
Virentia connects state, events, and effects so your logic stays clear as your application grows.
State, events, and rules work independently of components, so you can connect the same model to different interfaces.
The Virentia philosophyEach model instance has its own state for your application, an isolated test, or an individual server request.
Explore scopesDescribe loading, error handling, and cancellation alongside the rest of your application’s behavior.
Explore effectsHow it works
In this counter, an event triggers a reaction that updates the store. The React component uses the model while the counter’s behavior stays inside it.
Explore the coreimport { event, reaction, store } from "@virentia/core";
export function createCounterModel() {
const incremented = event<void>();
const count = store(0);
reaction({
on: incremented,
run() {
count.value += 1;
},
});
return { count, incremented };
}Performance
From changing data to updating the interface. Compare Virentia with Immer, MobX, Reatom, Effector, Redux, React, Vue, Solid, and $mol, inspect the conditions, and run the same code yourself.
An array of 50,000 objects lives across updates. Each update increments one field on a selected set of items.
Each update changes 1,000 evenly spaced items.
How mutable worksLaptop: Apple M1 Max, 10 cores · Node 24.14.0
Median of 5 separate, warmed-up processes.
Virentia draft reuses owned objects; Immer and Mutative produce immutable results. Freezing is disabled in both libraries. This measures the draft engine without reactive subscribers or the full store runtime.
Measured on November 8, 2026. Library snapshot fc3378e plus uncommitted working-tree changes.
The ecosystem
Use the reactive core on its own or add packages that connect it to your interface and existing models.
Define your application’s logic with state, events, effects, and rules.
@virentia/coreBring your models into components with hooks and scoped bindings.
@virentia/reactBuild interfaces with compiled JSX and fine-grained DOM updates.
@virentia/uiBring existing Effector models along and connect them to Virentia.
@virentia/effectorFollow the guide to create your first model in TypeScript.
Get started