{"id":15373023,"url":"https://github.com/vi/postsse","last_synced_at":"2025-04-15T12:31:53.840Z","repository":{"id":61995223,"uuid":"274960407","full_name":"vi/postsse","owner":"vi","description":"HTTP POST and Server-sent events interconnector","archived":false,"fork":false,"pushed_at":"2022-10-25T00:24:23.000Z","size":23,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T21:12:26.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/vi.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-06-25T16:09:37.000Z","updated_at":"2024-12-06T03:42:42.000Z","dependencies_parsed_at":"2022-10-24T22:45:20.157Z","dependency_job_id":null,"html_url":"https://github.com/vi/postsse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fpostsse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fpostsse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fpostsse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Fpostsse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/postsse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637832,"owners_count":21137538,"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-01T13:54:07.421Z","updated_at":"2025-04-15T12:31:53.590Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postsse\nHTTP POST and Server-sent events interconnector, allowing simple publish-subsribe scheme using GET and POST requests.\n\n# Features\n\n* Listening for HTTP 1.1 and HTTP 2 connections and handling GET or POST requests on arbitrary URL.\n* Broadcasting each POSTed message to each ongoing GET request as a SSE event.\n* Each URL path gets a separate broadcast domain.\n\nThis is intended to be used as a building block, especially during development or prototyping.\n\n# Limitations\n\n* If receiver reads messages slowly, messages get dropped. If you want adjustable buffer size or other stategies (buffer endlessly or slow down senders), open Github issue with a feature request.\n* No DoS resistance. Each encountered URL path is remembered forever, there are no limitations for message size or number of paths or receivers. \n\n# Installation\n\nDownload pre-built executables from [Github releases](https://github.com/vi/postsse/releases/), install it from source code with `cargo install --path .` or from crates.io with `cargo install postsse`.\n\n# Example\n\n```\n$ postsse 127.0.0.1:1234\n\n$ curl -v http://127.0.0.1:1234/\n*   Trying 127.0.0.1:1234...\n* Connected to 127.0.0.1 (127.0.0.1) port 1234 (#0)\n\u003e GET / HTTP/1.1\n\u003e Host: 127.0.0.1:1234\n\u003e User-Agent: curl/7.74.0\n\u003e Accept: */*\n\u003e\n* Mark bundle as not supporting multiuse\n\u003c HTTP/1.1 200 OK\n\u003c content-type: text/event-stream\n\u003c access-control-allow-origin: *\n\u003c transfer-encoding: chunked\n\u003c date: Mon, 24 Oct 2022 21:58:36 GMT\n\u003c\ndata: 123        | $ curl http://127.0.0.1:1234/ -d 123\n                 |\ndata: qwerty     | $ curl http://127.0.0.1:1234/ -d qwerty\n                 |\ndata: ABC        | $ curl http://127.0.0.1:1234/ \\\ndata: DEF        |     --data-binary $'ABC\\nDEF\\n'\n```\n\n# See also\n\n* https://github.com/vi/wsbroad - WebSocket analogue. If needed, it is not hard to create a combined publish-subscriber with both POST/SSE and WebSockets.\n* https://github.com/vi/line2httppost - CLI tool to send stdin lines as POST requests, fits well with postsse.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fpostsse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Fpostsse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Fpostsse/lists"}