Skip to main content

SoulState

The Zero-Overhead State of Mind

A minimalist, high-performance state management library for React and vanilla JS. Re-engineered core focused on extreme performance and zero overhead.

Built for Performance

19.1x
Faster than alternatives
< 1KB
Zero dependencies
O(1)
Unsubscribe complexity
0
Memory allocation
Microtask batching
🔒
Mutation guard

Get Started in 60 Seconds

1. Install

npm install soulstate

2. Create Store

import { createStore } from 'soulstate';

export const useCounterStore = createStore({
count: 0,
increment: () => useCounterStore.set(state => ({ count: state.count + 1 }))
});

3. Use in React

import { useStore } from 'soulstate/react';
import { useCounterStore } from './store';

function Counter() {
const count = useStore(useCounterStore, s => s.count);
const increment = useStore(useCounterStore, s => s.increment);

return (
<div>
<h1>{count}</h1>
<button onClick={increment}>+1</button>
</div>
);
}

Everything You Need

TypeScript Ready

Full type inference and safety

SSR Support

Next.js and server-side rendering ready

Middleware

Extend with logging, persistence, and more

Vanilla JS

Works great without React too

Tree Shaking

Only bundle what you use

DevTools

Development mode with mutation guards

Ready to Build Faster?

Join developers who have made the switch to SoulState and experience the performance difference.

Start Building with SoulState