UNPKG

node-red-contrib-nostr

Version:

Node-RED nodes for seamless Nostr protocol integration. Features robust WebSocket handling, event filtering, and NPUB-based routing. Built with TypeScript for type safety and extensive testing. Perfect for Nostr automation flows.

14 lines (13 loc) 399 B
import { Node, NodeAPI } from 'node-red'; import type { NostrWSClient } from 'nostr-websocket-utils'; interface NostrRelayConfigCredentials { privateKey?: string; } export interface NostrRelayConfig extends Node<NostrRelayConfigCredentials> { relay: string; publicKey?: string; privateKey?: string; _ws?: NostrWSClient; } export default function (RED: NodeAPI): void; export {};