{"id":21818589,"url":"https://github.com/do-wa/xstate-addon","last_synced_at":"2025-04-14T02:27:59.737Z","repository":{"id":41796628,"uuid":"120917851","full_name":"do-wa/xstate-addon","owner":"do-wa","description":"Storybook addon for xstate","archived":false,"fork":false,"pushed_at":"2022-12-08T17:17:29.000Z","size":2112,"stargazers_count":20,"open_issues_count":29,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T02:27:47.700Z","etag":null,"topics":["javascript","statechart","storybook-addon"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/do-wa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-09T14:50:33.000Z","updated_at":"2021-03-26T13:06:58.000Z","dependencies_parsed_at":"2023-01-25T15:00:57.682Z","dependency_job_id":null,"html_url":"https://github.com/do-wa/xstate-addon","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-wa%2Fxstate-addon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-wa%2Fxstate-addon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-wa%2Fxstate-addon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-wa%2Fxstate-addon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/do-wa","download_url":"https://codeload.github.com/do-wa/xstate-addon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248810738,"owners_count":21165172,"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","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":["javascript","statechart","storybook-addon"],"created_at":"2024-11-27T16:13:36.535Z","updated_at":"2025-04-14T02:27:59.706Z","avatar_url":"https://github.com/do-wa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WARNING\n\n**this project is not actively maintained**\n\n**based on xstate v3.2 and storybook v3.4**\n\n# xstate-addon\nA storybook addon project for xstate (https://github.com/davidkpiano/xstate)\n\nThe project is in an early stage. \nEveryone who is interested in bringing this project forward is welcome to contribute ideas, docs and code. \n\n## install\n\n\n```javascript\nnpm i storybook-addon-xstate -D\n```\n\n### register\n\naddons.js\n```javascript\nimport 'storybook-addon-xstate/register';\n```\n\n### story\n\n```javascript\nimport { WithXStateGraph } from 'storybook-addon-xstate';\n\n\u003cWithXStateGraph\n   machine={xstateMachine}\n   onTransition={onEvent}\n   currentState={currentState}\n\u003e\n  \u003cTrafficLight light={currentState} /\u003e\n \u003c/WithXStateGraph\u003e\n```\n\n\n## basic idea\n![Basic Idea](https://github.com/do-wa/xstate-addon/blob/master/poc.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-wa%2Fxstate-addon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdo-wa%2Fxstate-addon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-wa%2Fxstate-addon/lists"}