{"id":24445006,"url":"https://github.com/ceramicnetwork/cross-eventsource","last_synced_at":"2025-10-07T09:59:20.199Z","repository":{"id":265474439,"uuid":"742473737","full_name":"ceramicnetwork/cross-eventsource","owner":"ceramicnetwork","description":"EventSource for Node.js and a browser","archived":false,"fork":false,"pushed_at":"2024-01-12T15:02:43.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-10-01T22:34:19.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ceramicnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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,"zenodo":null}},"created_at":"2024-01-12T15:01:57.000Z","updated_at":"2024-01-12T15:02:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"bcb21853-4df0-466c-9f81-186e1a73a3f8","html_url":"https://github.com/ceramicnetwork/cross-eventsource","commit_stats":null,"previous_names":["ceramicnetwork/cross-eventsource"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ceramicnetwork/cross-eventsource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceramicnetwork%2Fcross-eventsource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceramicnetwork%2Fcross-eventsource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceramicnetwork%2Fcross-eventsource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceramicnetwork%2Fcross-eventsource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceramicnetwork","download_url":"https://codeload.github.com/ceramicnetwork/cross-eventsource/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceramicnetwork%2Fcross-eventsource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278755161,"owners_count":26040034,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2025-01-20T23:01:25.519Z","updated_at":"2025-10-07T09:59:20.194Z","avatar_url":"https://github.com/ceramicnetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cross-eventsource\n\nProvides [EventSource](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) for Node.js and browser.\n\nIf in browser, use standard `globalThis.EventSource`. If in Node.js, use EventSource implementation\nof [eventsource package](https://www.npmjs.com/package/eventsource).\n\n## Installation\n\n```shell\npnpm add cross-eventsource\n```\n\n## Usage\n\n```typescript\nimport { EventSource  } from \"cross-eventsource\";\n\n// And then use it like in a browser\nconst source = new EventSource('http://localhost/feed')\nsource.addEventListener('message', (event) =\u003e {\n  console.log('message', event)\n})\nsource.addEventListener('error', error =\u003e {\n  console.log('error', error)\n})\nconsole.log('listening...')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceramicnetwork%2Fcross-eventsource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceramicnetwork%2Fcross-eventsource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceramicnetwork%2Fcross-eventsource/lists"}