{"id":39021391,"url":"https://github.com/koenbollen/pubsubcat","last_synced_at":"2026-01-17T17:28:40.329Z","repository":{"id":57693173,"uuid":"124751963","full_name":"koenbollen/pubsubcat","owner":"koenbollen","description":"Google Pub/Sub Swiss Army Knife","archived":false,"fork":false,"pushed_at":"2019-10-07T12:34:23.000Z","size":41,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T11:55:27.056Z","etag":null,"topics":["golang","google","pubsub","utility"],"latest_commit_sha":null,"homepage":"https://github.com/koenbollen/pubsubcat","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koenbollen.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":"2018-03-11T11:59:53.000Z","updated_at":"2022-04-22T09:52:14.000Z","dependencies_parsed_at":"2022-09-26T21:01:12.003Z","dependency_job_id":null,"html_url":"https://github.com/koenbollen/pubsubcat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koenbollen/pubsubcat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenbollen%2Fpubsubcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenbollen%2Fpubsubcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenbollen%2Fpubsubcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenbollen%2Fpubsubcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koenbollen","download_url":"https://codeload.github.com/koenbollen/pubsubcat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koenbollen%2Fpubsubcat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28512906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","google","pubsub","utility"],"created_at":"2026-01-17T17:28:40.241Z","updated_at":"2026-01-17T17:28:40.298Z","avatar_url":"https://github.com/koenbollen.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pubsubcat ![CI](https://github.com/koenbollen/pubsubcat/workflows/CI/badge.svg) [![Go Report Card](https://goreportcard.com/badge/github.com/koenbollen/pubsubcat)](https://goreportcard.com/report/github.com/koenbollen/pubsubcat)\nThe Google Pub/Sub Swiss Army Knife\n\n---\n\n_pubsubcat_ is a developer's utility for using [Google Cloud Pub/Sub]. Use it to\nquickly peek into a topic or when you want to manually publish a message.\n\nOne of the main features is that this tool automatically creates a new temporary\nsubscription on topic when you subscribe and cleans it when it's no longer used.\n\nInspired by [kafkacat] and initially created to get acquainted with Pub/Sub.\n\n## Installation\n\n```\ngo get -u github.com/koenbollen/pubsubcat\n```\n\n## Usage\n\n```\nUsage:\n  pubsubcat [flags]\n  pubsubcat [command]\n\nAvailable Commands:\n  create      Create topics and subscriptions\n  help        Help about any command\n  ls          List topics and subscriptions\n  pipe        Pipe a topic directly to another using a temporary subscription\n  pop         alias for: `pubsubcat subscribe --count 1 TOPIC`\n  publish     Publish input lines as messages\n  subscribe   Subscribe to a topic using a temporary subscription\n\nFlags:\n      --config string    config file (default is ~/.pubsubcat)\n  -h, --help             help for pubsubcat\n  -p, --project string   Google Cloud Project to work under\n  -q, --quiet            only output messages\n  -v, --verbose count    increase verbosity\n\nUse \"pubsubcat [command] --help\" for more information about a command.\n```\n\n## Examples\n\n#### Create and list topics:\n\n```\n$ pubsubcat create my-topic\nprojects/bnl-blendle/topics/my-topic\n$ pubsubcat ls\nprojects/bnl-blendle/topics/my-topic\n```\n\n_pubsubcat_ can create and list topics and subscriptions with the default configuration.\n\n#### Publish a message:\n\n```\n$ date | pubsubcat publish my-topic\n] publishing lines from stdin to topic my-topic\n] eof, syncing\n$\n```\n\n_pubsubcat_ read from stdin and publish each line as a message on the given topic.\n\n#### Subscribing to a topic:\n\n```\n$ pubsubcat subscribe my-topic\n] listening on topic \"my-topic\" using subscription \"pubsubcat-my-topic-4d65822107fcfd52-1530794401\"\nThu Jul  5 14:40:06 CEST 2018\n^C\n] stopped receiving, cleaning up temporary subscription\n```\n\n_pubsubcat_ creates a temporary subscription to read from the given topic without consuming messages.\n\n[google cloud pub/sub]: https://cloud.google.com/pubsub/\n[kafkacat]: https://github.com/edenhill/kafkacat\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoenbollen%2Fpubsubcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoenbollen%2Fpubsubcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoenbollen%2Fpubsubcat/lists"}