{"id":16478433,"url":"https://github.com/batazor/fsme","last_synced_at":"2025-08-19T05:09:44.495Z","repository":{"id":38999809,"uuid":"168533824","full_name":"batazor/fsme","owner":"batazor","description":"Finite State Machine Engine for Go","archived":false,"fork":false,"pushed_at":"2025-08-06T20:55:26.000Z","size":14328,"stargazers_count":10,"open_issues_count":11,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-06T22:27:42.040Z","etag":null,"topics":["finite-state-machine","fsm","react","ui"],"latest_commit_sha":null,"homepage":"https://fsme.herokuapp.com/","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/batazor.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,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-01-31T13:57:46.000Z","updated_at":"2024-12-09T02:04:05.000Z","dependencies_parsed_at":"2024-02-16T23:28:37.976Z","dependency_job_id":"fd55bf9d-d14e-4370-9cbe-42ccb9364f69","html_url":"https://github.com/batazor/fsme","commit_stats":{"total_commits":3140,"total_committers":4,"mean_commits":785.0,"dds":0.3633757961783439,"last_synced_commit":"6fd7e5b4c56e62ec6b28eaa56a97567e85758418"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/batazor/fsme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batazor%2Ffsme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batazor%2Ffsme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batazor%2Ffsme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batazor%2Ffsme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/batazor","download_url":"https://codeload.github.com/batazor/fsme/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/batazor%2Ffsme/sbom","scorecard":{"id":227159,"data":{"date":"2025-08-11","repo":{"name":"github.com/batazor/fsme","commit":"1d93c82847f12fe515aa18657747e0a7fbf36cb0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: admin/Dockerfile:4","Warn: containerImage not pinned by hash: admin/Dockerfile:17","Warn: containerImage not pinned by hash: admin/Dockerfile:33: pin your Docker image by updating nginx:1.23-alpine to nginx:1.23-alpine@sha256:02ffd439b71d9ea9408e449b568f65c0bbbb94bebd8750f1d80231ab6496008e","Warn: containerImage not pinned by hash: admin/server/Dockerfile:1","Warn: containerImage not pinned by hash: admin/server/Dockerfile:16: pin your Docker image by updating alpine:latest to alpine:latest@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1","Warn: containerImage not pinned by hash: admin/ui/Dockerfile:1","Warn: containerImage not pinned by hash: admin/ui/Dockerfile:13: pin your Docker image by updating nginx:1.23-alpine to nginx:1.23-alpine@sha256:02ffd439b71d9ea9408e449b568f65c0bbbb94bebd8750f1d80231ab6496008e","Warn: npmCommand not pinned by hash: admin/Dockerfile:11-14","Warn: pipCommand not pinned by hash: admin/Dockerfile:38-39","Warn: npmCommand not pinned by hash: admin/ui/Dockerfile:8-11","Warn: goCommand not pinned by hash: admin/server/vendor/github.com/pelletier/go-toml/benchmark.sh:10","Info:   0 out of   7 containerImage dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned","Info:   0 out of   1 pipCommand dependencies pinned","Info:   0 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"43 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3770","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-mvjj-gqq2-p4hw","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T04:01:17.059Z","repository_id":38999809,"created_at":"2025-08-17T04:01:17.060Z","updated_at":"2025-08-17T04:01:17.060Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271103202,"owners_count":24699646,"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-08-19T02:00:09.176Z","response_time":63,"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":["finite-state-machine","fsm","react","ui"],"created_at":"2024-10-11T12:49:20.282Z","updated_at":"2025-08-19T05:09:44.425Z","avatar_url":"https://github.com/batazor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fsme\n\nFinite State Machine Engine for Go\n\n[![GoDoc](https://godoc.org/github.com/ryanfaerman/fsm?status.png)](https://godoc.org/github.com/batazor/fsme/fsm)\n\n\n### Try it\n\n1. [Demo](https://fsme.herokuapp.com/)\n\n-----\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./docs/go.png\" width=\"80\"\u003e\n  \u003cimg src=\"./docs/material-ui.svg\" width=\"80\"\u003e\n  \u003cimg src=\"./docs/mongo-gopher.png\" width=\"80\"\u003e\n  \u003cimg src=\"./docs/react.png\" width=\"80\"\u003e\n  \u003cimg src=\"./docs/redux.svg\" width=\"80\"\u003e\n  \u003cimg src=\"./docs/react-router.png\" width=\"80\"\u003e\n\u003c/p\u003e\n\n-----\n\n### Install\n\n`go get github.com/batazor/fsme/fsm`\n\n### Basic Example\n\nFrom [examples/simple.go](./examples/simple.go)\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/batazor/fsme/fsm\"\n)\n\nfunc main() {\n\t// Create new FSM\n    machine, err := fsm.New()\n\n    // Add rule\n    machine.AddStateTransitionRules(\"a\", \"b\", \"c\")\n    machine.AddStateTransitionRules(\"b\", \"d\", \"e\")\n    machine.AddStateTransitionRules(\"c\", \"k\")\n    machine.AddStateTransitionRules(\"d\", \"a\")\n    machine.AddStateTransitionRules(\"e\", \"k\")\n    machine.AddStateTransitionRules(\"k\")\n\n    // Add Events\n    machine.AddEvent(\"start\", \"a\")\n    machine.AddEvent(\"to b\", \"b\")\n    machine.AddEvent(\"to d\", \"d\")\n\n    // Add callback for state\n    machine.AddCallback(\"a\", \"enter\", func(f *fsm.FSM) { fmt.Println(\"Enter state: \", f.GetCurrentState()) })\n    machine.AddCallback(\"a\", \"leave\", func(f *fsm.FSM) { fmt.Println(\"Leave state: \", f.GetCurrentState()) })\n    machine.AddCallback(\"b\", \"enter\", func(f *fsm.FSM) { fmt.Println(\"Enter state: \", f.GetCurrentState()) })\n\n    // Init State\n    err = machine.SetStateTransition(\"a\")\n    if err != nil {\n        fmt.Println(err)\n    }\n\n    // Send Event\n    err = machine.SendEvent(\"to b\")\n    if err != nil {\n        fmt.Println(err)\n    }\n    err = machine.SendEvent(\"to d\")\n    if err != nil {\n        fmt.Println(err)\n    }\n\n    fmt.Printf(\"State: %s\\n\", machine.GetCurrentState())\n}\n```\n\n## UI\n\n![view](./docs/editor.png)\n![view-editor](./docs/view-editor.png)\n\n### Feature\n\n+ FSM\n+ Callback [Entry, Leave]\n+ UI Editor/View\n+ Export\n+ [Examples](./examples)\n\n### Refs\n\n- FSM\n  - https://github.com/looplab/fsm\n  - https://github.com/theckman/go-fsm\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatazor%2Ffsme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbatazor%2Ffsme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbatazor%2Ffsme/lists"}