MCPcopy Index your code
hub / github.com/SandroMaglione/getting-started-xstate-and-effect

github.com/SandroMaglione/getting-started-xstate-and-effect @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
53 symbols 117 edges 42 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

XState & Effect

GitHub: SandroMaglione Twitter: SandroMaglione


This project is part of my weekly newsletter at sandromaglione.com.

sandromaglione.com Newsletter weekly project

Project structure

The project contains 3 workspace apps: - first-example: My initial exploration with all the features of XState and state machines. I was specifically interested in working with types to try making the machine as type-safe as possible - audio-player-react: This is the implementation of the weekly project. It contains a Vite app that uses XState and Effect to implement an audio player (<audio>) - machine.ts: XState machine - effect.ts: actions of the machine implemented using Effect - App.tsx: react component that uses the state machine to render the audio player and send events - actor-emit-events: Vite app example for emitting events from actors.

Read all the details of the audio player implementation and how to use XState and Effect in the full article 👇

Read the full article on my website

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 33
Class 16
Interface 4

Languages

TypeScript100%

Modules by API surface

apps/audio-player-effect-xstate/src/services/media-player.ts10 symbols
apps/audio-player-react/src/effect.ts9 symbols
apps/todo-sync-reactivity/src/todo-components.tsx4 symbols
apps/todo-sync-reactivity/src/Sync.tsx4 symbols
apps/todo-sync-reactivity/src/Ref.tsx4 symbols
apps/todo-sync-reactivity/src/app-sync.ts3 symbols
apps/actor-emit-events/src/App.tsx3 symbols
apps/todo-sync-reactivity/src/todo-api.ts2 symbols
apps/first-example/src/index.ts2 symbols
apps/audio-player-effect-xstate/src/components/RenderCount.tsx2 symbols
apps/todo-sync-reactivity/src/App.tsx1 symbols
apps/audio-player-react/src/machine-types.ts1 symbols

For agents

$ claude mcp add getting-started-xstate-and-effect \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page