{"id":13393957,"url":"https://github.com/matthewp/robot","last_synced_at":"2025-05-13T00:07:44.858Z","repository":{"id":35111197,"uuid":"207296055","full_name":"matthewp/robot","owner":"matthewp","description":"🤖 A functional, immutable Finite State Machine library","archived":false,"fork":false,"pushed_at":"2025-02-05T13:23:20.000Z","size":1553,"stargazers_count":2038,"open_issues_count":15,"forks_count":91,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-05-13T00:07:32.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://thisrobot.life","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthewp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2019-09-09T11:44:29.000Z","updated_at":"2025-05-12T18:40:56.000Z","dependencies_parsed_at":"2023-02-17T19:45:45.910Z","dependency_job_id":"742405b3-4feb-4ff7-8308-9611b6b08895","html_url":"https://github.com/matthewp/robot","commit_stats":{"total_commits":237,"total_committers":42,"mean_commits":5.642857142857143,"dds":0.6708860759493671,"last_synced_commit":"26cefe6da5904d73d72a49b769abcf51a77a6118"},"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Frobot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Frobot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Frobot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewp%2Frobot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewp","download_url":"https://codeload.github.com/matthewp/robot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843215,"owners_count":21972873,"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":[],"created_at":"2024-07-30T17:01:03.698Z","updated_at":"2025-05-13T00:07:44.830Z","avatar_url":"https://github.com/matthewp.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Libraries","others","List"],"sub_categories":["JavaScript"],"readme":"# Robot\n\n\u003cp align=\"center\"\u003e\n  \u003cimg \n    alt=\"The Robot logo, with green background.\"\n    src=\"https://github.com/matthewp/robot-logo/raw/master/logo/robot-green.png\"\n    width=\"40%\"\n  /\u003e\n\u003c/p\u003e\n\nA small functional and immutable Finite State Machine library. Using state machines for your components brings the declarative programming approach to application state.\n\nSee [thisrobot.life](https://thisrobot.life/) for the main documentation.\n\n```js\nimport { createMachine, interpret, state, transition } from 'robot3';\n\nlet machine = createMachine({\n  off: state(\n    transition('toggle', 'on')\n  ),\n  on: state(\n    transition('toggle', 'off')\n  )\n});\n\nconst service = interpret(machine, () =\u003e {\n  render();\n});\n```\n\n## 📚 [Documentation](https://thisrobot.life/)\n\n* Please star [the repository](https://github.com/matthewp/robot) on GitHub.\n* [File an issue](https://github.com/matthewp/robot/issues) if you find a bug. Or better yet...\n* [Submit a pull request](https://github.com/matthewp/robot/compare) to contribute.\n\n## Testing\n\nTests are located in the `test/` folder. Load `test/test.html` in your browser of choice with any HTTP server you like (I use [http-server](https://www.npmjs.com/package/http-server)). Tests are written in [QUnit](https://qunitjs.com/) and are simple to understand.\n\n## Integrations\n\nRobot works with a variety of UI libraries, and includes integrations for React, Preact, Haunted, and more. See the [integrations page](https://thisrobot.life/integrations.html) to learn more.\n\n## Tools\n\n* Visualization of robot state machines: [robot3-viz](https://github.com/jbreckmckye/robot3-viz)\n\n## License\n\nBSD-2-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewp%2Frobot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewp%2Frobot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewp%2Frobot/lists"}