Integrated NIP-01/NIP-11/NIP-16 Nostr relay running on the same port as the Solid server.
jss start --nostr
wss://your.pod/relay (configurable via --nostr-path)
GET /relay with Accept: application/nostr+json)| Option | Description | Default |
|---|---|---|
--nostr |
Enable Nostr relay | false |
--nostr-path <path> |
WebSocket path | /relay |
--nostr-max-events <n> |
Max events in memory | 1000 |
--nostr-max-events)d tag for deduplicationimport { 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);
JSS also supports NIP-98 HTTP Auth for Solid operations. See docs/authentication.md for details on:
did:nostr → WebID resolution