Package Managers
Requirements
Stan.js has minimal requirements and works out of the box with:- React: 18.2.0 or higher (optional)
- Node.js: Any modern version supporting ES modules
- TypeScript: Full TypeScript support with excellent IntelliSense
React is listed as an optional peer dependency. You can use stan-js in vanilla JavaScript projects without React.
Additional Packages
Stan.js provides additional entry points for specific features:Storage & Persistence
For built-in data persistence using localStorage or React Native MMKV:Vanilla JavaScript
For using stan-js without React:React Native MMKV (Optional)
If you want to use MMKV storage in React Native applications:react-native-mmkv is an optional peer dependency. Only install it if you’re building a React Native app and want to use MMKV for storage.Verify Installation
After installation, verify that stan-js is properly installed by creating a simple store:Next Steps
Quickstart Guide
Learn the basics with a complete quickstart tutorial
API Reference
Explore the full API documentation