{"id":15861997,"url":"https://github.com/owenrumney/pubsub","last_synced_at":"2026-01-20T13:04:58.520Z","repository":{"id":65447708,"uuid":"592361947","full_name":"owenrumney/pubsub","owner":"owenrumney","description":"Simple pubsub tool to work with GCP PubSub emulator","archived":false,"fork":false,"pushed_at":"2023-02-25T02:35:33.000Z","size":27,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T12:18:58.763Z","etag":null,"topics":["gcp","pubsub"],"latest_commit_sha":null,"homepage":"","language":"Go","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/owenrumney.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":"2023-01-23T15:14:27.000Z","updated_at":"2023-09-01T12:45:06.000Z","dependencies_parsed_at":"2024-06-21T01:08:11.972Z","dependency_job_id":null,"html_url":"https://github.com/owenrumney/pubsub","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"f834bed5ff3b1947e20e619a9fe3040d04526020"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/owenrumney/pubsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenrumney%2Fpubsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenrumney%2Fpubsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenrumney%2Fpubsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenrumney%2Fpubsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owenrumney","download_url":"https://codeload.github.com/owenrumney/pubsub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owenrumney%2Fpubsub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28603423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"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":["gcp","pubsub"],"created_at":"2024-10-05T22:23:10.870Z","updated_at":"2026-01-20T13:04:58.503Z","avatar_url":"https://github.com/owenrumney.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pubsub\n\n## What is it?\n\nIt's a simple pubsub implementation in Go for interacting with the [GCP PubSub Emulator](https://cloud.google.com/sdk/gcloud/reference/beta/emulators/pubsub).\n\nThe standard `gcloud pubsub` command [doesn't support using the emulator](https://cloud.google.com/pubsub/docs/emulator?authuser=2#using_the_emulator).\n\n## How do I use it?\n\n### Install\n\nThe simplest and only way to install at the moment is to use `go install`... other ways will be added shortly.\n\n```bash\ngo install github.com/owenrumney/pubsub/cmd/pubsub@latest\n```\n\n### Operation?\n\nTo get the top level help, use\n\n```bash\npubsub --help\n\npubsub help\nUsage:\n  pubsub [command]\n\nAvailable Commands:\n  help          Help about any command\n  subscriptions List create and delete subscriptions\n  topics        List create and delete topics\n\nFlags:\n  -d, --debug               Enable debug logging\n  -h, --help                help for pubsub\n  -p, --project string      GCP project ID (default \"test-project\")\n  -t, --topic-name string   Topic name\n\nUse \"pubsub [command] --help\" for more information about a command.\n```\n\nAll commands require a project ID to be set using `-p` or `--project`. If this isn't done, the default `test-project` is used. Optionally, you can set the `PROJECT_ID` environment variable to save you the keystrokes.\n\n#### Topics\n\nTo get help on topics, use\n\n```bash\npubsub topics --help\n\nList create and delete topics\n\nUsage:\n  pubsub topics [command]\n\nAvailable Commands:\n  create      Create a topic\n  delete      Delete a topic\n  list        List topics\n  tail        Tail a topic\n\nFlags:\n  -h, --help   help for topics\n\nGlobal Flags:\n  -d, --debug               Enable debug logging\n  -p, --project string      GCP project ID (default \"test-project\")\n  -t, --topic-name string   Topic name\n\nUse \"pubsub topics [command] --help\" for more information about a command.\n\n```\n\n##### Listing Topics\n\n```bash\npubsub topics -p my-test-project list\n```\n\n##### Creating Topics\n\n```bash\npubsub topics create -p my-test-project -t my-topic\n```\n\n##### Deleting Topics\n\n```bash\npubsub topics delete -p my-test-project -t my-topic\n```\n\n##### Tailing Topics\n\nDefault tail is for 10 minutes, this can be changed with the `--tail-duration` flag; use the format `10s` for 10 seconds, `5m` for 5 minutes, `1h` for 1 hour, etc.\n\n```bash\npubsub topics tail -p my-test-project -t my-topic --tail-duration 5m\n```\n\n#### Subscriptions\n\nTo get help on subscriptions, use\n\n```bash\npubsub subscriptions --help\n\nList create and delete subscriptions\n\nUsage:\n  pubsub subscriptions [command]\n\nAvailable Commands:\n  create      Create a subscription\n  delete      Delete a subscription\n  list        List subscriptions\n\nFlags:\n  -h, --help   help for subscriptions\n\nGlobal Flags:\n  -d, --debug               Enable debug logging\n  -p, --project string      GCP project ID (default \"test-project\")\n  -t, --topic-name string   Topic name\n\nUse \"pubsub subscriptions [command] --help\" for more information about a command.\n```\n\n##### Listing Subscriptions\n\n```bash\npubsub subscriptions -p my-test-project list\n```\n\n##### Creating Subscriptions\n\n```bash\npubsub subscriptions create -p my-test-project -t my-topic -s my-subscription\n```\n\nWhen creating a subscription, you can optionally create push endpoint using the `-e` or `--push-endpoint` flag.\n\n##### Deleting Subscriptions\n\n```bash\npubsub subscriptions delete -p my-test-project -s my-subscription\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenrumney%2Fpubsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowenrumney%2Fpubsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowenrumney%2Fpubsub/lists"}