Effect Atom is a reactive state management library that brings the power of Effect to frontend applications. It provides a composable, type-safe way to manage both synchronous and asynchronous state with first-class support for React, Vue, and Solid.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/tim-smart/effect-atom/llms.txt
Use this file to discover all available pages before exploring further.
What is Effect Atom?
Effect Atom extends the Effect ecosystem to frontend state management, allowing you to:- Manage reactive state with automatic dependency tracking and updates
- Work with async operations using Effect’s powerful error handling and composition
- Compose state from multiple sources with derived atoms
- Integrate services using Effect’s dependency injection
- Handle side effects with proper resource cleanup using Scope
Why Effect Atom?
Type-safe by default
Built on Effect’s type system for complete type safety across sync and async operations
Effect integration
Use Effect services, layers, and streams directly in your state management
Automatic cleanup
Resources are cleaned up automatically when atoms are no longer used
Framework agnostic core
Core library works with React, Vue, Solid, or build your own adapter
Key features
Reactive primitives
Create atoms that automatically track dependencies and trigger updates:Effect integration
Work seamlessly with Effect services and async operations:Result type for async state
Handle loading, error, and success states elegantly:Streams and subscriptions
Work with Effect streams for real-time data:Get started
Quickstart
Build your first counter in 5 minutes
Installation
Install Effect Atom for your framework
Core concepts
Learn about atoms, derivation, and effects
API reference
Explore the full API documentation