victor on Nostr: I’ve built several small Nostr services that only need to run for a few seconds a ...
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?
Published at
2025-01-17 12:42:05Event JSON
{
"id": "410b02805d401dd029a4133cd25fecd26fbaba7d09ab59ba3614cdc16def437c",
"pubkey": "3b3a42d34cf0a1402d18d536c9d2ac2eb1c6019a9153be57084c8165d192e325",
"created_at": 1737117725,
"kind": 1,
"tags": [
[
"r",
"wss://eden.nostr.land/"
],
[
"r",
"wss://nos.lol/"
],
[
"r",
"wss://nostr-pub.wellorder.net/"
],
[
"r",
"wss://nostr.bitcoiner.social/"
],
[
"r",
"wss://nostr.wine/"
],
[
"r",
"wss://offchain.pub/"
],
[
"r",
"wss://relay.damus.io/"
],
[
"r",
"wss://relay.nostr.band/"
],
[
"r",
"wss://relay.snort.social/"
],
[
"r",
"wss://relay.primal.net/"
]
],
"content": "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.\n\nImagine 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.\n\nA simple CLI could make creating and deploying new projects easy. Would building a ‘serverless’ platform for Nostr apps make sense?",
"sig": "bbbe7605137e7cdfb897e9791bc36af14ed9851f4c6ecb5235f9cd3add6c0bea822303414ca6de23a13cd94b8ad6841992ed4fee1e7006f28ee0e72fa6d617b9"
}