import React, { useState, useEffect, useRef } from 'react'; import JSONPretty from 'react-json-pretty'; function PrettyJSONView({ jsonString, maxHeightClass = 'max-h-64' }) { let data; try { data = JSON.parse(jsonString); } catch (_) { data = jsonString; } return (
here you can configure all the things
Download your own events as line-delimited JSON (JSONL/NDJSON). Only events you authored will be included.
Download all stored events as line-delimited JSON (JSONL/NDJSON). This may take a while on large databases.
Enter one or more author pubkeys (64-character hex). Only valid entries will be exported.
{/* Right: controls (buttons stacked vertically + list below) */}Upload events in line-delimited JSON (JSONL/NDJSON) to import into the database.
View all your events in reverse chronological order. Click on any event to view its raw JSON.
View all events from all users in reverse chronological order. Click on any event to view its raw JSON.
{
// fallback to repo docs image if public asset missing
e.currentTarget.onerror = null;
e.currentTarget.src = "/docs/orly.png";
}}
/>
Authenticate to this Nostr relay using your browser extension.