hzrd149 on Nostr: rx-nostr and applesauce work really well together to build a simple DVM I refactored ...
rx-nostr and applesauce work really well together to build a simple DVM
I refactored my noTranslate (npub1mkv…jgnu) DVM to be a little simpler
Its now broken into two parts. first the relay subscription pipeline https://github.com/hzrd149/libretranslate-dvm/blob/master/src/index.ts
Then the job translation job itself https://github.com/hzrd149/libretranslate-dvm/blob/master/src/job.ts
Its using rxjs observables and AsyncGenerators so the code is very clean and reads from top to bottom instead of jumping around and calling all kinds of functions
And rx-nostr is handling all the relay connection (and re-connection) for me so the DVM shouldn't go offline anymore
I refactored my noTranslate (npub1mkv…jgnu) DVM to be a little simpler
Its now broken into two parts. first the relay subscription pipeline https://github.com/hzrd149/libretranslate-dvm/blob/master/src/index.ts
Then the job translation job itself https://github.com/hzrd149/libretranslate-dvm/blob/master/src/job.ts
Its using rxjs observables and AsyncGenerators so the code is very clean and reads from top to bottom instead of jumping around and calling all kinds of functions
And rx-nostr is handling all the relay connection (and re-connection) for me so the DVM shouldn't go offline anymore