Read Docs
Learn everything you need to know about Quantum state management. From installation to advanced patterns.
Documentation
Installation
Get started with Quantum in less than 5 minutes. Our simple installation process has you up and running with zero configuration.
npm install quantumCode Examples
import { createStore } from 'quantum'
const store = createStore({
state: { count: 0 },
actions: {
increment: () => ({ count: state.count + 1 }),
decrement: () => ({ count: state.count - 1 })
}
})Use with Different Stacks
react
Use the @quantum/react package for React integration with hooks support.
vue
Use the @quantum/vue package for Vue 3 composition API integration.
svelte
Use the @quantum/svelte package for Svelte store integration.
angular
Use the @quantum/angular package for dependency injection integration.
Core Concepts
State Machine
Quantum uses a predictable state machine pattern to ensure your application state is always consistent and predictable.
Actions
Define pure functions that transform your state. Actions are the only way to update state in Quantum.
Selectors
Create derived state from your store using selectors. They're memoized and incredibly efficient.
Ready to Build?
Start using Quantum in your next project. It takes just minutes to set up.