I’m not sure I’m following completely but you can run NDK as a singleton in your app. It’s managing fetching and sending data. Then it’s up to you to manage that data (especially session data) in a way that is safe for users.

Happy to review code if it’s up somewhere.

Reply to this note

Please Login to reply.

Discussion

That took up like ALL of my post Covid brain cells. For some reason I could wrap my head around how to get data dynamically in svelte. I tried every attempt possible and pulled my hair for days. Turns out good old fashioned fetch after all.

Now I have QR codes rendering on server side, fetched AFTER user data has loaded on client side.

https://nostrmeet.me/_@jeffg.fyi

Which means I can use actual images (data urls) instead of canvas to render QR codes. Which means … press and hold to save QR to device for printing or sharing on social. Whew.

Wow. Cool QRs!