{"id":20968115,"url":"https://github.com/mojocn/sseread","last_synced_at":"2025-05-14T09:33:32.674Z","repository":{"id":227818213,"uuid":"772459830","full_name":"mojocn/sseread","owner":"mojocn","description":"A tidy library seamlessly reads Server-Sent Events (SSE) from the response body of Go's standard HTTP package.","archived":false,"fork":false,"pushed_at":"2024-03-20T09:57:09.000Z","size":44,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T16:12:08.861Z","etag":null,"topics":["go","golang","server-sent-event","sse","sse-client"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/mojocn/sseread#pkg-index","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mojocn.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-03-15T08:32:20.000Z","updated_at":"2024-04-11T04:44:36.000Z","dependencies_parsed_at":"2024-06-21T12:57:23.652Z","dependency_job_id":"26b9d2cc-aaa4-4717-9d20-2d133f8863df","html_url":"https://github.com/mojocn/sseread","commit_stats":null,"previous_names":["mojocn/sseread"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojocn%2Fsseread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojocn%2Fsseread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojocn%2Fsseread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojocn%2Fsseread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojocn","download_url":"https://codeload.github.com/mojocn/sseread/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254112550,"owners_count":22016791,"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","server-sent-event","sse","sse-client"],"created_at":"2024-11-19T03:05:36.632Z","updated_at":"2025-05-14T09:33:27.651Z","avatar_url":"https://github.com/mojocn.png","language":"Go","readme":"# Server Sent Events Reader\n\n\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/mojocn/sseread?status.svg)](https://pkg.go.dev/github.com/mojocn/sseread?tab=doc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mojocn/sseread?)](https://goreportcard.com/report/github.com/mojocn/sseread)\n[![codecov](https://codecov.io/gh/mojocn/sseread/graph/badge.svg?token=3UC1L5K4LY)](https://codecov.io/gh/mojocn/sseread)\n[![Go version](https://img.shields.io/github/go-mod/go-version/mojocn/sseread.svg)](https://github.com/mojocn/sseread)\n[![Follow mojocn](https://img.shields.io/github/followers/mojocn?label=Follow\u0026style=social)](https://github.com/mojocn)\n\n\n\nThis is a straightforward library illustrating the method to read Server Sent Events (SSE) stream from the Response.Body in Golang.\n\n## Usage\ndownload the library using\n`go get -u github.com/mojocn/sseread@latest`\n\nsimple examples of how to use the library.\n\n1. [read SSE by callback](https://pkg.go.dev/github.com/mojocn/sseread#example-Read) \n2. [read SSE by channel](https://pkg.go.dev/github.com/mojocn/sseread#example-ReadCh)\n3. [cloudflare AI text generation example](cloudflare_ai_test.go)\n\n\n## Testing\n\n```bash\n# git clone https://github.com/mojocn/sseread.git \u0026\u0026 cd sseread\ngo test -v\n```\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojocn%2Fsseread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojocn%2Fsseread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojocn%2Fsseread/lists"}