https://github.com/web-pacotes/reactor
Reactive state manager based on Flutter Bloc library
https://github.com/web-pacotes/reactor
Last synced: 3 months ago
JSON representation
Reactive state manager based on Flutter Bloc library
- Host: GitHub
- URL: https://github.com/web-pacotes/reactor
- Owner: web-pacotes
- License: mit
- Created: 2024-03-30T09:23:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T08:00:06.000Z (about 2 years ago)
- Last Synced: 2025-12-27T08:26:55.326Z (6 months ago)
- Language: TypeScript
- Size: 421 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reactor
Reactive state manager based on Flutter Bloc library
## What?
For the last couple of months I've been working on web frontend projects (primarily with Svelte),
and been struggling to find a state manager that clearly separates domain/application logic of UI.
One of the solutions I've worked with in the past that achieves it is the [bloc library](https://bloclibrary.dev/). I
really like it for three main reasons:
- it's declarative and reactive
- provides a clean API
- segregates UI actions and updates in two basic elements: events and state
The bloc library was developed for Flutter and it's internals, and not considering JS frameworks such as Svelte or
React. I couldn't find a complete port of the library, so I've decided to port in different frameworks that I work with,
by maintaining the library API and goals, but stripping down everything that I feel is not needed.
Since this library is a semi-port of the bloc library, it wouldn't be fair to maintain the original name (bloc). The
name **reactor** is inspired by the library mechanics of reacting to events to mapping them as states to then reacting
to each state on the UI.
## How to use
Currently, the library is available on the following frameworks. For a quick-start on how to use each library, visit
their `README.md`:
- [Svelte](packages/reactor-svelte/README.md)
---
## Bugs and Contributions
Found any bug (including typos) in the package? Do you have any suggestion
or feature to include for future releases? Please create an issue via
GitHub in order to track each contribution. Also, pull requests are very
welcome!