navigatr
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Navigatr version

A utility for scraping the nostr network. Please be considerate with your limits and filters, since this will open a connection to every relay it can find.

export const nav = new Navigator({
  timeout: 10_000,
  relays: ['wss://relay.damus.io', 'wss://relay.snort.social'],
  filters: [{kinds: [1], limit: 10}],
})

nav.scrapeAll()
  .then(events => {
    nav.cleanup()

    console.log('done', n.events.size)
  })

Readme

Keywords

Package Sidebar

Install

npm i navigatr

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

18.6 kB

Total Files

8

Last publish

Collaborators

  • jstaab