Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guillempuche/actors-and-state-machine

Actor models and state machines in a React web thanks to XState v5 package
https://github.com/guillempuche/actors-and-state-machine

actor-framework actor-model state-machine xstate

Last synced: 7 days ago
JSON representation

Actor models and state machines in a React web thanks to XState v5 package

Awesome Lists containing this project

README

        

# React app using actor models and state machines from XState library

React app

[Watch the video explanation of the web and architecture](https://www.youtube.com/watch?v=rRoCzMdmQ4c)

## Run app

1. Install packages `npm i`
2. Run web `npm run dev`
3. Open the localhost on the browser

## Extra

### `ts-result`
[ts-result](https://www.npmjs.com/package/ts-results) is a TypeScript library that provides Result and Option objects, à la Rust. It allows for more expressive error handling and control flow. It helps in handling success and error states without relying on exceptions, making the code more predictable and easier to maintain.

### `@statelyai/inspect`
[@statelyai/inspect](https://www.npmjs.com/package/@statelyai/inspect) is a tool from Stately.ai that allows you to visualize and inspect XState state machines and actor models in real-time. It helps in debugging and understanding the state transitions and events in your application, providing a powerful way to develop and troubleshoot state machines.