Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/coracle-social/navigatr

A utility for scraping the nostr network
https://github.com/coracle-social/navigatr

Last synced: 26 days ago
JSON representation

A utility for scraping the nostr network

Lists

README

        

# Navigatr [![version](https://badgen.net/npm/v/navigatr)](https://npmjs.com/package/navigatr)

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.

```javascript
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)
})

```