Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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

Last synced: 3 months ago
JSON representation

A utility for scraping the nostr network

Awesome Lists containing this project

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

```