Skip to main content

Built and signed on GitHub Actions

It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
82%
Published
3 weeks ago (0.1.0)

@fedify/postgres: PostgreSQL drivers for Fedify

JSR npm GitHub Actions

This package provides Fedify's KvStore and MessageQueue implementations for PostgreSQL:

import { createFederation } from "@fedify/fedify";
import { PostgresKvStore, PostgresMessageQueue } from "@fedify/postgres";
import postgres from "postgres";

const sql = postgres("postgresql://user:password@localhost/dbname");

const federation = createFederation({
  kv: new PostgresKvStore(sql),
  queue: new PostgresMessageQueue(sql),
});

Installation

Deno

deno add @fedify/postgres

Node.js

npm install @fedify/postgres

Bun

bun add @fedify/postgres

Changelog

Version 0.1.0

Initial release. Released on September 26, 2024.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@fedify/postgres

Import symbol

import * as mod from "@fedify/postgres";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@fedify/postgres";

Add Package

npx jsr add @fedify/postgres

Import symbol

import * as mod from "@fedify/postgres";

Add Package

yarn dlx jsr add @fedify/postgres

Import symbol

import * as mod from "@fedify/postgres";

Add Package

pnpm dlx jsr add @fedify/postgres

Import symbol

import * as mod from "@fedify/postgres";

Add Package

bunx jsr add @fedify/postgres

Import symbol

import * as mod from "@fedify/postgres";