I’ve built several small Nostr services that only need to run for a few seconds a day when triggered by specific events. Yet, I have to maintain 24/7 daemons for each just to subscribe to relays.

Imagine a single service managing all relay subscriptions and invoking other services as short-lived lambdas/functions based on filters in a config file. The trigger event, past events, and a cached state could be passed as arguments.

A simple CLI could make creating and deploying new projects easy. Would building a ‘serverless’ platform for Nostr apps make sense?

Reply to this note

Please Login to reply.

Discussion

Have you looked into node-red at all? It's a visual flow based programming tool and I've been wanting to build a Nostr module for it, just haven't had the time yet 😞

https://github.com/hzrd149/node-red-contrib-rx-nostr

Really interesting

also there is Rod and ocknamo things https://github.com/r0d8lsh0p/nostr-n8n

looks interesting, but I've played around with n8n a bit and found it a lot more limiting than node-red, mostly because its all built around APIs and AI now

amazing, yes! I used to work on PD.