@logos-ui/state-machine

2.0.6 • Public • Published

Logos UI

Official website

A set of utilities brought together for the purpose of simplifying the building of User Interfaces. Built with a strong preference on web standards, simplicity and performance. We believe that the best way to achieve that is by using simpler tools that are more focused on the task at hand.

Nothing stops this from being used on a server-side rendered application, a static site generator, ReactJS, and react-native. It is built for both CJS and ESM environments. All modules are stubbed to work on the backend as well, so you can use them in NodeJS applications. Typings are included for TypeScript users.

This set of tools offers:

  • A state manager with
    • Type-safe states
    • Time-travel your states
    • Manipulate your states via reducers
    • Listen for state changes
    • Make child instance clones of your state manager
  • A storage manager
    • Type-safe storage
    • LocalStorage or AsyncStorage
    • Bring your own storage manager
  • An event emitter with advanced capabilities
    • Type-safe events
    • Event spying for debugging
    • Regex as event names
  • I18n utilities
    • Type-safe translations
  • A simple Fetch API wrapper
    • Type-safe responses
    • Request cancellation support
    • Options modification before sending for advanced use cases such as HMAC signing
  • A set of utilities for working with the DOM

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.6
    2
    • latest

Version History

Package Sidebar

Install

npm i @logos-ui/state-machine

Homepage

logosui.com/

Weekly Downloads

17

Version

2.0.6

License

BSD-3-Clause

Unpacked Size

38.7 kB

Total Files

7

Last publish

Collaborators

  • damusix