Skip to main content
Home

latest

Framework for Nostr on Deno and web. 🛸

This package works with Deno, BrowsersIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
94%
Published
2 months ago (0.46.5)
interface NRelay1Opts

Options used for constructing an NRelay1 instance.

Properties

optional
backoff: Backoff | false

Configure reconnection strategy, or set to false to disable. Default: new ExponentialBackoff(1000).

optional
idleTimeout: number | false

How long to wait (in milliseconds) for the caller to create a subscription before closing the connection. Set to false to disable. Default: 30_000.

Methods

optional
auth(challenge: string): Promise<NostrEvent>

Respond to AUTH challenges by producing a signed kind 22242 event.

optional
verifyEvent(event: NostrEvent): boolean

Ensure the event is valid before returning it. Default: nostrTools.verifyEvent.

optional
log(log: NRelay1Log): void

Logger callback.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@nostrify/nostrify

Import symbol

import { type NRelay1Opts } from "@nostrify/nostrify";
or

Import directly with a jsr specifier

import { type NRelay1Opts } from "jsr:@nostrify/nostrify";

Add Package

pnpm i jsr:@nostrify/nostrify
or (using pnpm 10.8 or older)
pnpm dlx jsr add @nostrify/nostrify

Import symbol

import { type NRelay1Opts } from "@nostrify/nostrify";

Add Package

yarn add jsr:@nostrify/nostrify
or (using Yarn 4.8 or older)
yarn dlx jsr add @nostrify/nostrify

Import symbol

import { type NRelay1Opts } from "@nostrify/nostrify";

Add Package

vlt install jsr:@nostrify/nostrify

Import symbol

import { type NRelay1Opts } from "@nostrify/nostrify";

Add Package

npx jsr add @nostrify/nostrify

Import symbol

import { type NRelay1Opts } from "@nostrify/nostrify";

Add Package

bunx jsr add @nostrify/nostrify

Import symbol

import { type NRelay1Opts } from "@nostrify/nostrify";