Mercury Index-Relay

Mercury Index-Relay

by GitCitadel  ·  v0.2.27

A Nostr index relay for the HTTP protocol. Specialises in swift retrieval of publications, repos, and graphs of related events.

Swagger UI API Index
REST API

Full event lifecycle over HTTP — publish, query, fetch by ID, delete.

NIP-01 Filters

Filter by kind, author, tags, and time window. Supports #p, #e, and more.

Publications

Metadata search (kind 30040) and section search (kind 30041, title + body) over indexed publications.

NIP-11 & NIP-70

Relay info at GET / with Accept: application/nostr+json. Protected events are rejected.

Endpoints

GET /api

List available endpoints

GET /api/events

Cacheable query (since, until, limit)

POST /api/events/filter

Filter query with JSON body

POST /api/publications/search

Publication metadata search (kind 30040)

POST /api/publications/sections/search

Publication section search (kind 30041, title + body)

POST /api/wiki/search

Wiki article content + metadata search (kind 30818)

GET /api/events/:id

Fetch a single event by ID

POST /api/events

Publish a new event

DELETE /api/events/:id

Delete an event by ID

GET /api/swagger

Interactive Swagger UI