{"id":24057482,"url":"https://github.com/fbielejec/grpc-chat","last_synced_at":"2026-05-09T05:08:37.884Z","repository":{"id":138884269,"uuid":"330964351","full_name":"fbielejec/gRPC-chat","owner":"fbielejec","description":"gRPC bidirectional chat with pubsub via redis","archived":false,"fork":false,"pushed_at":"2021-01-21T16:59:40.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T12:18:50.264Z","etag":null,"topics":["bidirectional","chat","grpc","redis","rust","streaming"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fbielejec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-01-19T11:56:10.000Z","updated_at":"2021-01-20T07:45:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"33fbd6f8-6453-4ccf-adfc-12c9801a0bed","html_url":"https://github.com/fbielejec/gRPC-chat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fbielejec/gRPC-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbielejec%2FgRPC-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbielejec%2FgRPC-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbielejec%2FgRPC-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbielejec%2FgRPC-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fbielejec","download_url":"https://codeload.github.com/fbielejec/gRPC-chat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fbielejec%2FgRPC-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["bidirectional","chat","grpc","redis","rust","streaming"],"created_at":"2025-01-09T05:42:25.295Z","updated_at":"2026-05-09T05:08:37.877Z","avatar_url":"https://github.com/fbielejec.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC-redis-pubsub\n\nping-pong + chat server using gRPC and proto3 with Rust.\nChat server uses redis pub-sub for dispatching messages to clients connected to different instances of the service.\n\n## start backend service (redis)\n\n```bash\ndocker-compose -f docker-compose.yml up\n```\n\n## watch, build and run\n\n```bash\ncargo watch -x \"run -- --bin server\"\n```\n\n## connect a [grpcurl](https://github.com/fullstorydev/grpcurl) client to the running server\n\n*Streaming* : connect as users with id \"filip\" and \"juan\" (using \"from\" header), read messages from stdin and stream them to the connected clients:\n\n```bash\ngrpcurl -plaintext -proto proto/chat.proto -d @ -H 'from: filip' 127.0.0.1:3001 chat.Chat/Chat\n\ngrpcurl -plaintext -proto proto/chat.proto -d @ -H 'from: juan' 127.0.0.1:3001 chat.Chat/Chat\n```\n\nMessages are routed using the \"to\" field, e.g. this message will end up in the stdout of the user \"filip\" when sent form stdin of user \"juan\":\n\n```json\n{\"to\": \"filip\",\"message\":\"Hi\"}\n```\n\n*Streaming* : send one message from user id \"juan\" to the chat endpoint, message gets picked up by the user \"filip\":\n\n```bash\ngrpcurl -plaintext -import-path ./proto -proto chat.proto -H 'from: juan' -d '{\"to\": \"filip\", \"message\": \"hello!\"}' 127.0.0.1:3001 chat.Chat/Chat\n```\n\nInvoke the ping-pong endpoint:\n\n```bash\ngrpcurl -plaintext -import-path ./proto -proto pingpong.proto 127.0.0.1:3001 pingpong.PingPong/SendPing\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbielejec%2Fgrpc-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffbielejec%2Fgrpc-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffbielejec%2Fgrpc-chat/lists"}