{"id":16644197,"url":"https://github.com/75lb/sse-server","last_synced_at":"2025-05-07T18:40:51.232Z","repository":{"id":57368859,"uuid":"161941131","full_name":"75lb/sse-server","owner":"75lb","description":"Push an event stream from terminal to browser","archived":false,"fork":false,"pushed_at":"2023-09-03T13:49:08.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T23:04:15.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/75lb.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-15T20:26:25.000Z","updated_at":"2024-03-27T07:07:46.000Z","dependencies_parsed_at":"2024-10-12T08:20:49.299Z","dependency_job_id":null,"html_url":"https://github.com/75lb/sse-server","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"a2f7712c2f3dab5567354ac14cea8539415323a3"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fsse-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fsse-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fsse-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/75lb%2Fsse-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/75lb","download_url":"https://codeload.github.com/75lb/sse-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252936036,"owners_count":21828062,"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":[],"created_at":"2024-10-12T08:10:45.389Z","updated_at":"2025-05-07T18:40:51.213Z","avatar_url":"https://github.com/75lb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![view on npm](https://badgen.net/npm/v/sse-server)](https://www.npmjs.org/package/sse-server)\n[![npm module downloads](https://badgen.net/npm/dt/sse-server)](https://www.npmjs.org/package/sse-server)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/sse-server)](https://github.com/75lb/sse-server/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/sse-server)](https://github.com/75lb/sse-server/network/dependents?dependent_type=PACKAGE)\n[![Node.js CI](https://github.com/75lb/sse-server/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/sse-server/actions/workflows/node.js.yml)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# sse-server\n\nPipe an event stream from terminal to browser.\n\n## Synopsis\n\nLaunch the server.\n\n```\n$ sse-server\nSSE server: http://localhost:9000\nInput socket: localhost:9090\n```\n\nPipe events to the input socket.\n\n```\n$ echo '{ \"name\": \"something\", \"data\": \"one\" }' | nc -c localhost 9090\n$ echo '{ \"name\": \"something\", \"data\": \"two\" }' | nc -c localhost 9090\n```\n\nConnect a browser to the SSE server to consume the [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).\n\n```\n$ curl http://localhost:9000\nevent: something\ndata: \"one\"\n\nevent: something\ndata: \"two\"\n```\n\n* * *\n\n\u0026copy; 2018-22 Lloyd Brookes \\\u003c75pound@gmail.com\\\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F75lb%2Fsse-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F75lb%2Fsse-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F75lb%2Fsse-server/lists"}