Oddbean new post about | logout
 where can I learn more about this nostrscript thing? 
 nostrscript is just webassembly that can execute aggregation queries on a local relay (nostrdb in the case). so will be available for any client who wants to build on nostrdb.

I started writing up some of the plans on this here:

https://github.com/damus-io/nostrdb/issues/33 
 we actually already have nostrscript integrated into damus ios, I wrote a single-file C wasm interpreter, but all it does right now is run zap scripts:

https://github.com/damus-io/damus/blob/master/damus-c/wasm.c

https://github.com/damus-io/damus/tree/master/nostrscript

I wanted to build out nostrdb first so that these algos can run efficiently. I'm currently using notedeck as my main nostrdb testing bed. 
 Would it be possible to implement nostrscript on top of any database architecture or does it require nostrdb?

I'm working on something that is going to gave a generic database of events, and if your writing algorithms using WASM it would be cool if I could reuse them