Files
grimoire/src/lib
Claude 4dc55295f6 refactor: use applesauce isSafeRelayURL for relay URL validation
Refactor relay URL validation to use applesauce's isSafeRelayURL helper
which provides a fast regex-based check for valid websocket URLs.

Changes:
- Update isValidRelayURL in relay-url.ts to use isSafeRelayURL as fast
  path, with URL constructor fallback for IP addresses
- Re-export isSafeRelayURL from relay-url.ts for convenience
- Update loaders.ts to use isSafeRelayURL directly from applesauce
- Add relay URL validation to:
  - nostr-utils.ts: getEventPointerFromQTag (q-tag relay hints)
  - zapstore-helpers.ts: getAppReferences (a-tag relay hints)
  - nip89-helpers.ts: getHandlerReferences (a-tag relay hints)
  - PublicChatsRenderer.tsx: extractGroups (group relay URLs)

This ensures consistent validation across all relay URL extraction points
using applesauce's battle-tested validation.

https://claude.ai/code/session_01Ca2fKD2r4wHKRD8rcRohj9
2026-01-27 09:46:39 +00:00
..
2026-01-22 18:36:06 +01:00
2026-01-13 17:16:31 +01:00
2026-01-13 17:16:31 +01:00
2025-12-20 14:25:40 +01:00
2025-12-20 14:25:40 +01:00
2025-12-20 14:25:40 +01:00
2025-12-18 16:00:56 +01:00
2025-12-18 16:00:56 +01:00
2025-12-18 16:00:56 +01:00
2025-12-18 16:25:34 +01:00
2025-12-20 14:25:40 +01:00
2026-01-20 17:28:57 +01:00
2025-12-22 13:25:38 +01:00
2025-12-18 16:49:24 +01:00
2025-12-20 14:25:40 +01:00
2026-01-21 12:23:41 +01:00
2026-01-19 12:16:51 +01:00