Pairing a nostr query with a nostrscript(wasm) filter makes a lot of sense: the nostrscript can be jit-compiled and cached, and the query plan is determined from the base nostr query so that the results can start returning instantly and efficiently. I think I just came up with a new kind of database powered by nostr 🤔
Arbitrary but fast sandboxed code execution to query a database sounds really cool, and it can be really fast, fast as strfry.
What if instead of just filtering, we pass a reducer, so you could effectively do map-reduce over nostr data 🤔 this can be used for counting and grouping nostr notes in arbitrary ways, directly from a query, efficiently. Holy shit.
jb55
_@jb55.com
npub1xtsc...kk5s
I made damus, npubs, and zaps ⚡️
Independent bitcoin core and lightning dev.
Owner of the oldest still running lightning node.
💍nostr:npub1l0gxx3qq9ex5lpurnfmqhfdrx27xfgj24sx6kqmk3r8a5cne63zspx78fx
Imagine if I enabled these features on a relay. Pass nostrscripts to perform arbitrary queries on the database.
nostr has created a monster: an insane database engineer with dangerous wasm knowledge View quoted note →
New features coming to #nostrdb soon:
1. Indexable cursor api
This will allow you to perform resumable and paginated queries in realtime. This will enable infinite scroll on arbitrary queries, you will also be able to index/seek into these queries at any point, which will be useful for building performant infinite timeline renderers: “render notes 5..8 in this cursor query”
These cursors will maintain a consistent view of the data within a transaction.
1. Arbitrary query filters
Query the database with an arbitrary filter function that filters results based on any logic you want. When you combine this with the cursor api, you can have infinitely scrollable queries with arbitrary complexity.
In the future, nostrscripts will also be able to be able to run inside of a query filter, enabling custom, scriptable, sharable, infinitely scrollable queries of any kind.
someone please make an audio version of this with the proper slap and ostrich sound effects at the end and I will add it to notedeck View quoted note →
Should we? 😏 View quoted note →
Im confused at why so many apps do this. Here are screenshots from version history of chatgpt and instagram apps on ios appstore. Why don’t they want users to know what is new in each version?


protect these guys at all costs View quoted note →
I love building on nostr. I can just think of an idea for a way to interact with nostr and implement it.
No need to ask for permission or buy api credits to some system that can shut me out.
nostr not only affords unrestricted and uncensorable speech for all, but it also enables us devs to build whatever we want without restrictions. It is flexible enough to build tons of new experiences that all interoperate.
Twitter clients are just the tip of the iceberg. Admittedly a very cool usecase that I’m still focused on, but a desktop client has a lot more real estate which I plan to take advantage of to explore more interesting interactions. View quoted note →
notedeck column configurations will be stored in nostr notes so you can load them anywhere
by default these will be encrypted/private, but it would be cool if there was an option to make your decks public, so anyone can load your configurations. The columns can be arbitrary nostr filters and perhaps even nostrscripts.
It will be fun to load and browse peoples decks!


edumacating myself on design. just learned what affordances and signifiers are. am i a designer now
@fiatjaf is your relay ok?

