Adding 100k on top
If there are any board JavaScript developers out there that want to build a nostr thing and earn sats. I'm officially putting up a bounty to integrate rx-nostr into node-red
I'm offering 100k sats to anyone who will build and publish a working rx-nostr -> node-red integration
It needs to fulfill the following requirements
- Easy to install ( should be searchable in the UI )
- Support for all options in `createRxNostr` including signer and default relays
- Support for creating subscriptions using `createRxForwardReq`
- Events returned from subscriptions should be node-red messages
- A node for easily publishing an event to the default or custom set of relays ( using `rxNostr.send` )
50k bonus if you can also create a package that integrates applesauce EventStore into node-red
- Configuration node for creating a global EventStore
- Query node for subscribing to the store using one of the Queries
I don't know if I'm asking too much but I really want to see this built. I think we could do a lot of bot / DVM prototyping if we had a way to use nostr in node-red
For example. if we had both of these integrations it would be easy to setup a node-red flow that would
- Connect to a set of relays and listen for events (kind 1 mentions)
- Do some work with new events
- Easily respond using applesauce factory to create a reply event
- repeat... ( profit? )
sites:
rx-nostr https://penpenpng.github.io/rx-nostr/
node-red https://nodered.org/
applesauce https://hzrd149.github.io/applesauce/core/event-store.html
Discussion
so would a couple of useful usecases for this be ...
Event Archival - Archive specific types of Nostr events for later analysis.
-Flow Description
```
[Nostr Subscribe] ā [Event Filter] ā [Transform] ā [EventStore Save] ā [Query API]
```
### Implementation Details
- Subscribe to multiple event kinds
- Filter events based on content or tags
- Transform events into desired format
- Store in Applesauce EventStore
- Provide query endpoints for data analysis
-- or something like --
Automated Response System - Create automated responses based on event patterns.
### Flow Description
```
[Nostr Subscribe] ā [Pattern Matcher] ā [Response Generator] ā [Nostr Publish]
```
### Implementation Details
- Define trigger patterns (keywords, commands)
- Create response templates
- Support for dynamic content insertion
- Rate limiting and spam prevention
- Store interaction history
I'm starting to mock something together and from the top of my head ... these seem like useful actions.
something closer to the Automated Response System would be a good start. I'd imagine building the Query API could be difficult and wouldn't really be that useful since most of the use-cases I have in mind would only deal with nostr relays
⦠ya Iām wondering if this is as much a NodeRed service as much as a simple node/express server that uses Postgres (or Supabase) for data management & just listens to a handful of relays & performs an action as configured by the user / request maker.
Eg. listen for user nPUB on kind # containing #keyword trigger #action
It could be its own thing, but that's not really what I'm asking for.
I only want a way to subscribe to relays using rx-nostr in node-red and then publish new events
My goal is to build various custom bots that I run on my raspberry pi at home