Crystalline
Crystalline: Simple yet Powerful state management solution
Crystalline is a comprehensive state management library designed to simplify and enhance your state management practices. By providing a structured approach to defining state objects, Crystalline helps you build more robust, maintainable, and testable applications.
Why Use Crystalline?
Key Benefits
-
Enhanced Code Clarity: Crystalline streamlines state management code and state objects for improved readability.
-
Comprehensive State Definition: Define all necessary elements within your state, including data, status, operations, errors, and events, using a unified and efficient approach.
-
Comprehensive State Tracking: Crystalline empowers you to represent the entire lifecycle of a
Store
within your state. Whether an operation is in progress, completed successfully, or has encountered an error, you can explicitly define these states using Crystalline data types designed for defining state objects. This level of granularity can be applied to the entire state or only specific parts of it. -
State Composition: Compose a state from smaller, more manageable states.
-
Shared State: Seamlessly share states or parts of states across multiple
Stores
without compromising loose coupling or testability. -
Custom Operations: Crystalline supports generic operations CRUD operations. However, it also allows you to easily define any custom operations tailored to specific scenarios, such as "request access right", "apply coupon" and so forth.