Socket
Book a DemoInstallSign in
Socket

awai

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awai

State management library

latest
Source
npmnpm
Version
1.0.0-rc-5
Version published
Maintainers
0
Created
Source

Awai

Dependency-free state management library


| Documentation | Examples | NPM | Awai-React |

About

This library introduces a fresh approach to state management, where every event is a thennable (promise-like) with no terminal state.

Awai provides variety of tools helping with organizing asynchronous logic, handling race conditions, and prioritizes the extraction of business logic from the UI layer.

Installation

npm install awai

Documentation

  • Quick start
  • Architecture
  • Examples
  • Tools:
    • State - simple node which stores data
    • AsyncState - helps with storing data loaded asynchronously protecting against race conditions
    • Selector - combines multiple states into a single value. Handles async loading and protects against race conditions
    • Action - function wrapper which emits events; is helpful for controlling scenarios
    • Scenario - composable event listener which allows to declaratively write logic in a saga-like way using async functions
    • FamilyState - aggregator of multiple states of the same type; handles both sync and async states
    • Effect - runs callback on dependency states change and cleans up previous effects
  • Other

Integrations

Keywords

state

FAQs

Package last updated on 29 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts