{"id":21878967,"url":"https://github.com/nitro/go-hermes-prototype","last_synced_at":"2025-04-15T03:06:59.734Z","repository":{"id":57602824,"uuid":"105891595","full_name":"Nitro/go-hermes-prototype","owner":"Nitro","description":"WebSocket asynchronous pub-sub messaging system","archived":false,"fork":false,"pushed_at":"2018-04-03T20:23:18.000Z","size":28,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T19:20:32.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Nitro.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":"2017-10-05T13:11:13.000Z","updated_at":"2019-09-03T20:27:07.000Z","dependencies_parsed_at":"2022-08-27T22:03:23.583Z","dependency_job_id":null,"html_url":"https://github.com/Nitro/go-hermes-prototype","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitro%2Fgo-hermes-prototype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitro%2Fgo-hermes-prototype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitro%2Fgo-hermes-prototype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nitro%2Fgo-hermes-prototype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nitro","download_url":"https://codeload.github.com/Nitro/go-hermes-prototype/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226881023,"owners_count":17696894,"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-11-28T08:14:15.950Z","updated_at":"2024-11-28T08:14:16.664Z","avatar_url":"https://github.com/Nitro.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hermes\n![Hermes](resources/hermes.svg)\n\n## Purpose\nHermes is an asynchronous pub-sub messaging system that uses the Websocket protocol to talk to its HTTP clients. It's meant to be used as a lightweight self-hosted replacement for Pusher.\n\n## Configuration\n\nThe following environment variables are recognised by the Go application:\n\nVariable                 | Mandatory | Default\n-------------------------| --------- | -------------------\nHERMES_HTTP_PORT         | no        | 8000\nHERMES_NATS_URL          | no        | nats://localhost:4222\nHERMES_WEBSOCKET_TIMEOUT | no        | 15m\nHERMES_LOGGING_LEVEL     | no        | info\n\n## Dependencies\n- Websockets:       https://github.com/gobwas/ws\n- NATS client:      https://github.com/nats-io/go-nats\n\n## Design\nA NATS server has to run first for Hermes to work. Hermes uses NATS to handle the pub-sub functionality.\n\nHermes exposes an HTTP server that serves two routes:\n- `/subscribe` - clients can use it to initiate a websocket connection via HTTP GET and request subscription to mesages with a given \"subject\"\n- `/publish` - backend services can send messages to it via HTTP POST requests, which contain a query parameter `subj` that specifies the NATS \"subject\". Subsequently, Hermes will broadcast the received message to the clients that are subscribed to this \"subject\"\n\n![Hermes Architecture](resources/architecture.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitro%2Fgo-hermes-prototype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitro%2Fgo-hermes-prototype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitro%2Fgo-hermes-prototype/lists"}