{"id":51230847,"url":"https://github.com/bws9000/react-stateflowx-demo","last_synced_at":"2026-06-28T16:01:32.239Z","repository":{"id":360478872,"uuid":"1247060515","full_name":"bws9000/react-stateflowx-demo","owner":"bws9000","description":"Angular demo client for the StateFlowX runtime framework demonstrating realtime workflow execution over JSON-RPC and WebSockets.","archived":false,"fork":false,"pushed_at":"2026-06-21T02:57:21.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-21T04:22:40.418Z","etag":null,"topics":["ai-tools","react","stateflowx","workflow-automation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/bws9000.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-22T21:25:36.000Z","updated_at":"2026-06-21T02:57:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bws9000/react-stateflowx-demo","commit_stats":null,"previous_names":["bws9000/react-stateflowx-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bws9000/react-stateflowx-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bws9000%2Freact-stateflowx-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bws9000%2Freact-stateflowx-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bws9000%2Freact-stateflowx-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bws9000%2Freact-stateflowx-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bws9000","download_url":"https://codeload.github.com/bws9000/react-stateflowx-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bws9000%2Freact-stateflowx-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34894560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":["ai-tools","react","stateflowx","workflow-automation"],"created_at":"2026-06-28T16:01:31.538Z","updated_at":"2026-06-28T16:01:32.231Z","avatar_url":"https://github.com/bws9000.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StateFlowX React Demo\n\nThis project demonstrates using `@stateflowx/client` inside a React application with realtime workflow execution and runtime event streaming.\n\nThe demo connects to a local StateFlowX runtime host over WebSockets, initializes the runtime configuration, executes a workflow, and renders the response in the UI.\n\nRuntime lifecycle events are also streamed in realtime from the runtime to the React client.\n\n---\n\n# Requirements\n\nBefore running this project, you must also run the runtime host example:\n\n\u003chttps://github.com/bws9000/stateflowx-runtime-host-example\u003e\n\n---\n\n# Start the Runtime Host\n\nClone the runtime host example:\n\n```bash\ngit clone https://github.com/bws9000/stateflowx-runtime-host-example.git\n```\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nStart the runtime host:\n\n```bash\nnode main.mjs\n```\n\nThe runtime host should now be running locally on:\n\n```txt\nws://localhost:3001\n```\n\n---\n\n# Start the React Demo\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nRun the React application:\n\n```bash\nnpm run dev\n```\n\nOpen:\n\n```txt\nhttp://localhost:5173\n```\n\n---\n\n# Current Runtime Configuration\n\nStateFlowX V1 currently standardizes on:\n\n- JSON-RPC\n- WebSocket transport\n- realtime runtime event streaming\n\nHTTP transport support exists internally, but realtime runtime events currently require WebSockets.\n\n---\n\n# What This Demo Shows\n\nThis demo demonstrates:\n\n- `@stateflowx/client`\n- runtime initialization\n- realtime runtime event streaming\n- JSON-RPC communication\n- WebSocket transport\n- workflow execution\n- provider fallback configuration\n- AI-driven response formatting\n- React integration\n- realtime orchestration connectivity\n\n---\n\n# Runtime Events\n\nThe React client currently logs runtime lifecycle events including:\n\n- `workflow.started`\n- `workflow.completed`\n- `workflow.failed`\n- `runtime.message.received`\n\nThese events are streamed from the runtime host over WebSockets.\n\n---\n\n# Architecture Flow\n\n```txt\nReact App\n    -\u003e\n@stateflowx/client\n    -\u003e\nWebSocket Transport\n    -\u003e\nJSON-RPC Protocol\n    -\u003e\nStateFlowX Runtime Host\n    -\u003e\nWorkflow Execution\n    -\u003e\nProviders / Services\n    -\u003e\nRuntime Events\n    -\u003e\nRealtime Client Observability\n```\n\n---\n\n# Example Runtime Event Flow\n\n```txt\nworkflow.started\n    -\u003e\nservice.execute\n    -\u003e\nprovider.generate\n    -\u003e\nworkflow.completed\n    -\u003e\nReact runtime event stream\n```\n\n---\n\n# Related Projects\n\n- \u003chttps://github.com/bws9000/stateflowx-runtime-host-example\u003e\n- \u003chttps://github.com/NewJerseySoftware/stateflowx\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbws9000%2Freact-stateflowx-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbws9000%2Freact-stateflowx-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbws9000%2Freact-stateflowx-demo/lists"}