{"id":38132705,"url":"https://github.com/silverswords/pulse","last_synced_at":"2026-01-16T22:39:05.521Z","repository":{"id":53747817,"uuid":"257034583","full_name":"silverswords/pulse","owner":"silverswords","description":"☁EventBus on Portable Pub/Sub Components☄","archived":false,"fork":false,"pushed_at":"2022-06-28T11:48:00.000Z","size":8835,"stargazers_count":41,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-15T15:29:33.392Z","etag":null,"topics":["dapr","event-driven","eventbus","kafka","mqtt","nats","pubsub","pulse","redis","subscription","topic"],"latest_commit_sha":null,"homepage":"https://www.yuque.com/abser/pulse","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/silverswords.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null},"funding":{"github":["abserari"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-04-19T15:29:35.000Z","updated_at":"2024-08-11T16:35:29.000Z","dependencies_parsed_at":"2022-08-27T22:40:33.447Z","dependency_job_id":null,"html_url":"https://github.com/silverswords/pulse","commit_stats":null,"previous_names":["silverswords/whisper"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/silverswords/pulse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverswords%2Fpulse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverswords%2Fpulse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverswords%2Fpulse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverswords%2Fpulse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverswords","download_url":"https://codeload.github.com/silverswords/pulse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverswords%2Fpulse/sbom","scorecard":{"id":824083,"data":{"date":"2025-08-11","repo":{"name":"github.com/silverswords/pulse","commit":"f80b70bb3a222a7ad51bad6d2a9795d30fc95365"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/14 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":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"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":"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":"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":"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":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dapr-bot.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/silverswords/pulse/dapr-bot.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/silverswords/pulse/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/silverswords/pulse/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/silverswords/pulse/golangci-lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/golangci-lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/silverswords/pulse/golangci-lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/stale.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/silverswords/pulse/stale.yml/master?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/go.yml:29","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/dapr-bot.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Warn: no topLevel permission defined: .github/workflows/golangci-lint.yml:1","Warn: no topLevel permission defined: .github/workflows/stale.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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 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":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0052 / GHSA-h395-qcrw-5vmq","Warn: Project is vulnerable to: GHSA-3vp4-m3rf-835h","Warn: Project is vulnerable to: GO-2023-1737 / GHSA-2c4m-59x9-fr2g","Warn: Project is vulnerable to: GO-2022-0307 / GHSA-g6w6-r76c-28j7","Warn: Project is vulnerable to: GO-2022-0351 / GHSA-6h3m-36w8-hv68","Warn: Project is vulnerable to: GO-2024-2980 / GHSA-2h2x-8hh2-mfq8","Warn: Project is vulnerable to: GO-2022-0355 / GHSA-fx95-883v-4q4h","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","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: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"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-23T16:15:54.216Z","repository_id":53747817,"created_at":"2025-08-23T16:15:54.216Z","updated_at":"2025-08-23T16:15:54.216Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28485457,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":["dapr","event-driven","eventbus","kafka","mqtt","nats","pubsub","pulse","redis","subscription","topic"],"created_at":"2026-01-16T22:39:05.117Z","updated_at":"2026-01-16T22:39:05.493Z","avatar_url":"https://github.com/silverswords.png","language":"Go","readme":"# pulse\r\n[![Go Report Card](https://goreportcard.com/badge/github.com/silverswords/pulse)](https://goreportcard.com/report/github.com/silverswords/pulse)\r\n[![visitor badges](https://visitor-badge.laobi.icu/badge?page_id=silverswords.pulse)](https://github.com/abserari)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/silverswords/pulse)](https://www.tickgit.com/browse?repo=github.com/silverswords/pulse)\r\n\r\n\u003c!-- [![Docker Pulls](https://img.shields.io/docker/pulls/yhyddr/pulse)](https://hub.docker.com/r/yhydddr) --\u003e\r\n[![Follow on Twitter](https://img.shields.io/twitter/follow/abserari.svg?style=social\u0026logo=twitter)](https://twitter.com/intent/follow?screen_name=abserari)\r\n[![Discord Banner](https://discord.com/api/guilds/771388143148073040/widget.png?style=banner2)](https://discord.gg/rRwryXfj3u)\r\n\r\nan eventbus made on portable MQ.\r\n\r\n\r\n## Usage\r\nCheck the example/pulse and find an example for supported MQ. \r\nNote: You need run your MQ first and get its address.\r\n\r\n### Use MQ as broker\r\nexample for natsstreaming.\r\n```go\r\nmeta := protocol.NewMetadata()\r\nmeta.SetDriver(nats.DriverName)\r\nmeta.Properties[nats.NatsURL] = \"nats://localhost:4222\"\r\nmeta.Properties[nats.NatsStreamingClusterID] = \"test-cluster\"\r\nmeta.Properties[nats.SubscriptionType] = \"topic\"\r\nmeta.Properties[nats.ConsumerID] = \"app-test-a\"\r\n\r\n```\r\n\r\n### Publisher\r\nPublisher is asynchronously and could get result about the success or failure to send the event.\r\n```go\r\nt, err := topic.NewTopic(meta, topic.WithMiddlewares(visitor.WithRetry(3)))\r\nif err != nil {\r\n    log.Error(err)\r\n    return\r\n}\r\n\r\nres := t.Publish(context.Background(), protocol.NewMessage(\"test\", \"\", []byte(\"hello\")))\r\ngo func() {\r\n    if _, err := res.Get(context.Background()); err != nil {\r\n    \tlog.Error(err)\r\n    }\r\n}()\r\n```\r\n\r\n### Subscribe\r\nReceive is a synchronous function and blocks until have an err set by like ctx.Done() or other error.\r\n```go\r\ns, err := subscription.NewSubscription(\"hello\", meta, subscription.WithCount())\r\nif err != nil {\r\n    log.Error(err)\r\n    return\r\n}\r\n\r\nerr = s.Receive(context.Background(), protocol.NewSubscribeRequest(\"test\", meta), func(ctx context.Context, m *protocol.Message) {\r\n    log.Debug(\"receive message \", m)\r\n})\r\n```\r\n\r\n\r\n## **feature**\r\n\r\n- Idempotence: Simply record in the map of each Subscription to avoid repeated processing by a single consumer. Nats can provide queueSubscribe\r\n\r\n- Orderliness: Messages use OrderingKey to ensure orderly delivery. If an error occurs, the sending of a certain OrderingKey will be suspended, and the empty key will not be suspended\r\n\r\n- Concurrent processing: Both topic and Subscription use concurrent processing. Pay attention to whether the middleware has critical resources\r\n\r\n- Reliability: ack is implemented independently to ensure that the message is delivered at least once.\r\n    In future: support QoS 0,1,2 three level.\r\n \r\n- Asynchronous: Message send asynchronously and could be **buffered** and **delay** send. \r\n\r\n- Batch Handle: Scheduler could buffer message and batch handle them if underlying MQ supports.\r\n\r\n# Architecture\r\n  - ![](https://firebasestorage.googleapis.com/v0/b/firescript-577a2.appspot.com/o/imgs%2Fapp%2Fcomputer%2FWOjfpzAWwh.png?alt=media\u0026token=376cb2ea-ab64-4887-9366-c1e23891cdcd)\r\n   \r\n  - ![](https://firebasestorage.googleapis.com/v0/b/firescript-577a2.appspot.com/o/imgs%2Fapp%2Fcomputer%2FiPkp26NkMs.png?alt=media\u0026token=432e16bb-ea5e-4faf-96ae-466924a3f932)\r\n\r\n## Concepts\r\n### Driver\r\nDriver is the realization of various protocol like Nats, http etc.\r\n\r\n### Message Format\r\nMessage is the object transport from the pulse endpoint. It's format as CloudEvents.\r\n                \r\n                {\r\n                  \"specversion\": \"1.x-wip\",\r\n                  \"type\": \"coolevent\",\r\n                  \"id\": \"xxxx-xxxx-xxxx\",\r\n                  \"source\": \"bigco.com\",\r\n                  \"data\": { ... }\r\n                }\r\n\r\n  \r\n## Reference\r\n\r\n### Hall of fame\r\n\u003ca href=\"https://github.com/zhenghaoz/gorse/graphs/contributors\"\u003e\r\n  \u003cimg src=\"https://contrib.rocks/image?repo=silverswords/pulse\" /\u003e\r\n\u003c/a\u003e\r\n\r\n### Repos\r\n\r\n    - nuid: now use nats's package nuid to generated uuid\r\n\r\n    - CloudEvent: a CNCF project\r\n\r\n    - Cloud State: sidecar project to move state out of application\r\n\r\n    - GoogleCloud Pub sub : use to get a new driver\r\n\r\n    - Dapr: sidecar Synthesizer\r\n\r\n    - Saga: pulse usage.\r\n\r\n    - Kong: siprit on extension.\r\n\r\n    - Kafka: log\r\n    \r\n    - axon: event source DDD CQRS\r\n    \r\n    - webhook: to establish a webhook to receive the response asynchronously\r\n    \r\n \r\n\r\n","funding_links":["https://github.com/sponsors/abserari"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverswords%2Fpulse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverswords%2Fpulse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverswords%2Fpulse/lists"}