I am going to put a stack machine inside of your relay
Built the #NKBIP-04 directory system into GRW and it's actually pretty cool.
Took all day to define, tho. Simple structure, but highly-complex behavior. Don't worry, documented it in Gherkin, so it should be easy to copy.
But, yes, that's literally #NostrUNIX
Felt cute, so I added the #NKBIP-03 citation events, as well.
Discussion
For historization? At the moment, I just do that in the cache, and only for 30041s, as the space is limited.
No, less round trips.
Oh, right.
And historization of replaceables?
You could do that with a retention policy
Okay, let's do that with a retention policy. GRW shows history and diffs, for all events.
Had to keep it in the browser DB, for now. Just to get it going. I guess I can check all of the backend relay and database implementations, to see if any have retention policies, but it's simpler to just do the local cache and then pull from a remote relay.
Otherwise, it's more 🍝 code.
And it would quickly turn into a lot of data, even with compression.
Don't want to encourage people to keep important things on their local machine, if they're not a sys admin. Just want to keep the things they have been working on, lately, handy and offline -accessible, not run a local archive.