{"id":20394282,"url":"https://github.com/hexcowboy/stetson","last_synced_at":"2025-09-22T18:43:37.545Z","repository":{"id":148847798,"uuid":"621038803","full_name":"hexcowboy/stetson","owner":"hexcowboy","description":"A pure rust pubsub server","archived":false,"fork":false,"pushed_at":"2024-02-02T20:42:37.000Z","size":193,"stargazers_count":2,"open_issues_count":6,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T19:01:07.467Z","etag":null,"topics":["publish-subscribe","pubsub","rust","server","websockets"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexcowboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2023-03-29T21:45:45.000Z","updated_at":"2024-07-07T19:43:46.000Z","dependencies_parsed_at":"2025-04-12T12:12:56.903Z","dependency_job_id":"207aced9-6863-4a0a-8dae-e3975ee18163","html_url":"https://github.com/hexcowboy/stetson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hexcowboy/stetson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexcowboy%2Fstetson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexcowboy%2Fstetson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexcowboy%2Fstetson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexcowboy%2Fstetson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexcowboy","download_url":"https://codeload.github.com/hexcowboy/stetson/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexcowboy%2Fstetson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275696239,"owners_count":25511354,"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-09-18T02:00:09.552Z","response_time":77,"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":["publish-subscribe","pubsub","rust","server","websockets"],"created_at":"2024-11-15T03:52:37.374Z","updated_at":"2025-09-22T18:43:37.494Z","avatar_url":"https://github.com/hexcowboy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  Stetson\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Stetson is a pure rust pubsub server over HTTP websockets.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Use it vanilla or fork it and make your own modifications.\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://crates.io/crates/stetson\"\u003e\n    \u003cimage src=\"https://img.shields.io/crates/v/stetson.svg\" alt=\"Crates.io\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\n## Usage\n\nInstall the binary\n\n```bash\ncargo install stetson\n```\n\nRun the server, making sure to set a publisher key\n\n```bash\necho \"PUBLISH_KEY=$(openssl rand -hex 24)\" \u003e .env ; stetson\n```\n\nYou can find the publisher key that was generated in the previous step in the `.env` file\n\n```bash\ncat .env\n```\n\n### Requests\n\n`subscribe`\n\n```json\n{ \"subscribe\": { \"topics\": [\"sports\", \"weather\"] } }\n```\n\n`unsubscribe`\n\n```json\n{ \"unsubscribe\": { \"topics\": [\"sports\"] } }\n```\n\n`publish`\n\n```json\n{ \"publish\": { \"topics\": [\"weather\"], \"message\": \"storms ahead\", \"key\": \"...\" } }\n```\n\n### Responses\n\n`message` - received when a new message from a subscribed topic is received\n\n```json\n{ \"message\": { \"topic\": \"weather\", \"message\": \"storms ahead\" } }\n```\n\n`error` - received when there was en error publishing a message\n\n```json\n{ \"error\": { \"message\": \"some error message here\" } }\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexcowboy%2Fstetson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexcowboy%2Fstetson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexcowboy%2Fstetson/lists"}