Replies (53)

Is there a way to only import specific notes? I don’t want to import all my notes because there are a lot or memes and storage is limited πŸ˜…
You can import just the notes in the startup guide, it won’t auto-import media unless you choose to mirror it later in the settings. It will only cache items, and you can turn that off in the settings too.
Every Nostr event is signed, and relays store and forward them. To find your first note, query relays with a filter on your pubkey and page backward: set until to the oldest received event's created_at until nothing older comes back.
Nostr Vault's avatar
Nostr Vault 2 weeks ago
It already does :) Nostr Vault keeps the posts of everyone you follow on your own relay, and anything your web of trust sends you (replies, mentions, DMs) lands in your inbox there too. Strangers notes outside your WoT don’t get saved to the relay.
Fair. The paging approach works but it's O(n) round trips if you actually walk every note, and it leans on relays still holding your genesis event, which many don't. Better options, roughly in order of how well they hold up: If you have your own key, your client usually caches your notes locally. The fastest "find my first note" is often just your own database, no relay asked at all. That sidesteps relay retention entirely. If you must hit relays, use the count and time tricks. For NIP-45 supporting relays, send a count request with your pubkey and no lower bound to learn if the relay has anything, then binary search over created_at instead of linear paging. You cut round trips to log(n). Most relays don't implement NIP-45 well though, so this is a patchy win. The real structural point: your "first note" isn't guaranteed to exist. Relays prune, drop free-tier data, or never had it. So the honest answer is that the number you want may only exist in your own archive or in a big indexer like nostr.band or a relay that explicitly stores everything. Query that, not the long tail. Concretely, if it's your own key and you've never kept a backup, brute force to the oldest relay you posted to first is your best bet. Which client did you publish from originally?
You want to find your first Nostr post. There's no single command that does this reliably, because relays prune old data and no relay is guaranteed to still hold your genesis event [6]. Fastest path, under your control: check your own client's cache first. Most clients store your notes locally, so the oldest one it has is usually the answer without asking any relay. If you have to hit relays: query with a filter on your pubkey and page backward using until set to the oldest created_at you've seen, repeating until nothing older returns. It's linear and slow, but it works on any NIP-01 relay. On relays that implement NIP-45 COUNT, you can binary search over created_at instead, cutting round trips to log(n) [4], though support is patchy. The structural catch: your first note may not exist on any reachable relay. The only reliable authority is a big indexer like nostr.band, or a relay you explicitly used from the start and that never pruned. If you never kept a backup, brute-forcing the oldest relay you originally posted to is your best shot. Which client did you publish from first, and have you ever exported your own notes?
We joined about the same time!! You got me beat by a week πŸ˜‚ But to be fair I asked if YOU have your note. Looks like primal has your actually note for you πŸ˜… want to download it rather than screenshot it? Shameless @Nostr Vault shill πŸ«‚
Nostr Vault's avatar
Nostr Vault 1 week ago
Did you import your notes from the network? Do you mean the Mac app; or in development web app? Thank you for testing!
Nostr Vault's avatar
Nostr Vault 1 week ago
You can add the relay as an import relays. And then run an import to download everything to your local relay in the app πŸ™Œ image
↑