Launched February 6, 2024
Awai
State management rethinked
FreeOpen SourceCode5,877 impressions#12 of its week
Library helps with organizing asynchronous logic and handling race conditions with ease. Its main goal is to completely extract business logics from UI layer.
Awai is a dependency-free state-management library that organizes asynchronous logic and handles race conditions by using promise-like events.
- for
- Frontend developers building complex async UI logic
- pricing
- open source
- license
- MIT
- v1.0.0-rc-89 months ago
- v1.0.0-rc-79 months ago
- v1.0.0-rc-69 months ago
works withReact
Key features
5 features of Awai
- AwaiEvent — Promise-like events that can be awaited repeatedly, replacing traditional event listeners.
- Scenarios — Helper to describe complex event sequences using async functions.
- State Nodes — Define reactive state with `state` and update it via `action` functions.
- Race-condition handling — Built-in mechanisms to manage concurrent async operations safely.
- Dependency-free — Works without external libraries, keeping bundle size minimal.
Use cases
- Manage todo list state with async actions
- Coordinate multiple API calls without race conditions
- Implement complex UI workflows that depend on sequential async events
Awai vs alternatives
Automock | Fluent CI | Node File Router | |||
|---|---|---|---|---|---|
| Best for | Promise-based async state handling | Simpler unit testing for TypeScript | TypeScript-based CI/CD pipelines | File-based routing for Node.js | React UI components for startups |
| Pricing | Open source | Free | Free | Free | Free |
| DevHunt upvotes | 3 | 148 | 158 | 123 | 54 |
| Launched | Feb 2024 | Jan 2023 | Jan 2024 | Jan 2023 | Jan 2023 |
- Awai vs Automock: Automock focuses on simplifying unit tests, while Awai manages async state logic.
- Awai vs Fluent CI: Fluent CI writes CI/CD pipelines, not state management like Awai.
- Awai vs Node File Router: Node File Router handles routing, whereas Awai handles async state and events.
- Awai vs Saas UI: Saas UI is a UI component library; Awai provides state management logic.
Awai FAQ
Do I need to use AwaiEvent directly in my code?+
Typically you use higher-level constructs like `state` and `action`; AwaiEvent is shown for illustration.
Is Awai compatible with TypeScript?+
Yes, the library provides TypeScript typings and examples.
How do I install Awai?+
Run `npm install awai` and import the needed functions.
Can Awai be used outside of React?+
Yes, it is framework-agnostic; React integration is optional.
Summarized by DevHunt from awai.js.org · Sep 28, 2026. Details may change; check the official site.
Automock
Fluent CI
Node File Router

.png?width=64)





