Zero Dependencies • Type Safe • Thread Safe

State Management Reimagined

A bleeding-edge Rust state management library—engineered for performance, safety, and developer joy.

Thread Safety

Built with RwLock for bulletproof concurrent access.

Zero Overhead

Pure stdlib implementation with minimal runtime cost.

Type System Magic

Leveraging Rust's type system for maximum reliability.

A high-performance state management library for Rust, designed with safety and simplicity in mind.

use statia::{State, StateManager};

// Atomic state with reactive subscriptions
let counter = State::new(0);
counter.set(42);
assert_eq!(counter.get(), 42);

// Powerful state transformations
counter.map(|x| x * 2)
       .subscribe(|value| {
    println!("Transformed: {}", value);
});

Composable

Easy composition of complex state interactions.

Scalable

Designed for large-scale application architectures.

Flexible

Adaptable to various state management patterns.

Performant

Minimal overhead with efficient state updates.