Took half a day and prototyped a new scripting system for nostr: https://ostrichscript.com/

It's not implemented anywhere yet, and only has one defined function, but I wanted to see how feasible it would be to build scripting using embedded lua.

nostr:nprofile1qqsr9cvzwc652r4m83d86ykplrnm9dg5gwdvzzn8ameanlvut35wy3gpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq36amnwvaz7tmwdaehgu3dwp6kytnhv4kxcmmjv3jhytnwv46qzymhwden5te0wfjkcctev93xcefwdaexwdqgdhl 's and nostr:nprofile1qqs99d9qw67th0wr5xh05de4s9k0wjvnkxudkgptq8yg83vtulad30gpr4mhxue69uhkummnw3ez6ur4vgh8wetvd3hhyer9wghxuet5qy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsz9mhwden5te0wfjkccte9e3h2unjv4h8gtnx095sz2rhwden5te0tdnxgvf38gek2vec8fjxxefh8fsnje3e8f3ngefe8garzhf68qcrsvccy48d8 's versions of NostrScript are more sophisticated, but it seemed to me something simpler was warranted, in line with the nostr ethos.

If you're interested in contributing to the project either by expanding the api or by integrating it into clients, let me know.

nostr:nprofile1qqszak7w562dzerznp222fvrgk8adkt9k9s783yt2lf6luqegp2c3pqpp4mhxue69uhkummn9ekx7mqpz3mhxue69uhhyetvv9ujuerpd46hxtnfduq36amnwvaz7tmwdaehgu3dwp6kytnhv4kxcmmjv3jhytnwv46qzymhwden5te0wfjkcctev93xcefwdaexw4tkvv3

Reply to this note

Please Login to reply.

Discussion

Are you running lua in the browser? How does that work.

Kia is just a bit of C… couldn’t that be compiled to WASM?

Lua. Fucking bullshit philistine keyboard.

It could, but try ostrichscript.com. It makes it accessible to whomever. Of course you could compile to wasm on the backend, but now the host can inject stuff more easily.

Oh that’s what I meant. Lua runtime could be compiled to WASM and could interpret stuff in the browser.

I’m definitely going to check this out.

lua-in-js

I will definitely check this out! I am thinking it could be super useful for the app I’m working on. 🙏

nostr:note17m8hcg2vlvyk2eh0wqp4jyqh7d2z6sdwqsz8d3lrpjxd4k4sgcts7vtx5l how can I miss this!