{"id":23785016,"url":"https://github.com/spy16/fusion","last_synced_at":"2025-09-06T02:32:44.315Z","repository":{"id":57533763,"uuid":"281166402","full_name":"spy16/fusion","owner":"spy16","description":"💥 Fusion is a tiny stream processing library written in Go.","archived":false,"fork":false,"pushed_at":"2021-01-21T09:38:07.000Z","size":142,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T06:39:36.684Z","etag":null,"topics":["go","golang","golang-library","library","stream-processing","stream-processor","streams"],"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/spy16.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":null,"security":null,"support":null}},"created_at":"2020-07-20T16:14:56.000Z","updated_at":"2021-06-30T20:38:34.000Z","dependencies_parsed_at":"2022-09-26T18:21:17.424Z","dependency_job_id":null,"html_url":"https://github.com/spy16/fusion","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spy16%2Ffusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spy16%2Ffusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spy16%2Ffusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spy16%2Ffusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spy16","download_url":"https://codeload.github.com/spy16/fusion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232081602,"owners_count":18469913,"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","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":["go","golang","golang-library","library","stream-processing","stream-processor","streams"],"created_at":"2025-01-01T13:13:49.074Z","updated_at":"2025-01-01T13:13:49.564Z","avatar_url":"https://github.com/spy16.png","language":"Go","readme":"# 💥 Fusion\n\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/spy16/fusion)](https://pkg.go.dev/github.com/spy16/fusion)[![Go Report\nCard](https://goreportcard.com/badge/github.com/spy16/fusion)](https://goreportcard.com/report/github.com/spy16/fusion)\n\nFusion is a tiny stream processing library written in `Go`.\n\nSee [reactor](./reactor) for a stream processing tool built using fusion. \n\n## Features\n\n* Simple \u0026 lightweight.\n* Highly Composable. Compose `Proc` implementations in a way that is similar to middleware pattern to get concurrent\n  processing, automatic retries etc.\n* Use for simple single node or more complex distributed setup by using different\n  `fusion.Stream` and `fusion.Proc` implementations.\n* Zero dependencies.\n\n## Usage\n\nA simple line counter implementation:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"os\"\n\t\"sync/atomic\"\n\t\"github.com/spy16/fusion\"\n)\n\nfunc main() {\n\tcount := int64(0)\n\trunner := fusion.Runner{\n      Stream: \u0026fusion.LineStream{From: os.Stdin},\n      Proc: \u0026fusion.Fn{\n      \tWorkers: 5,\n      \tFunc: func(ctx context.Context, msg fusion.Msg) error {\n      \t  atomic.AddInt64(\u0026count, 1)\n      \t  return nil\n      \t},\n      },\n\t}\n\t_ = runner.Run(context.Background())\n\tfmt.Printf(\"Count=%d\\n\", count)\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspy16%2Ffusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspy16%2Ffusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspy16%2Ffusion/lists"}