Skip to content

yobta/stores

Repository files navigation

Yobta Stores

A collection of tiny, observable stores designed to move logic away from components and help write reactive applications. These stores are:

  • Small in size.
  • Tree-shakable for optimal performance.
  • Zero dependencies, so you don't have to worry about other libraries affecting your code.
  • ESM-only, meaning they are compatible with ECMAScript Modules.
  • Typescript compatible.

Installation

To install Yobta Stores, use the following command:

npm i @yobta/stores

Documentation

The following sections provide documentation on different parts of Yobta Stores:

Stores

  • Basic - A general observable store for implementing any custom logic you need.
  • Machine - A simple observable state machine.
  • Map - An observable Map object.
  • Connectivity - Tracks the browser's connectivity state.
  • Modal - Tracks the browser's connectivity state.
  • Plain Object - An observable plain object.
  • Stack - An observable stack object.
  • Derived - Aggregates data from one or multiple stores.

Plugins

Adapters

Utilities

Alternatives: Jotai Nanostores Recoil

Kudos:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published