Why Nostr? What is Njump?
2025-04-08 22:18:56

jb55 on Nostr: thinking about adding a "filter" to nostrdb's query interface. basic idea is that you ...

thinking about adding a "filter" to nostrdb's query interface. basic idea is that you can provide additional filtering or reducing logic in any nostr query.

I like this better than setting a large limit and filtering after. you can just let #nostrdb do it while it scans the index.

I want to use this for ignoring thread replies, which is useful for building ai algos that try to summarize the past day or specific days, etc.

In the future we could support a jit-compiled jq-style language and use that in the callback:

{"kinds": [1], "filter": "not tag('e')[2] == 'reply'"}

#asknostr if you are a nostr dev, would you use this? what would you use it for?
Author Public Key
npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s