@logos-ui/observer
v3.0.0
Published
A small, strongly-typed, powerful observer utility for the DOM or NodeJS
Downloads
155
Maintainers
Readme
Logos UI
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