Description

State Management Library

Overview

Reatom is a comprehensive logic and state manager designed for both lightweight widgets and large-scale SPAs.

Core Features

  • Simplicity & Power
    The library exposes three primary primitives—ctx, atom, and action. All additional features build upon these foundations.

  • Immutable & Reliable
    Every pure computation is processed with atomicity guarantees, ensuring consistent state updates.

  • Explicit Reactivity
    By employing an atomization pattern rather than proxies, Reatom achieves peak performance while maintaining clear reactivity semantics.

  • Robust Effects Management
    An advanced asynchronous package lets you describe complex flows—including caching, retrying, and automatic cancellation—using native await and AbortController.

  • Enhanced Debugging
    Each atom and action records updates to the context’s immutable call stack, simplifying debugging of intricate async workflows. A dedicated logger package further supports this effort.

  • Implicit Dependency Injection
    The context acts as an isolation layer, safeguarding tests and SSR environments. A testing package offers helpers for mocking and other utilities.

  • Lifecycle Hooks & Modularity
    Actor-like lifecycle hooks enable self‑sufficient models that promote true modularity across the application.

  • Optimized Bundle Size
    The core library is only ~2 KB gzipped, while the full ecosystem—including enterprise-level helpers—remains around 15 KB.

  • Superior TypeScript Experience
    Strong type inference is a top priority, delivering an excellent developer experience for TypeScript users.

Usage

The minimal core package can be incorporated into any project—from small libraries to extensive applications—without imposing significant overhead. Leveraging the well‑designed helper tools allows developers to tackle complex tasks with concise code, fostering a stable and balanced ecosystem that enhances developer productivity and ensures long-term maintainability.

Related Projects

RNRepo

RNRepo

React Native Pre-Built Artifacts

ReactUseKit

ReactUseKit

Collection of React Hooks & Helpers

React Native Builder Bob

React Native Builder Bob

Collection of Tools to Scaffold React Native Libraries

React Simplikit

React Simplikit

React Utility Library

Intlayer

Intlayer

Internationalization & Content Management Solution

React Native Legal

Generate License Acknowledgements