with a bunch of bash and jq tooling slapped around it, nak makes an incredible cli client. there's no reason nak should be this good. i don't know if nostr would have made it anywhere if @fiatjaf didn't provide this gift in the early days.
a good lesson for protocol developers in general
Login to reply
Replies (6)
i played with it a lot today in --stream mode, less so for historic fectching. i'm away from my computer at the moment but the limit option may be useful. might also look into the relay implementation for hints
Silly bash script that adds some conveniences like a local cache of profile display names, optional global/follows, optionally display from a list only, etc.
might be fun for someone; it is for me.
GM be unto him
A local cache using sqlite via bash is a crazy idea I wouldn't have imagined. Now I wonder if nak itself should have such a cache, but no, no, that would be too much.
Did you try `nak req --outbox`? Maybe call `nak outbox init` first. I don't know why you would need it, just throwing ideas.
The unix way - lots of little tools that do their own thing well 🫡
It's really satisfying seeing the script fetch new profiles it hasn't seen yet and caching them simply :)
I'll try out the outbox stuff and report back!