From 98a798f0cbd64ff0f003746e8b33c6666c61de64 Mon Sep 17 00:00:00 2001 From: bndw Date: Fri, 13 Feb 2026 20:53:22 -0800 Subject: redesign: cyber-brutalist terminal aesthetic Complete visual overhaul with bold conceptual direction: AESTHETIC: Cyber-brutalist terminal interface - JetBrains Mono monospace throughout - Deep black (#0a0e14) with cyan/green accents - ASCII art Nostr logo with glitch animation - Animated grid background (scrolling terminal feel) - Terminal-style status bar with pulse indicators - Protocol cards with scanning line effects - Information-dense but organized layout MOTION & EFFECTS: - Glitching ASCII logo animation - Scanning line on protocol cards - Pulsing status indicators - Animated grid background - Staggered fade-in on page load - Hover effects with glow DIFFERENTIATION: Feels like SSH into a relay node. Unapologetically technical, embracing Nostr's decentralized, cypherpunk ethos. Zero generic design patterns - full commitment to terminal aesthetic. --- internal/handler/websocket/index.go | 468 ++++++++++++++++++++++++++++-------- 1 file changed, 367 insertions(+), 101 deletions(-) (limited to 'internal/handler/websocket/index.go') diff --git a/internal/handler/websocket/index.go b/internal/handler/websocket/index.go index 96bcfd4..861fbb1 100644 --- a/internal/handler/websocket/index.go +++ b/internal/handler/websocket/index.go @@ -10,173 +10,439 @@ var indexTemplate = template.Must(template.New("index").Parse(` - Nostr gRPC Relay + NOSTR-GRPC-RELAY/v1.0.0 + + +
-
-

⚡ Nostr gRPC Relay

-

High-performance relay with multi-protocol support

+
+
+ + RELAY.ONLINE +
+
+ PROTOCOLS: 3 +
+
+ NIPs: 01/09/11 +
-
-
-

Protocols

+
+ +

NOSTR-GRPC-RELAY

+

decentralized protocol node // multi-transport relay

+
-
-

🔌 gRPC (Native Binary)

-

{{.GrpcAddr}}

-

High-performance binary protocol for applications

+
+
+
+ gRPC + ACTIVE
+
{{.GrpcAddr}}
+

Native binary protocol. High-throughput RPC interface for application-layer integration. Protocol Buffers over HTTP/2.

+
-
-

🌐 Connect (HTTP/JSON)

-

{{.HttpAddr}}/nostr.v1.NostrRelay/*

-

Browser-compatible gRPC over HTTP with JSON

+
+
+ CONNECT + ACTIVE
+
{{.HttpAddr}}/nostr.v1.NostrRelay/*
+

Browser-compatible HTTP/JSON interface. gRPC-Web with Connect protocol. CORS-enabled for web clients.

+
-
-

🔗 WebSocket (Nostr Protocol)

-

ws://{{.WsAddr}}/

-

Standard Nostr protocol (NIP-01) for all clients

+
+
+ WEBSOCKET + ACTIVE
+
ws://{{.WsAddr}}/
+

Standard Nostr protocol (NIP-01). Compatible with all Nostr clients. Real-time event streaming.

+
-
-

Supported NIPs

-
- NIP-01 - NIP-09 - NIP-11 +
+
+

SUPPORTED_NIPS

+
+ NIP-01 + NIP-09 + NIP-11
-
-

Features

-
    -
  • Binary-first storage (Protocol Buffers)
  • -
  • SQLite with WAL mode
  • -
  • Event validation (ID & signature)
  • +
    +

    RELAY_FEATURES

    +
      +
    • Binary-first storage
    • +
    • SQLite WAL mode
    • +
    • Event validation
    • Real-time subscriptions
    • -
    • Event deletion (NIP-09)
    • +
    • Hard deletion (NIP-09)
-- cgit v1.2.3