Stan.js
Lightweight and flexible state management library for React applications and vanilla JavaScript
Why Stan.js?
Stan.js provides a simple and powerful approach to state management without the complexity of traditional solutions
Performance Optimized
Minimal re-renders with intelligent subscription system that only updates components when their specific data changes
TypeScript First
Built with TypeScript for excellent IntelliSense and type safety. Get autocomplete for all your store values and actions
Built-in Persistence
Persist state to localStorage, sessionStorage, or React Native MMKV with a simple wrapper function
Simple Configuration
Create a store with a single function call. No boilerplate, no complex setup, just write your state
Zero Dependencies
Extremely lightweight with no external dependencies. Keep your bundle size small and focused
Universal Support
Works with React, React Native, Next.js SSR, Astro, and vanilla JavaScript. One solution for all platforms
Quick start
Get up and running with Stan.js in just a few steps
Create a store
Explore the documentation
Learn about core concepts and advanced features
Core Concepts
React Integration
Persistence
Vanilla JavaScript
TypeScript Guide
Performance Tips
Ready to get started?
Jump into the quickstart guide and build your first Stan.js application in minutes
Get Started Now