{"id":45062795,"url":"https://github.com/teatak/riff","last_synced_at":"2026-02-19T10:10:43.400Z","repository":{"id":57571124,"uuid":"347612033","full_name":"teatak/riff","owner":"teatak","description":"Riff is a tool for service discovery and configuration auto update service from github or gitlab","archived":false,"fork":false,"pushed_at":"2025-09-26T02:44:51.000Z","size":24330,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-26T04:27:45.168Z","etag":null,"topics":["autoupdate","ci","daemon","github","gitlab","golang","service-discovery"],"latest_commit_sha":null,"homepage":"","language":"Go","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/teatak.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":"2021-03-14T11:00:09.000Z","updated_at":"2025-09-26T02:44:54.000Z","dependencies_parsed_at":"2025-02-20T02:26:02.716Z","dependency_job_id":"66711023-2cb6-4b27-81bc-8eec35e1663e","html_url":"https://github.com/teatak/riff","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/teatak/riff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teatak%2Friff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teatak%2Friff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teatak%2Friff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teatak%2Friff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teatak","download_url":"https://codeload.github.com/teatak/riff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teatak%2Friff/sbom","scorecard":{"id":871717,"data":{"date":"2025-08-11","repo":{"name":"github.com/teatak/riff","commit":"a825d750d78db5c2c45b35d3915528348b31ee1c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.33 not signed: https://api.github.com/repos/teatak/riff/releases/91175060","Warn: release artifact v0.0.32 not signed: https://api.github.com/repos/teatak/riff/releases/83834143","Warn: release artifact v0.0.31 not signed: https://api.github.com/repos/teatak/riff/releases/83828095","Warn: release artifact v0.0.30 not signed: https://api.github.com/repos/teatak/riff/releases/83826899","Warn: release artifact v0.0.29 not signed: https://api.github.com/repos/teatak/riff/releases/77355590","Warn: release artifact v0.0.33 does not have provenance: https://api.github.com/repos/teatak/riff/releases/91175060","Warn: release artifact v0.0.32 does not have provenance: https://api.github.com/repos/teatak/riff/releases/83834143","Warn: release artifact v0.0.31 does not have provenance: https://api.github.com/repos/teatak/riff/releases/83828095","Warn: release artifact v0.0.30 does not have provenance: https://api.github.com/repos/teatak/riff/releases/83826899","Warn: release artifact v0.0.29 does not have provenance: https://api.github.com/repos/teatak/riff/releases/77355590"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0300 / GHSA-mh3m-8c74-74xh"],"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-24T04:27:34.589Z","repository_id":57571124,"created_at":"2025-08-24T04:27:34.589Z","updated_at":"2025-08-24T04:27:34.589Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29609532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["autoupdate","ci","daemon","github","gitlab","golang","service-discovery"],"created_at":"2026-02-19T10:10:40.056Z","updated_at":"2026-02-19T10:10:43.395Z","avatar_url":"https://github.com/teatak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# riff\n\n\u003c!-- [![Build Status](https://travis-ci.org/gimke/riff.svg?branch=master)](https://travis-ci.org/gimke/riff) [![GoDoc](https://godoc.org/github.com/teatak/riff?status.svg)](https://godoc.org/github.com/teatak/riff) [![Join the chat at https://gitter.im/gimke/riff](https://badges.gitter.im/gimke/riff.svg)](https://gitter.im/gimke/riff?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge) --\u003e\n\nRiff is a tool for service discovery and configuration.\n\n* Service Discovery\n* Health Checking\n* Web console\n\n## Quick Start\nIf you wish to work on Riff, you'll first need Go installed (version 1.9+ is required).\n\nIf you need Web Console, you'll need npm installed dependencies            \n\nNext clone this repository and build Riff or download from [release](https://github.com/teatak/riff/releases)\n```bash\nmake\n./riff -v\n```\n## Commands(CLI)\n```bash\n$ ./riff\n\nUsage: riff [--version] \u003ccommand\u003e [\u003cargs\u003e]\n\nAvailable commands are:\n\n  daem        Run Riff as service \n  query       Query\n  quit        Quit Riff\n  reload      Reload Riff config\n  restart     Restart service\n  run         Run Riff\n  start       Start service\n  stop        Stop service\n  update      Update Riff\n  version     Prints the Riff version\n\n\n```\n\n### run\nrun Riff\n```bash\n$ ./riff run -h\n\nUsage: run [options]\n\n  Run riff service\n\nOptions:\n\n  -name       Node name\n  -dc         DataCenter name\n  -http       Http address of riff (-http 127.0.0.1:8610)\n  -rpc        RPC address of riff (-rpc [::]:8630)\n  -join       Join RPC address (-join 192.168.1.1:8630,192.168.1.2:8630,192.168.1.3:8630)\n\n```\n## API\n\n### graphql \n\u003e POST /api\n\nyou can use explorer in Web console to discover api\n\n```graphql\n{\n  service(name: \"mongod\") {\n    name\n    nodes {\n      name\n    }\n  }\n}\n\n```\n```bash\ncurl --request POST \\\n  --url http://localhost:8610/api \\\n  --header 'content-type: application/json' \\\n  --data '{\"query\":\"{\\n  service(name: \\\"mongod\\\") {\\n    name\\n    nodes {\\n      name\\n    }\\n  }\\n}\\n\"}'\n```\n### logs\n\n\u003e GET /api/logs\n\nwatch logs\n```bash\ncurl --request GET \\\n  --url http://localhost:8610/api/logs\n```\n### watch\n\n\u003e POST /api/watch?name={watchName}\u0026type={node|service}\n\nwatch node or service\n\n```bash\ncurl --request POST \\\n  --url 'http://localhost:8610/api/watch?type=service\u0026name=mongod' \\\n  --header 'content-type: application/json' \\\n  --data '{\"query\":\"{\\n  service(name: \\\"mongod\\\") {\\n    name\\n    nodes {\\n      name\\n    }\\n  }\\n}\\n\"}'\n```\n\n## Web Console\n\n\u003e http://localhost:8610\n\n![Riff console](https://raw.githubusercontent.com/gimke/riff/gh-pages/images/screen.png)\n\n## Service Config\nconfig files in config/*.yml\n\nping.yml config file\n```yaml\n#name: service name\n#port: service port\n#env:\n#  - CART_MODE=release\n\n#command:\n#  - ./home/cartdemo/cartdemo\n\n#pid_file: ./home/cartdemo/cartdemo.pid\n#std_out_file: ./home/cartdemo/logs/out.log\n#std_err_file: ./home/cartdemo/logs/err.log\n#grace: true\n#run_at_load: false\n#keep_alive: false\n\n#deploy:\n#  service_path: (service path e.g /home/riff)\n#  provider: github (only support github gitlab)\n#  token: Personal access tokens (visit https://github.com/settings/tokens or https://gitlab.com/profile/personal_access_tokens and generate a new token)\n#  repository: repository address (https://github.com/teatak/cartdemo)\n#  version: branchName (e.g branch:master), latest release (e.g release:latest or tag:latest）,or (content:master:version.txt txt content is download url or version)\n#  payload: payload url when update success\n\nname: ping\nenv:\n  - CART_MODE=release\n\ncommand:\n  - ping\n  - 192.168.3.1\n\ngrace: false\nrun_at_load: true\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteatak%2Friff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteatak%2Friff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteatak%2Friff/lists"}