{"id":30329899,"url":"https://github.com/caido/actix-sse","last_synced_at":"2025-08-18T02:06:42.059Z","repository":{"id":306318391,"uuid":"1025809516","full_name":"caido/actix-sse","owner":"caido","description":"SSE implementation for Actix","archived":false,"fork":false,"pushed_at":"2025-07-24T21:41:04.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-17T18:44:28.021Z","etag":null,"topics":["actix","sse"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/caido.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-24T20:50:45.000Z","updated_at":"2025-07-26T13:33:21.000Z","dependencies_parsed_at":"2025-07-25T01:20:44.787Z","dependency_job_id":"940ca3d9-eaee-40ec-ac59-474c5be7ae72","html_url":"https://github.com/caido/actix-sse","commit_stats":null,"previous_names":["caido/actix-sse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caido/actix-sse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caido%2Factix-sse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caido%2Factix-sse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caido%2Factix-sse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caido%2Factix-sse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caido","download_url":"https://codeload.github.com/caido/actix-sse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caido%2Factix-sse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270932698,"owners_count":24670250,"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-08-18T02:00:08.743Z","response_time":89,"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":["actix","sse"],"created_at":"2025-08-18T02:06:36.904Z","updated_at":"2025-08-18T02:06:42.050Z","avatar_url":"https://github.com/caido.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Actix SSE\n\n[\u003cimg alt=\"github\" src=\"https://img.shields.io/badge/github-caido/actix_sse-8da0cb?style=for-the-badge\u0026labelColor=555555\u0026logo=github\" height=\"20\"\u003e](https://github.com/caido/actix-sse)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/actix-sse?color=fc8d62\u0026logo=rust\u0026style=for-the-badge\" height=\"20\"\u003e](https://crates.io/crates/actix-sse)\n\nSSE implementation for Actix, extracted from [actix-web-lab](https://github.com/robjtede/actix-web-lab/) with minimal dependencies.\n\n```rust\nuse std::{convert::Infallible, time::Duration};\n\n#[get(\"/from-stream\")]\nasync fn from_stream() -\u003e impl Responder {\n    let event_stream = futures_util::stream::iter([Ok::\u003c_, Infallible\u003e(actix_sse::Event::Data(\n        actix_sse::Data::new(\"foo\"),\n    ))]);\n\n    actix_sse::Sse::from_stream(event_stream).with_keep_alive(Duration::from_secs(5))\n}\n```\n\n## Migrating from actix-web-lab\n\nThis should mostly be a drop-in replacement for the `sse` module, but we did remove a few convenience methods.\n\n- `Data::from_json`: Serialize in the caller and use `Data::new`\n- `Data::set_id`: Use `Data::id`\n- `Sse::from_receiver`: Use `Sse::from_stream(tokio_stream::wrappers::ReceiverStream::new(rx))`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaido%2Factix-sse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaido%2Factix-sse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaido%2Factix-sse/lists"}