JavaScriptSolidServer

Nostr Relay

Integrated NIP-01/NIP-11/NIP-16 Nostr relay running on the same port as the Solid server.

jss start --nostr

Endpoint

wss://your.pod/relay (configurable via --nostr-path)

Supported NIPs

Options

Option Description Default
--nostr Enable Nostr relay false
--nostr-path <path> WebSocket path /relay
--nostr-max-events <n> Max events in memory 1000

How It Works

Client Usage

import { Relay } from 'nostr-tools';

const relay = await Relay.connect('wss://your.pod/relay');

// Subscribe
const sub = relay.subscribe([{ kinds: [1], limit: 10 }], {
  onevent(event) { console.log(event); }
});

// Publish
await relay.publish(signedEvent);

Nostr Authentication (NIP-98)

JSS also supports NIP-98 HTTP Auth for Solid operations. See docs/authentication.md for details on: