{"id":23674510,"url":"https://github.com/SandroMaglione/getting-started-xstate-and-effect","last_synced_at":"2025-09-02T03:30:53.999Z","repository":{"id":212602682,"uuid":"731889832","full_name":"SandroMaglione/getting-started-xstate-and-effect","owner":"SandroMaglione","description":"Learn how to use all the features of XState in combination with the power of Effect・Newsletter sandromaglione.com","archived":false,"fork":false,"pushed_at":"2024-05-15T10:12:36.000Z","size":87,"stargazers_count":70,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-17T18:30:30.988Z","etag":null,"topics":["effect","effect-schema","functional-programming","xstate","xstate-fsm","xstate-react"],"latest_commit_sha":null,"homepage":"https://www.sandromaglione.com/newsletter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SandroMaglione.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-15T05:50:31.000Z","updated_at":"2025-08-04T17:57:24.000Z","dependencies_parsed_at":"2023-12-21T07:52:40.154Z","dependency_job_id":"b962fbe0-c3f0-437a-bea4-0e55b5402326","html_url":"https://github.com/SandroMaglione/getting-started-xstate-and-effect","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"e1c590478b639b07e25a2668bff24fd2099703b5"},"previous_names":["sandromaglione/getting-started-xstate-and-effect"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SandroMaglione/getting-started-xstate-and-effect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Fgetting-started-xstate-and-effect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Fgetting-started-xstate-and-effect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Fgetting-started-xstate-and-effect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Fgetting-started-xstate-and-effect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SandroMaglione","download_url":"https://codeload.github.com/SandroMaglione/getting-started-xstate-and-effect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Fgetting-started-xstate-and-effect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273224887,"owners_count":25067182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["effect","effect-schema","functional-programming","xstate","xstate-fsm","xstate-react"],"created_at":"2024-12-29T13:07:02.094Z","updated_at":"2025-09-02T03:30:53.732Z","avatar_url":"https://github.com/SandroMaglione.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# `XState \u0026 Effect`\n\u003cp\u003e\n  \u003ca href=\"https://github.com/SandroMaglione\"\u003e\n    \u003cimg alt=\"GitHub: SandroMaglione\" src=\"https://img.shields.io/github/followers/SandroMaglione?label=Follow\u0026style=social\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/SandroMaglione\"\u003e\n    \u003cimg alt=\"Twitter: SandroMaglione\" src=\"https://img.shields.io/twitter/follow/SandroMaglione.svg?style=social\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n***\n\nThis project is part of my weekly newsletter at [**sandromaglione.com**](https://www.sandromaglione.com/newsletter?ref=Github\u0026utm_medium=newsletter_project\u0026utm_term=xstate\u0026utm_term=effect).\n\n\n\u003ca href=\"https://www.sandromaglione.com/newsletter?ref=Github\u0026utm_medium=newsletter_project\u0026utm_term=xstate\u0026utm_term=effect\"\u003e\n    \u003cimg alt=\"sandromaglione.com Newsletter weekly project\" src=\"https://www.sandromaglione.com/static/images/newsletter_banner.webp\" target=\"_blank\" /\u003e \n\u003c/a\u003e\n\n## Project structure\nThe project contains 2 folders:\n- [`first-example`](./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\n- [`audio-player-react`](./audio-player-react/): This is the implementation of the weekly project. It contains a Vite app that uses **XState and Effect to implement and audio player** (`\u003caudio\u003e`)\n  - [`machine.ts`](./audio-player-react/src/machine.ts): XState machine\n  - [`effect.ts`](/audio-player-react/src/effect.ts): actions of the machine implemented using Effect\n  - [`App.tsx`](/audio-player-react/src/App.tsx): react component that uses the state machine to render the audio player and send events\n\n\n**Read all the details of the audio player implementation and how to use XState and Effect in the full article** 👇\n\n\n\u003ca href=\"https://www.sandromaglione.com/articles/getting-started-with-xstate-and-effect-audio-player?ref=Github\u0026utm_medium=newsletter_project\u0026utm_term=xstate\u0026utm_term=effect\"\u003e\n    \u003cimg alt=\"Read the full article on my website\" src=\"https://www.sandromaglione.com/api/image?title=Getting%20started%20with%20XState%20and%20Effect%20-%20Audio%20Player\u0026publishedAt=2023-12-20\" target=\"_blank\" /\u003e \n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSandroMaglione%2Fgetting-started-xstate-and-effect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSandroMaglione%2Fgetting-started-xstate-and-effect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSandroMaglione%2Fgetting-started-xstate-and-effect/lists"}