{"id":13783235,"url":"https://github.com/optiopay/kafka","last_synced_at":"2026-01-10T23:01:19.440Z","repository":{"id":27062489,"uuid":"30528539","full_name":"optiopay/kafka","owner":"optiopay","description":"Go driver for Kafka","archived":false,"fork":false,"pushed_at":"2019-11-04T15:58:33.000Z","size":728,"stargazers_count":213,"open_issues_count":6,"forks_count":57,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-08-14T14:47:29.076Z","etag":null,"topics":["driver","kafka","open-source"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/optiopay/kafka","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/optiopay.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":"CODEOWNERS","security":null,"support":null}},"created_at":"2015-02-09T09:36:50.000Z","updated_at":"2025-02-25T03:01:54.000Z","dependencies_parsed_at":"2022-09-17T04:52:03.856Z","dependency_job_id":null,"html_url":"https://github.com/optiopay/kafka","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/optiopay/kafka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiopay%2Fkafka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiopay%2Fkafka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiopay%2Fkafka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiopay%2Fkafka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optiopay","download_url":"https://codeload.github.com/optiopay/kafka/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiopay%2Fkafka/sbom","scorecard":{"id":711295,"data":{"date":"2025-08-11","repo":{"name":"github.com/optiopay/kafka","commit":"3fc0c996f834c4f69dddbde6d9f5aef892dbec1b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"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":"Code-Review","score":10,"reason":"all changesets reviewed","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr.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":"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":"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":"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/pr.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/optiopay/kafka/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/optiopay/kafka/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/optiopay/kafka/pr.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/optiopay/kafka/pr.yml/master?enable=pin","Warn: containerImage not pinned by hash: v2/integration/kafka-docker/Dockerfile:1: pin your Docker image by updating anapsix/alpine-java to anapsix/alpine-java@sha256:1d24bc352e07b84c073acfff8bf913c213d1cfc73cdf876b181d714870968819","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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":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-22T08:16:08.759Z","repository_id":27062489,"created_at":"2025-08-22T08:16:08.759Z","updated_at":"2025-08-22T08:16:08.759Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28260535,"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":"2026-01-10T02:00:06.867Z","response_time":57,"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":["driver","kafka","open-source"],"created_at":"2024-08-03T19:00:16.821Z","updated_at":"2026-01-10T23:01:18.762Z","avatar_url":"https://github.com/optiopay.png","language":"Go","funding_links":[],"categories":["Go","Development"],"sub_categories":["Client libraries"],"readme":"[![Tests status](https://github.com/optiopay/kafka/workflows/Kafka/badge.svg)](https://github.com/optiopay/kafka/actions?query=workflow%3AKafka)\n[![GoDoc](https://godoc.org/github.com/optiopay/kafka/v2?status.png)](https://godoc.org/github.com/optiopay/kafka/v2)\n\n# Kafka\n\nKafka is Go client library for [Apache Kafka](https://kafka.apache.org/)\nserver, released under [MIT license](LICENSE]).\n\nKafka provides minimal abstraction over wire protocol, support for transparent\nfailover and easy to use blocking API.\n\n\n* [godoc](https://godoc.org/github.com/optiopay/kafka/v2) generated documentation,\n* [code examples](https://godoc.org/github.com/optiopay/kafka/v2#pkg-examples)\n\n## Example\n\nWrite all messages from stdin to kafka and print all messages from kafka topic\nto stdout.\n\n\n```go\npackage main\n\nimport (\n    \"bufio\"\n    \"log\"\n    \"os\"\n    \"strings\"\n\n    \"github.com/optiopay/kafka/v2\"\n    \"github.com/optiopay/kafka/v2/proto\"\n)\n\nconst (\n    topic     = \"my-messages\"\n    partition = 0\n)\n\nvar kafkaAddrs = []string{\"localhost:9092\", \"localhost:9093\"}\n\n// printConsumed read messages from kafka and print them out\nfunc printConsumed(broker kafka.Client) {\n    conf := kafka.NewConsumerConf(topic, partition)\n    conf.StartOffset = kafka.StartOffsetNewest\n    consumer, err := broker.Consumer(conf)\n    if err != nil {\n        log.Fatalf(\"cannot create kafka consumer for %s:%d: %s\", topic, partition, err)\n    }\n\n    for {\n        msg, err := consumer.Consume()\n        if err != nil {\n            if err != kafka.ErrNoData {\n                log.Printf(\"cannot consume %q topic message: %s\", topic, err)\n            }\n            break\n        }\n        log.Printf(\"message %d: %s\", msg.Offset, msg.Value)\n    }\n    log.Print(\"consumer quit\")\n}\n\n// produceStdin read stdin and send every non empty line as message\nfunc produceStdin(broker kafka.Client) {\n    producer := broker.Producer(kafka.NewProducerConf())\n    input := bufio.NewReader(os.Stdin)\n    for {\n        line, err := input.ReadString('\\n')\n        if err != nil {\n            log.Fatalf(\"input error: %s\", err)\n        }\n        line = strings.TrimSpace(line)\n        if line == \"\" {\n            continue\n        }\n\n        msg := \u0026proto.Message{Value: []byte(line)}\n        if _, err := producer.Produce(topic, partition, msg); err != nil {\n            log.Fatalf(\"cannot produce message to %s:%d: %s\", topic, partition, err)\n        }\n    }\n}\n\nfunc main() {\n    conf := kafka.NewBrokerConf(\"test-client\")\n    conf.AllowTopicCreation = true\n\n    // connect to kafka cluster\n    broker, err := kafka.Dial(kafkaAddrs, conf)\n    if err != nil {\n        log.Fatalf(\"cannot connect to kafka cluster: %s\", err)\n    }\n    defer broker.Close()\n\n    go printConsumed(broker)\n    produceStdin(broker)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptiopay%2Fkafka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptiopay%2Fkafka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptiopay%2Fkafka/lists"}