JSPM

@nostr-wot/relay

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q19499F
  • License MIT

Standalone Nostr relay utilities: pool management, query batching, stats, low-level helpers.

Package Exports

  • @nostr-wot/relay
  • @nostr-wot/relay/react

Readme

@nostr-wot/relay

Standalone Nostr relay utilities: pool management, query batching, stats. Extracted from the WoT SDK so any Nostr project can use them without pulling in WoT scoring code.

Install

npm i @nostr-wot/relay nostr-tools

Use

import { RelayPool, QueryBatcher, RelayStats } from '@nostr-wot/relay';

React hooks: import { … } from '@nostr-wot/relay/react'.

See the source for the API surface (this package is a low-level building block — most apps don't need it directly; reach for @nostr-wot/data first).

License

MIT