I had a different idea of using a domain specific language for doing Nostr queries. "Nostr scripts" that could be run by nostr clients to perform a specific sequence of actions for different views of your timeline.
Like queries that would get sent to relays, or this is purely a client-side thing? (I may have misinderstood the convo here, I was thinking in terms of algos like say recommending new contacts or interesting posts, flagging fake accounts, search functionality, etc.)