{"id":16343770,"url":"https://github.com/ixmatus/pub","last_synced_at":"2025-10-26T00:31:20.506Z","repository":{"id":19410964,"uuid":"22653021","full_name":"ixmatus/pub","owner":"ixmatus","description":"A CLI tool for piping from stdin to a redis pub/sub channel.","archived":false,"fork":false,"pushed_at":"2017-05-29T03:32:41.000Z","size":23,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T13:05:53.728Z","etag":null,"topics":["command-line","haskell","piping","pub","redis","redis-channel"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ixmatus.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":"2014-08-05T17:38:20.000Z","updated_at":"2024-07-01T16:18:43.000Z","dependencies_parsed_at":"2022-09-21T01:00:47.552Z","dependency_job_id":null,"html_url":"https://github.com/ixmatus/pub","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/ixmatus%2Fpub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixmatus%2Fpub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixmatus%2Fpub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ixmatus%2Fpub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ixmatus","download_url":"https://codeload.github.com/ixmatus/pub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238235648,"owners_count":19438725,"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":["command-line","haskell","piping","pub","redis","redis-channel"],"created_at":"2024-10-11T00:25:42.995Z","updated_at":"2025-10-26T00:31:20.164Z","avatar_url":"https://github.com/ixmatus.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome!\n![Hackage: Pub](https://img.shields.io/hackage/v/pub.svg?style=flat)\n![Build Status: Pub](https://travis-ci.org/ixmatus/pub.svg?branch=master)\n\nThe `pub` utility publishes input from stdin to a redis channel and the `sub`\nutility consumes from a redis channel, writing to stdout.\n\n## Quickstart\nPublishing to Redis from `stdin` is easy with the `pub` utility:\n```shell\n$ pub --help\nPipe stdin to a redis pub/sub channel\n\nUsage: pub --channel TEXT [--host STRING] [--port INTEGER] [--db INTEGER]\n           [--version]\n\nAvailable options:\n  -h,--help                Show this help text\n  --channel TEXT           Redis channel to publish to\n  --host STRING            Redis host (default: localhost)\n  --port INTEGER           Redis post (default: 6379)\n  --db INTEGER             Redis db (default: 0)\n\n$ journalctl -f nginx.service | pub --channel \"nginx-loglines\"\n```\n\nand subscribing to Redis channels and piping to `stdout` is also easy with the\n`sub` utility:\n\n```shell\n$ sub --help\nSubscribe to redis channels and pipe to stdout\n\nUsage: sub [--channel TEXT]... [--host STRING] [--port INTEGER] [--db INTEGER]\n           [--version]\n\nAvailable options:\n  -h,--help                Show this help text\n  --channel TEXT...        Redis channel(s) to subscribe to\n  --host STRING            Redis host (default: localhost)\n  --port INTEGER           Redis post (default: 6379)\n  --db INTEGER             Redis db (default: 0)\n\n$ sub --channel \"nginx-loglines\" --channel \"haproxy-loglines\" # This subscribes to both redis channels\n```\n\n## Building\nYou can build multiple ways:\n\n- `stack build`\n- `cabal build`\n- `nix-build --not-out-link -A pub release.nix`\n- `nix-shell -A pub.env release.nix`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixmatus%2Fpub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fixmatus%2Fpub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fixmatus%2Fpub/lists"}