Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OpenAgentsInc/ndxstr-nodejs
Nostr indexing node proof-of-concept in NodeJS
https://github.com/OpenAgentsInc/ndxstr-nodejs
layer2 nodejs nostr
Last synced: 24 days ago
JSON representation
Nostr indexing node proof-of-concept in NodeJS
- Host: GitHub
- URL: https://github.com/OpenAgentsInc/ndxstr-nodejs
- Owner: OpenAgentsInc
- License: cc0-1.0
- Created: 2022-09-03T16:48:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-29T16:41:01.000Z (almost 2 years ago)
- Last Synced: 2024-08-04T11:01:20.985Z (4 months ago)
- Topics: layer2, nodejs, nostr
- Language: JavaScript
- Homepage:
- Size: 152 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-nostr - ndxstr - nostr's layer 2 indexing nodes, with more advanced querying capability than currently supported by relays (Tools / Client reviews and/or comparisons)
README
# ndxstr - Nostr indexing node
Bootstrapping Nostr's layer2 with an indexing node.
**ndxstr** nodes are servers that pull events from multiple known relays, storing them forever-ish and making available to clients via API.
## Why
Modern applications may want:
- More advanced querying than currently supported by Nostr relays
- Receiving messages in a batch via API, not one at a time over a websocket
- Fewer expensive cryptographic operations done client-side (e.g. trusting an indexer to validate events)
- To retrieve large amounts of messages quickly+reliably via one API without caring about uptime/featuresets of multiple relays## Stack
- NodeJS
- TypeScript
- Postgres
- REST API## Risks
- Centralization - Need to avoid Infura-ization
## Related
- [nostr-ts-relay](https://github.com/Cameri/nostr-ts-relay) - We reuse a lot of this code
- [nostr](https://github.com/nostr-protocol/nostr) - Main nostr repo