{"id":16480608,"url":"https://github.com/fredericheem/pg-live-table","last_synced_at":"2025-10-27T17:30:46.931Z","repository":{"id":57322588,"uuid":"47518126","full_name":"FredericHeem/pg-live-table","owner":"FredericHeem","description":"Real time monitoring of Postgres database tables","archived":false,"fork":false,"pushed_at":"2019-09-01T20:55:13.000Z","size":24,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T07:13:54.348Z","etag":null,"topics":["postgresql","realtime"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/FredericHeem.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}},"created_at":"2015-12-06T23:22:19.000Z","updated_at":"2021-02-04T14:34:35.000Z","dependencies_parsed_at":"2022-08-26T01:11:27.351Z","dependency_job_id":null,"html_url":"https://github.com/FredericHeem/pg-live-table","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Fpg-live-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Fpg-live-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Fpg-live-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredericHeem%2Fpg-live-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FredericHeem","download_url":"https://codeload.github.com/FredericHeem/pg-live-table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238527281,"owners_count":19487190,"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":["postgresql","realtime"],"created_at":"2024-10-11T13:04:46.165Z","updated_at":"2025-10-27T17:30:41.647Z","avatar_url":"https://github.com/FredericHeem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\u003e pg-live-table: Postgres live monitoring\n\nA javascript library to monitor in real time Postgresql database table.\n\n[![Build Status][travis-image]][travis-url]\n[![Code Climate](https://codeclimate.com/github/FredericHeem/pg-live-table/badges/gpa.svg)](https://codeclimate.com/github/FredericHeem/pg-live-table) [![Coverage Status](https://coveralls.io/repos/FredericHeem/pg-live-table/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/FredericHeem/pg-live-table?branch=master) [![NPM version][npm-image]][npm-url]\n\n[![Dependency Status][daviddm-image]][daviddm-url]\n\n## Install\n\n```sh\n$ npm install --save pg-live-table\n```\n\n\n## Usage\n\n```js\nimport PgLiveTable from 'pg-live-table';\n\nlet dbUrl = 'postgres://username:password@localhost/database';\nlet liveTable = PgLiveTable({dbUrl: dbUrl);\n\nlet ee = await liveTable.monitor('mytable');\nee.on('insert', (payload) =\u003e {\n  console.log(`GOT insert: data: ${payload.data}`);\n})\n.on('update', (payload) =\u003e {\n  let {old_data, new_data} = payload;\n  console.log(`GOT update: old: ${old_data}, new: ${new_data}`);\n})\n.on('delete', (payload) =\u003e {\n  console.log(`GOT delete: data: ${payload.data}`);\n});\n\nawait liveTable.listen();\n\n//When done, don't forget to call liveTable.close()\n\n```\n\n## Test\n\nMake sure Postgres is running locally before running the test\n\n    $ npm test\n\n## License\n\nMIT © [Frederic Heem](https://github.com/FredericHeem)\n\n\n[npm-image]: https://badge.fury.io/js/pg-live-table.svg\n[npm-url]: https://npmjs.org/package/pg-live-table\n[travis-image]: https://travis-ci.org/FredericHeem/pg-live-table.svg?branch=master\n[travis-url]: https://travis-ci.org/FredericHeem/pg-live-table\n[daviddm-image]: https://david-dm.org/FredericHeem/pg-live-table.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/FredericHeem/pg-live-table\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericheem%2Fpg-live-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredericheem%2Fpg-live-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericheem%2Fpg-live-table/lists"}