{"id":23773888,"url":"https://github.com/kusanagi/kusanagi-sdk-go","last_synced_at":"2025-09-14T07:33:15.672Z","repository":{"id":57657923,"uuid":"166644507","full_name":"kusanagi/kusanagi-sdk-go","owner":"kusanagi","description":"Go SDK for the KUSANAGI framework","archived":false,"fork":false,"pushed_at":"2023-03-01T08:33:45.000Z","size":397,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"epoch-5","last_synced_at":"2025-08-12T13:57:01.259Z","etag":null,"topics":["framework","go","golang","golang-application","kusanagi","sdk","sdk-go"],"latest_commit_sha":null,"homepage":"http://kusanagi.io","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/kusanagi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2019-01-20T09:35:10.000Z","updated_at":"2022-02-24T10:45:34.000Z","dependencies_parsed_at":"2024-06-19T19:02:10.958Z","dependency_job_id":"d1d5495f-ce11-4bfd-8df4-89885963d78d","html_url":"https://github.com/kusanagi/kusanagi-sdk-go","commit_stats":{"total_commits":71,"total_committers":4,"mean_commits":17.75,"dds":0.4084507042253521,"last_synced_commit":"74e4c37efed67b18b142faa560338cc30e04b6d2"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kusanagi/kusanagi-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusanagi%2Fkusanagi-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusanagi%2Fkusanagi-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusanagi%2Fkusanagi-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusanagi%2Fkusanagi-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kusanagi","download_url":"https://codeload.github.com/kusanagi/kusanagi-sdk-go/tar.gz/refs/heads/epoch-5","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kusanagi%2Fkusanagi-sdk-go/sbom","scorecard":{"id":574141,"data":{"date":"2025-08-11","repo":{"name":"github.com/kusanagi/kusanagi-sdk-go","commit":"74e4c37efed67b18b142faa560338cc30e04b6d2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"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":"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":"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":"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":"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":"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":"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":-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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"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-20T17:12:00.622Z","repository_id":57657923,"created_at":"2025-08-20T17:12:00.622Z","updated_at":"2025-08-20T17:12:00.622Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275076532,"owners_count":25401313,"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-09-14T02:00:10.474Z","response_time":75,"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":["framework","go","golang","golang-application","kusanagi","sdk","sdk-go"],"created_at":"2025-01-01T05:46:12.792Z","updated_at":"2025-09-14T07:33:15.654Z","avatar_url":"https://github.com/kusanagi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Go SDK for the KUSANAGI framework\n=================================\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/kusanagi/kusanagi-sdk-go)](https://goreportcard.com/report/github.com/kusanagi/kusanagi-sdk-go)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n**Go** SDK to interface with the **KUSANAGI**™ framework (http://kusanagi.io).\n\nRequirements\n------------\n\n* [KUSANAGI framework](http://kusanagi.io) 5.0+\n* [Go](https://golang.org/dl/) 1.16+\n* [libzmq](http://zeromq.org/intro:get-the-software) 4.3.4+\n\nInstallation\n------------\n\nInstall the SDK using the following command:\n\n```\n$ go get github.com/kusanagi/kusanagi-sdk-go/v5@epoch-5\n```\n\nGetting Started\n---------------\n\nSee the [getting started](http://kusanagi.io/docs/getting-started) tutorial to begin with the **KUSANAGI**™ framework and the **Go** SDK.\n\n### Cancellation Signal\n\nThe Go SDK implements support to signal deadlines or cancellation through a read only channel that is available to **Middleware** and **Service** components.\n\nThe channel can be read using the `Api.Done()` method. For example, within a service action:\n\n```go\nfunc handler(action *kusanagi.Action) (*kusanagi.Action, error) {\n    // Create a context for the current service call\n    ctx, cancel := context.WithCancel(context.Background())\n\n    // Create a channel to get the task result\n    result := make(chan int)\n\n    // Run some async task\n    go task(ctx, result)\n\n    // Cancel the context when the service call times out\n    select{\n    case v := \u003c-result:\n       action.Log(v, 6)\n    case \u003c-action.Done():\n        cancel()\n    }\n\n    return action, nil\n}\n```\n\nIt is highly recommended to monitor this channel and stop any ongoing task when the channel is closed.\n\nDocumentation\n-------------\n\nSee the [API](http://kusanagi.io/docs/sdk) for a technical reference of the SDK.\n\nFor help using the framework see the [documentation](http://kusanagi.io/docs).\n\nSupport\n-------\n\nPlease first read our [contribution guidelines](http://kusanagi.io/open-source/contributing).\n\n* [Requesting help](http://kusanagi.io/open-source/help)\n* [Reporting a bug](http://kusanagi.io/open-source/bug)\n* [Submitting a patch](http://kusanagi.io/open-source/patch)\n* [Security issues](http://kusanagi.io/open-source/security)\n\nWe use [milestones](https://github.com/kusanagi/kusanagi-sdk-go/milestones) to track upcoming releases inline with our [versioning](http://kusanagi.io/open-source/roadmap#versioning) strategy, and as defined in our [roadmap](http://kusanagi.io/open-source/roadmap).\n\nContributing\n------------\n\nIf you'd like to know how you can help and support our Open Source efforts see the many ways to [get involved](http://kusanagi.io/open-source).\n\nPlease also be sure to review our [community guidelines](http://kusanagi.io/open-source/conduct).\n\nLicense\n-------\n\nCopyright 2016-2023 KUSANAGI S.L. (http://kusanagi.io). All rights reserved.\n\nKUSANAGI, the sword logo and the \"K\" logo are trademarks and/or registered trademarks of KUSANAGI S.L. All other trademarks are property of their respective owners.\n\nLicensed under the [MIT License](https://opensource.org/licenses/MIT). Redistributions of the source code included in this repository must retain the copyright notice found in each file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusanagi%2Fkusanagi-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkusanagi%2Fkusanagi-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkusanagi%2Fkusanagi-sdk-go/lists"}