@nostr-fetch/adapter-nostr-relaypool
TypeScript icon, indicating that this package has built-in type declarations

0.15.1 • Public • Published

@nostr-fetch/adapter-nostr-relaypool

This package includes the adapter for nostr-relaypool's RelayPool which allows it to work with nostr-fetch, a utility library for fetching past events from Nostr relays.

If you want to use nostr-fetch, here is a good start point!

Example

import { RelayPool } from "nostr-relaypool";
import { NostrFetcher } from "nostr-fetch";
import { relayPoolAdapter } from "@nostr-fetch/adapter-nostr-relaypool";

const pool = new RelayPool();
const fetcher = NostrFetcher.withCustomPool(relayPoolAdapter(pool));

Minimum Supported Version of nostr-relaypool

adapter version nostr-relaypool version
* 0.6.28

Readme

Keywords

none

Package Sidebar

Install

npm i @nostr-fetch/adapter-nostr-relaypool

Weekly Downloads

0

Version

0.15.1

License

MIT

Unpacked Size

119 kB

Total Files

14

Last publish

Collaborators

  • jiftechnify