{"id":18893217,"url":"https://github.com/jmatth11/db_listener","last_synced_at":"2026-05-09T05:33:15.883Z","repository":{"id":258023746,"uuid":"866233165","full_name":"jmatth11/db_listener","owner":"jmatth11","description":"experiment with listening to table updates in postgres","archived":false,"fork":false,"pushed_at":"2025-09-12T21:05:52.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T23:01:16.765Z","etag":null,"topics":["db","notifications","postgres","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmatth11.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-01T21:59:22.000Z","updated_at":"2025-09-12T21:05:56.000Z","dependencies_parsed_at":"2024-11-12T22:27:26.711Z","dependency_job_id":"b7ce5855-91e1-4cbe-bb99-b611c04ce66d","html_url":"https://github.com/jmatth11/db_listener","commit_stats":null,"previous_names":["jmatth11/db_listener"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmatth11/db_listener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmatth11%2Fdb_listener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmatth11%2Fdb_listener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmatth11%2Fdb_listener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmatth11%2Fdb_listener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmatth11","download_url":"https://codeload.github.com/jmatth11/db_listener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmatth11%2Fdb_listener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32808458,"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":["db","notifications","postgres","zig"],"created_at":"2024-11-08T08:12:30.190Z","updated_at":"2026-05-09T05:33:15.874Z","avatar_url":"https://github.com/jmatth11.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DB listener\n\nSets up listeners on all tables in a postgres database to be notified of insert/update/delete.\n\nThe program tears down listeners once brought down.\n\nYou can use this info to display new or updated entries happening to your database in real time as a kind of local monitoring system.\n\nThis was driven by the desire to debug DB changes easier for local development.\n\n\nThis program also spins up a small server that allows for a websocket connection to get updates on the DB notifications. You can find a default implementation [here](https://github.com/jmatth11/db_listener_web)\n\n## Run with docker.\n\nOpen both of these files to view what build/environment args you can add to fit\nyour needs. A list of args are shown in comments within the files.\n\n### Build\n\nUse the `docker_build.sh` file to build the `db-listener` docker image.\n\n### Run\n\nUse the `docker_run.sh` file to run the `db-listener` docker image.\n\nBy default it runs with network mode set to `host` so the image can connect to\nthe postgres DB on the host machine.\n\nIt will also pull the simple db-listener web project and host it on port `3000`\nby default. This can be changed in the `docker_build.sh` file with flags.\n\n## Demo\n\nhttps://github.com/user-attachments/assets/e6ab4dd6-138d-4afb-b002-115766010c2f\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmatth11%2Fdb_listener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmatth11%2Fdb_listener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmatth11%2Fdb_listener/lists"}