nostr-fetch
JSON →A utility library for JavaScript/TypeScript applications to fetch past events from Nostr relays with built-in concurrency control, timeout handling, and connection management. Version 0.17.0 is current, with a stable API and frequent releases. Unlike raw WebSocket handling or libraries like nostr-tools, nostr-fetch provides a high-level fetch interface that abstracts relay subscription lifecycle, retries, and pagination. It supports both Node.js and browser environments, ships TypeScript types, and is ESM-only. Key differentiators include automatic relay connection pooling, custom fetch strategies, and event validation against filters.
Resources
packagenostr-fetch ↗