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

0.15.1 • Public • Published

@nostr-fetch/adapter-rx-nostr

This package includes the adapter for rx-nostr 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 { createRxNostr } from 'rx-nostr';
import { NostrFetcher } from 'nostr-fetch';
import { rxNostrAdapter } from '@nostr-fetch/adapter-rx-nostr';

const main = async () => {
    const rxNostr = createRxNostr();
    const fetcher = NostrFetcher.withCustomPool(rxNostrAdapter(rxNostr));
    // ...
}

Minimum Supported Version of rx-nostr

adapter version rx-nostr version
< 0.13.0 1.1.0
>= 0.13.0 1.2.0

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

15

Version

0.15.1

License

MIT

Unpacked Size

134 kB

Total Files

14

Last publish

Collaborators

  • jiftechnify