Skip to main content
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
5 hours ago (0.1.5)

Pod Pay

a library that is useful for developers wanting to integrate podcast payments

API

Load Podcast Payment Events Using GUIDs:

/** `loadPaymentsForFeed` */
export async function loadPaymentsForFeed(
  guid: string,
  options: { limit?: number; relays?: string[]
}): Promise<PodcastPayment[]>

/** `loadPaymentsForItem` */
export async function loadPaymentsForItem(
  guid: string, 
  options: { kinds?: number[]; limit?: number; relays?: string[] }
): Promise<PodcastPayment[]>

Generate BOLT-11 Invoices from a Lightning Address:

/** `generateInvoice` - requests a bolt11 invoice from a lightning address */
export async function generateInvoice(
  lnaddress: string,
  satoshis: number,
  message?: string
): Promise<{ success: boolean; invoice?: string; error?: any }>

Installing

Deno

deno add @fountain/podpay

NPM

npx jsr add @fountain/podpay

PNPM

pnpm dlx jsr add @fountain/podpay

Bun

bunx jsr add @fountain/podpay

Add Package

deno add jsr:@fountain/podpay

Import symbol

import * as podpay from "@fountain/podpay";

---- OR ----

Import directly with a jsr specifier

import * as podpay from "jsr:@fountain/podpay";

Add Package

npx jsr add @fountain/podpay

Import symbol

import * as podpay from "@fountain/podpay";

Add Package

yarn dlx jsr add @fountain/podpay

Import symbol

import * as podpay from "@fountain/podpay";

Add Package

pnpm dlx jsr add @fountain/podpay

Import symbol

import * as podpay from "@fountain/podpay";

Add Package

bunx jsr add @fountain/podpay

Import symbol

import * as podpay from "@fountain/podpay";