From 5ad9d9093fcbe7037e5474a9d8fa20a0b64fb79a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 25 Feb 2026 15:07:40 +0000 Subject: drop nostr-db backend support, keep only lmdb and memory --- docs/explanation/architecture.md | 2 +- docs/explanation/comparison.md | 10 +++++----- docs/explanation/deletion-requests.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'docs/explanation') diff --git a/docs/explanation/architecture.md b/docs/explanation/architecture.md index e101425..e0a57e5 100644 --- a/docs/explanation/architecture.md +++ b/docs/explanation/architecture.md @@ -101,7 +101,7 @@ After examining both the reference implementation and HTTP server options, we ha - Initialize configuration from environment (clap + dotenvy) - Set up Hyper HTTP server with request routing - Initialize Nostr relay builder with custom [`Nip34WritePolicy`](src/nostr/builder.rs:51) -- Set up shared storage (LMDB, NostrDB, or Memory) +- Set up shared storage (LMDB or Memory) - Handle WebSocket upgrades for Nostr relay - Handle graceful shutdown diff --git a/docs/explanation/comparison.md b/docs/explanation/comparison.md index 090e0eb..315f091 100644 --- a/docs/explanation/comparison.md +++ b/docs/explanation/comparison.md @@ -11,7 +11,7 @@ This document compares ngit-grasp (this project) with ngit-relay (the reference | **Git Protocol** | git-http-backend (C via fcgiwrap) | HTTP layer in Rust + git subprocess | | **Authorization** | Pre-receive Git hook | Inline HTTP handler validation | | **Nostr Relay** | Khatru (Go library) | nostr-relay-builder (Rust library) | -| **Event Store** | Badger (Go KV database) | LMDB or NostrDB (Rust) | +| **Event Store** | Badger (Go KV database) | LMDB (Rust) | | **Proactive Sync** | Git-only (polls DB + fetches from git servers) | Nostr event sync + git sync (event-driven) | | **Process Management** | supervisord (4 processes) | Single tokio runtime | | **Packaging** | Docker with supervisord | Single static binary or Docker | @@ -78,7 +78,7 @@ This document compares ngit-grasp (this project) with ngit-relay (the reference │ │ │ │ builder library) │ │ │ │ - info/refs │ │ - NIP-34 Policy │ │ │ │ - upload-pk │◀─────┤ (inline query) │ │ -│ │ - receive-pk │ auth │ - LMDB/NostrDB │ │ +│ │ - receive-pk │ auth │ - LMDB/Memory │ │ │ │ + inline │ check│ - WebSocket │ │ │ │ validation │ │ - NIP-11 endpoint │ │ │ └──────┬───────┘ └──────────┬─────────┘ │ @@ -100,7 +100,7 @@ This document compares ngit-grasp (this project) with ngit-relay (the reference │ │ │ ┌──────────────────────────────────────────────────┐ │ │ │ Shared State (Arc) │ │ -│ │ - Database (LMDB/NostrDB/Memory) │ │ +│ │ - Database (LMDB/Memory) │ │ │ │ - Purgatory (DashMap - concurrent queue) │ │ │ │ - Metrics (Prometheus) │ │ │ └──────────────────────────────────────────────────┘ │ @@ -161,7 +161,7 @@ This is why ngit-grasp has ~13x more code - the majority is implementing GRASP-0 | Feature | ngit-relay | ngit-grasp | |---------|-----------|-----------| | **Implementation** | Khatru (Go library) | nostr-relay-builder (Rust library) | -| **Database** | Badger (Go KV store) | LMDB or NostrDB (Rust) | +| **Database** | Badger (Go KV store) | LMDB (Rust) | | **Process** | Separate process on :3334 | Integrated (same binary) | | **Policies** | Go functions in `policies.go` | Rust traits (modular sub-policies) | | **Event Validation** | Single function with branches | 4 separate policy modules | @@ -287,7 +287,7 @@ For users of ngit-relay, migration to ngit-grasp involves: ### Data Migration -1. **Events**: Export from Badger → Import to LMDB/NostrDB +1. **Events**: Export from Badger → Import to LMDB - No direct migration tool yet (would need to be built) - Alternative: Use proactive sync to re-fetch from other relays 2. **Git Repositories**: Direct copy (same structure) diff --git a/docs/explanation/deletion-requests.md b/docs/explanation/deletion-requests.md index 7660774..4b4cd88 100644 --- a/docs/explanation/deletion-requests.md +++ b/docs/explanation/deletion-requests.md @@ -28,7 +28,7 @@ The deletion system uses three separate data stores: ┌─────────────────────────────────────────────────────────┐ │ Main Database │ │ (Live events - actively served) │ -│ LMDB/NostrDB/Memory backend │ +│ LMDB/Memory backend │ └─────────────────────────────────────────────────────────┘ ↓ deletion request ┌─────────────────────────────────────────────────────────┐ -- cgit v1.2.3