{"id":15393604,"url":"https://github.com/daurnimator/pg-kinesis-bridge","last_synced_at":"2025-04-15T23:47:27.418Z","repository":{"id":57322581,"uuid":"99070128","full_name":"daurnimator/pg-kinesis-bridge","owner":"daurnimator","description":"Listen for events from PostgreSQL and send them to AWS Kinesis","archived":false,"fork":false,"pushed_at":"2017-08-10T04:31:41.000Z","size":32,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T18:54:16.543Z","etag":null,"topics":["kinesis","postgresql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daurnimator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-02T03:54:24.000Z","updated_at":"2022-05-12T13:30:09.000Z","dependencies_parsed_at":"2022-08-26T01:11:26.825Z","dependency_job_id":null,"html_url":"https://github.com/daurnimator/pg-kinesis-bridge","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Fpg-kinesis-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Fpg-kinesis-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Fpg-kinesis-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daurnimator%2Fpg-kinesis-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daurnimator","download_url":"https://codeload.github.com/daurnimator/pg-kinesis-bridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173060,"owners_count":21224481,"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":["kinesis","postgresql"],"created_at":"2024-10-01T15:19:45.735Z","updated_at":"2025-04-15T23:47:27.401Z","avatar_url":"https://github.com/daurnimator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pg-kinesis-bridge\n\nA daemon that will [listen](https://www.postgresql.org/docs/current/static/sql-listen.html) to a PostgreSQL notification channel and send the data to an [AWS Kinesis Stream](https://aws.amazon.com/kinesis/streams/).\n\n## Installation\n\nInstall with `npm` or [`yarn`](https://yarnpkg.com/):\n\n```sh\nnpm install -g pg-kinesis-bridge\n```\n\n\n## Usage\n\n```\nusage: pg-kinesis-bridge [-h] -c CHANNEL -s STREAMNAME\n\nListen for events from PostgreSQL and send them to AWS Kinesis\n\nOptional arguments:\n  -h, --help            Show this help message and exit.\n  -c CHANNEL, --channel CHANNEL\n                        PostgreSQL channel name\n  -s STREAMNAME, --streamName STREAMNAME\n                        Kinesis stream name\n```\n\nThe libraries used by pg-kinesis-bridge respect the normal environment variables used by postgres clients and aws clients.\nThis can be used as a simple way to pass configuration. e.g.\n\n```sh\nPGHOST=localhost PGPORT=1234 PGDATABASE=postgres AWS_PROFILE=work AWS_SDK_LOAD_CONFIG=y pg-kinesis-bridge -c CHANNEL -s STREAMNAME\n```\n\n\n## Similar Projects\n\n  - [pg-amqp-bridge](https://github.com/subzerocloud/pg-amqp-bridge) to send postgres notifications to [RabbitMQ](http://www.rabbitmq.com/) or services such as [Azure Event Hub](https://azure.microsoft.com/en-us/services/event-hubs/)\n  - [postgresql-to-amqp](https://github.com/FGRibreau/postgresql-to-amqp) an alternative for AMQP\n  - [pgsql-listen-exchange](https://github.com/gmr/pgsql-listen-exchange) an alternative for AMQP\n  - [skeeter](https://github.com/SpiderOak/skeeter) to send postgres notifications to [0MQ](http://zeromq.org/)\n  - [pg-bridge](https://github.com/matthewmueller/pg-bridge) for [AWS SNS](https://aws.amazon.com/sns/) or webhooks\n  - [postgrest-ws](https://github.com/diogob/postgrest-ws) for websockets\n  - [postgresql2websocket](https://github.com/frafra/postgresql2websocket) for websockets\n\n\n## Implementation Notes\n\nThe PostgreSQL notification channel name is used as the Kinesis `PartitionKey`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Fpg-kinesis-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaurnimator%2Fpg-kinesis-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaurnimator%2Fpg-kinesis-bridge/lists"}