{"id":22293576,"url":"https://github.com/xi/via","last_synced_at":"2025-07-29T00:31:12.567Z","repository":{"id":150048454,"uuid":"252927138","full_name":"xi/via","owner":"xi","description":"Simple pubsub server inspired by https://patchbay.pub/","archived":false,"fork":false,"pushed_at":"2025-06-16T07:49:07.000Z","size":42,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-16T08:48:33.556Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/xi.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,"zenodo":null}},"created_at":"2020-04-04T06:35:00.000Z","updated_at":"2025-06-16T07:49:11.000Z","dependencies_parsed_at":"2025-06-16T08:33:17.745Z","dependency_job_id":null,"html_url":"https://github.com/xi/via","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xi/via","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi%2Fvia","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi%2Fvia/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi%2Fvia/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi%2Fvia/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xi","download_url":"https://codeload.github.com/xi/via/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi%2Fvia/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267610238,"owners_count":24115430,"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-07-28T02:00:09.689Z","response_time":68,"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":"2024-12-03T17:29:43.634Z","updated_at":"2025-07-29T00:31:12.532Z","avatar_url":"https://github.com/xi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Via - Simple pubsub server\n\nThis is very much inspired by \u003chttps://patchbay.pub/\u003e and its clones\n[conduit](https://github.com/prologic/conduit) and\n[duct](https://github.com/schollz/duct).\n\n## Usage\n\nStart the server:\n\n\tvia [-v] [-d storage_dir] [port]\n\nThen start sending requests on the client:\n\n\t# start listening for server sent event stream\n\tcurl http://localhost:8001/msg/someid\n\n\t# POST a message\n\tcurl http://localhost:8001/msg/someid -d somedata\n\nUse the `hmsg` prefix if you want to keep a history:\n\n\t# start listening and request any messages you may have missed\n\tcurl http://localhost:8001/hmsg/someid -H 'Last-Event-Id: 3'\n\n\t# POST works just as before\n\tcurl http://localhost:8001/hmsg/someid -d somedata\n\n\t# DELETE deletes the history\n\tcurl http://localhost:8001/hmsg/someid -X DELETE\n\n\t# the history only keeps up to 100 entries\n\t# you can consolidate it by replacing all entries by a single message\n\t# the `historyRemaining` field in POST responses tells you how much space is left\n\tcurl http://localhost:8001/hmsg/someid -d combined -H 'Last-Event-Id: 3' -X PUT\n\nYou should regularly clean up old files:\n\n\tfind {storage_dir} -type f -mtime +7 -delete\n\n## Differences to patchbay\n\n-\tno support for MPMC (blocking POST)\n-\tno support for req/res\n-\tno support for blocking GET\n-\tsupport for [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events)\n-\tsupport for passwords\n-\tsupport for message history\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxi%2Fvia","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxi%2Fvia","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxi%2Fvia/lists"}