mirror of
https://github.com/hoornet/vega.git
synced 2026-07-24 09:18:11 -07:00
Working feed: NDK + relay connection + live notes from Nostr
- Tailwind CSS + Zustand + NDK installed and configured - Sidebar with feed/relays/settings navigation - Global feed view with live notes from relays - Profile fetching with caching and deduplication - Relay connection with timeout handling - Note cards with avatar, name, timestamp, content - Dark theme, monospace, no-slop UI - Devtools enabled for debugging
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { NDKEvent, NDKKind } from "@nostr-dev-kit/ndk";
|
||||
|
||||
export interface NostrProfile {
|
||||
npub: string;
|
||||
pubkey: string;
|
||||
name?: string;
|
||||
displayName?: string;
|
||||
about?: string;
|
||||
picture?: string;
|
||||
nip05?: string;
|
||||
lud16?: string; // lightning address
|
||||
banner?: string;
|
||||
}
|
||||
|
||||
export interface NostrNote {
|
||||
id: string;
|
||||
pubkey: string;
|
||||
content: string;
|
||||
created_at: number;
|
||||
kind: NDKKind;
|
||||
tags: string[][];
|
||||
profile?: NostrProfile;
|
||||
event: NDKEvent;
|
||||
}
|
||||
|
||||
export interface RelayInfo {
|
||||
url: string;
|
||||
connected: boolean;
|
||||
latencyMs?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user