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: 11 days ago
JSON representation
A utility for scraping the nostr network
- Host: GitHub
- URL: https://github.com/coracle-social/navigatr
- Owner: coracle-social
- License: mit
- Created: 2023-09-20T21:02:50.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-19T00:56:20.000Z (12 months ago)
- Last Synced: 2024-05-14T10:03:12.754Z (7 months ago)
- Language: TypeScript
- Size: 144 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nostr - navigatr - social/navigatr.svg?style=social) - A utility for discovering relays and scraping events (Libraries / Client reviews and/or comparisons)
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)
})```