jb55 on Nostr: nostrdb doesn’t support replaceable notes because replaceable notes are a terrible ...
nostrdb doesn’t support replaceable notes because replaceable notes are a terrible idea. it does something much better: it stores every version of the replaceable note, and recovers replaceable note queries using a special query called a fold. Fold queries allow you to perform any logic you want while walking a filter.
Whats cool about this is that you could have a query that shows the last 3 versions of each replaceable event. This can be useful for showing things like how your contact list has changed over time.
Published at
2026-02-25 15:53:22 CETEvent JSON
{
"id": "63d5044bf5d32c7747c4da15b59cb01a76e45663754c0ae66698f05889b44fc6",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1772031202,
"kind": 1,
"tags": [
[
"imeta",
"url https://i.nostr.build/3XqeC1SJbciuXBVq.jpg",
"blurhash eB4n.pxexMs@x2j?j[j[j[fP$qawbDbEa_j[jtaxjuj[$qaxawaxax",
"dim 3048x4052"
],
[
"r",
"https://i.nostr.build/3XqeC1SJbciuXBVq.jpg"
]
],
"content": "nostrdb doesn’t support replaceable notes because replaceable notes are a terrible idea. it does something much better: it stores every version of the replaceable note, and recovers replaceable note queries using a special query called a fold. Fold queries allow you to perform any logic you want while walking a filter.\n\nWhats cool about this is that you could have a query that shows the last 3 versions of each replaceable event. This can be useful for showing things like how your contact list has changed over time.\n\nhttps://i.nostr.build/3XqeC1SJbciuXBVq.jpg",
"sig": "23641dbd649751a74a4e87942ed644360791d107ab47652fd5a4caf30f0d5f313e811faa592b8f3333fc97ac3151600b275749fb01c5370a06f9c067a71b33ea"
}