{"id":27383783,"url":"https://github.com/fedify-dev/postgres","last_synced_at":"2025-04-13T15:57:10.440Z","repository":{"id":257790543,"uuid":"861241674","full_name":"fedify-dev/postgres","owner":"fedify-dev","description":"PostgreSQL drivers for Fedify","archived":false,"fork":false,"pushed_at":"2025-03-28T12:24:38.000Z","size":101,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T17:54:38.203Z","etag":null,"topics":["fedify","postgres","postgresql"],"latest_commit_sha":null,"homepage":"https://jsr.io/@fedify/postgres","language":"TypeScript","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/fedify-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yaml","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},"funding":{"github":"dahlia"}},"created_at":"2024-09-22T11:42:47.000Z","updated_at":"2025-03-28T12:24:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"43efd3e5-c760-48f5-b8b2-3f3f507d09e8","html_url":"https://github.com/fedify-dev/postgres","commit_stats":null,"previous_names":["dahlia/fedify-postgres","fedify-dev/postgres"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fpostgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fpostgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fpostgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedify-dev%2Fpostgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedify-dev","download_url":"https://codeload.github.com/fedify-dev/postgres/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571837,"owners_count":21126522,"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":["fedify","postgres","postgresql"],"created_at":"2025-04-13T15:57:09.800Z","updated_at":"2025-04-13T15:57:10.434Z","avatar_url":"https://github.com/fedify-dev.png","language":"TypeScript","funding_links":["https://github.com/sponsors/dahlia"],"categories":[],"sub_categories":[],"readme":"\u003c!-- deno-fmt-ignore-file --\u003e\n\n@fedify/postgres: PostgreSQL drivers for Fedify\n===============================================\n\n[![JSR][JSR badge]][JSR]\n[![npm][npm badge]][npm]\n[![GitHub Actions][GitHub Actions badge]][GitHub Actions]\n\nThis package provides [Fedify]'s [`KvStore`] and [`MessageQueue`]\nimplementations for PostgreSQL:\n\n -  [`PostgresKvStore`]\n -  [`PostgresMessageQueue`]\n\n~~~~ typescript\nimport { createFederation } from \"@fedify/fedify\";\nimport { PostgresKvStore, PostgresMessageQueue } from \"@fedify/postgres\";\nimport postgres from \"postgres\";\n\nconst sql = postgres(\"postgresql://user:password@localhost/dbname\");\n\nconst federation = createFederation({\n  kv: new PostgresKvStore(sql),\n  queue: new PostgresMessageQueue(sql),\n});\n~~~~\n\n[JSR]: https://jsr.io/@fedify/postgres\n[JSR badge]: https://jsr.io/badges/@fedify/postgres\n[npm]: https://www.npmjs.com/package/@fedify/postgres\n[npm badge]: https://img.shields.io/npm/v/@fedify/postgres?logo=npm\n[GitHub Actions]: https://github.com/fedify-dev/postgres/actions/workflows/main.yaml\n[GitHub Actions badge]: https://github.com/fedify-dev/postgres/actions/workflows/main.yaml/badge.svg\n[Fedify]: https://fedify.dev/\n[`KvStore`]: https://jsr.io/@fedify/fedify/doc/federation/~/KvStore\n[`MessageQueue`]: https://jsr.io/@fedify/fedify/doc/federation/~/MessageQueue\n[`PostgresKvStore`]: https://jsr.io/@fedify/postgres/doc/federation/~/PostgresKvStore\n[`PostgresMessageQueue`]: https://jsr.io/@fedify/postgres/doc/federation/~/PostgresMessageQueue\n\n\nInstallation\n------------\n\n### Deno\n\n~~~~ sh\ndeno add @fedify/postgres\n~~~~\n\n### Node.js\n\n~~~~ sh\nnpm install @fedify/postgres\n~~~~\n\n### Bun\n\n~~~~ sh\nbun add @fedify/postgres\n~~~~\n\n\nChangelog\n---------\n\n### Version 0.4.0\n\nTo be released.\n\n### Version 0.3.0\n\nReleased on March 28, 2025.\n\n -  Added `PostgresMessageQueue.enqueueMany()` method for efficiently enqueuing\n    multiple messages at once.\n\n -  Updated *@js-temporal/polyfill* to 0.5.0 for Node.js and Bun. On Deno,\n    there is no change because the polyfill is not used.\n\n -  Added some logging using [LogTape] for the sake of debugging.  The following\n    categories are used:\n\n     -  `[\"fedify\", \"postgres\", \"kv\"]`\n     -  `[\"fedify\", \"postgres\", \"mq\"]`\n\n[LogTape]: https://logtape.org/\n\n### Version 0.2.2\n\nReleased on November 18, 2024.\n\n -  Fixed a bug where binding parameters have not been properly escaped with\n    some settings of Postgres.js.\n\n### Version 0.2.1\n\nReleased on November 3, 2024.\n\n -  Fixed a bug where some scalar values have failed to be stored in the\n    database.\n\n### Version 0.2.0\n\nReleased on November 3, 2024.\n\n -  Fixed a bug where JSON values are double-quoted in the database.  Since it's\n    a breaking change data-wise, the default values of the following options\n    are also changed:\n\n     -  `PostgresKvStoreOptions.tableName` defaults to `\"fedify_kv_v2\"`.\n     -  `PostgresMessageQueueOptions.tableName` defaults to\n        `\"fedify_message_v2\"`.\n\n### Version 0.1.0\n\nInitial release.  Released on September 26, 2024.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedify-dev%2Fpostgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedify-dev%2Fpostgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedify-dev%2Fpostgres/lists"}