{"id":18612814,"url":"https://github.com/nyaruka/goflow","last_synced_at":"2026-04-27T18:01:18.438Z","repository":{"id":38751681,"uuid":"90892160","full_name":"nyaruka/goflow","owner":"nyaruka","description":"Flow engine for RapidPro/TextIt.","archived":false,"fork":false,"pushed_at":"2026-04-24T18:54:04.000Z","size":25237,"stargazers_count":48,"open_issues_count":19,"forks_count":23,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-04-24T20:39:44.500Z","etag":null,"topics":["flows","flowspec","messaging"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nyaruka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":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":"2017-05-10T17:43:06.000Z","updated_at":"2026-04-24T18:54:09.000Z","dependencies_parsed_at":"2026-04-24T17:02:31.740Z","dependency_job_id":null,"html_url":"https://github.com/nyaruka/goflow","commit_stats":null,"previous_names":[],"tags_count":823,"template":false,"template_full_name":null,"purl":"pkg:github/nyaruka/goflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyaruka%2Fgoflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyaruka%2Fgoflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyaruka%2Fgoflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyaruka%2Fgoflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nyaruka","download_url":"https://codeload.github.com/nyaruka/goflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nyaruka%2Fgoflow/sbom","scorecard":{"id":403993,"data":{"date":"2025-08-11","repo":{"name":"github.com/nyaruka/goflow","commit":"1417ce52335906b85bb198402bf0e1ecebf9233e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/cla.yml:1","Info: no jobLevel write permissions found"],"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":"Maintained","score":10,"reason":"30 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/21 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/nyaruka/goflow/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/nyaruka/goflow/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/nyaruka/goflow/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/nyaruka/goflow/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/nyaruka/goflow/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/nyaruka/goflow/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cla.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/nyaruka/goflow/cla.yml/main?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/ci.yml:50","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction 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":"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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.252.2 not signed: https://api.github.com/repos/nyaruka/goflow/releases/240324290","Warn: release artifact v0.252.1 not signed: https://api.github.com/repos/nyaruka/goflow/releases/240317309","Warn: release artifact v0.252.0 not signed: https://api.github.com/repos/nyaruka/goflow/releases/240301377","Warn: release artifact v0.251.6 not signed: https://api.github.com/repos/nyaruka/goflow/releases/239054779","Warn: release artifact v0.251.5 not signed: https://api.github.com/repos/nyaruka/goflow/releases/238367864","Warn: release artifact v0.252.2 does not have provenance: https://api.github.com/repos/nyaruka/goflow/releases/240324290","Warn: release artifact v0.252.1 does not have provenance: https://api.github.com/repos/nyaruka/goflow/releases/240317309","Warn: release artifact v0.252.0 does not have provenance: https://api.github.com/repos/nyaruka/goflow/releases/240301377","Warn: release artifact v0.251.6 does not have provenance: https://api.github.com/repos/nyaruka/goflow/releases/239054779","Warn: release artifact v0.251.5 does not have provenance: https://api.github.com/repos/nyaruka/goflow/releases/238367864"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yml:31"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 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":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3770 / GHSA-vrw8-fxc6-2r93"],"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-18T20:44:37.438Z","repository_id":38751681,"created_at":"2025-08-18T20:44:37.438Z","updated_at":"2025-08-18T20:44:37.438Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32348058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flows","flowspec","messaging"],"created_at":"2024-11-07T03:18:45.542Z","updated_at":"2026-04-27T18:01:18.345Z","avatar_url":"https://github.com/nyaruka.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎢 Goflow \n[![Build Status](https://github.com/nyaruka/goflow/workflows/CI/badge.svg)](https://github.com/nyaruka/goflow/actions?query=workflow%3ACI) \n[![Go Report Card](https://goreportcard.com/badge/github.com/nyaruka/goflow)](https://goreportcard.com/report/github.com/nyaruka/goflow)\n\n## Specification\n\nSee [here](https://textit.com/mr/docs/) for the complete specification docs.\n\n## Basic Usage\n\n```go\nimport (\n    \"github.com/nyaruka/goflow/assets/static\"\n    \"github.com/nyaruka/goflow/flows\"\n    \"github.com/nyaruka/goflow/flows/engine\"\n    \"github.com/nyaruka/goflow/utils\"\n)\n\nenv := envs.NewBuilder().Build()\nsource, _ := static.LoadSource(\"myassets.json\")\nassets, _ := engine.NewSessionAssets(env, source, nil)\ncontact := flows.NewContact(assets, ...)\ntrigger := triggers.NewBuilder(env, flow.Reference()).Manual().Build()\neng := engine.NewBuilder().Build()\nsession, sprint, err := eng.NewSession(ctx, assets, contact, trigger, nil)\n```\n\n## Sessions\n\nSessions can be persisted between sprints by calling `json.Marshal` on the `Session` instance to marshal it as JSON. You can inspect this JSON at https://sessions.temba.io/.\n\n## Utilities\n\n### Flow Runner \n\nProvides a command line interface for stepping through a given flow.\n\n```\n% go install github.com/nyaruka/goflow/cmd/flowrunner\n% $GOPATH/bin/flowrunner test/testdata/runner/two_questions.json 615b8a0f-588c-4d20-a05f-363b0b4ce6f4\nStarting flow 'U-Report Registration Flow'....\n---------------------------------------\n💬 \"Hi Ben Haggerty! What is your favorite color? (red/blue) Your number is (206) 555-1212\"\n⏳ waiting for message....\n```\n\nBy default it will use a manual trigger to create a session, but the `-msg` flag can be used\nto start the session with a message trigger:\n\n```\n% $GOPATH/bin/flowrunner -msg \"hi there\" cmd/flowrunner/testdata/two_questions.json 615b8a0f-588c-4d20-a05f-363b0b4ce6f4\n```\n\nIf the `-repro` flag is set, it will dump the triggers and resumes it used which can be used to reproduce the session in a test:\n\n```\n% $GOPATH/bin/flowrunner -repro cmd/flowrunner/testdata/two_questions.json 615b8a0f-588c-4d20-a05f-363b0b4ce6f4\n```\n\n### Flow Migrator\n\nTakes a legacy flow definition as piped input and outputs the migrated definition:\n\n```\n% go install github.com/nyaruka/goflow/cmd/flowmigrate\n% cat legacy_flow.json | $GOPATH/bin/flowmigrate\n% cat legacy_export.json | jq '.flows[0]' | $GOPATH/bin/flowmigrate\n```\n\n## Development\n\nYou can run all the tests with:\n\n```\n% go test github.com/nyaruka/goflow/...\n```\n\nIf you've made changes to the flow engine output, regenerate the test files with:\n\n```\n% go test github.com/nyaruka/goflow/test -update\n```\n\nIf you need to rebuild the ANTLR grammar files:\n\n```\ngo generate ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyaruka%2Fgoflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnyaruka%2Fgoflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnyaruka%2Fgoflow/lists"}