Welcome to Storken
Storken is a minimal, type-safe, and LLM-friendly state management library for React 18+.
🚀 v3.0 Features
Storken v3.0 introduces groundbreaking features that make it the most developer-friendly state management solution for modern React applications.
Key Features
🚀 React 18 Ready
Built with useSyncExternalStore for optimal performance
📝 Full TypeScript
Complete type safety and IntelliSense support
🤖 LLM-Native
Predictable patterns perfect for AI-assisted development
📦 Tiny Bundle
Only 5KB minified + gzipped
Quick Example
import { create } from 'storken'
// Create your store
const [useStorken] = create({
initialValues: {
counter: 0,
user: null
}
})
// Use in your components
function Counter() {
const [count, setCount] = useStorken<number>('counter')
return (
<div>
<p>Count: {count}</p>
<button onClick={() => setCount(count + 1)}>Increment</button>
</div>
)
}
Installation
npm install storken
yarn add storken
bun add storken