Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

awai

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awai

State management library

  • 1.0.0-rc-3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
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

FAQs

Package last updated on 03 Jan 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc