Added a 'Gallery' button under posts with images, would that work for you?

Reply to this note

Please Login to reply.

Discussion

Yeah. I was more so curious than it being a feature request, however I think it adds value.

What I’ve been looking for is a JS Nostr event parsing library that handles mentions, event references, Nostr:, #[], root event, reply event, images/media detection, etc. It doesn’t need to render anything, just parse and output an object.

My js-fu is pathetic, so please send this lib my way if you find one, I'd love to use it too. My code is a collection of snippets stolen from many places.

I’ve just prototyped something. Would it be useful to use as a library? What else do you need or what wouldn’t work well? My main concern is slow network requests, otherwise it’s likely decent. Maybe this resembles a future API endpoint for event metadata.

At some point I’d likely need a rust version.. however typescript is a start.

nostr:note1kws8xh7gsjj5sf87d59zprgl4uq99mt6ap2ns66a8ef4kzuekdwsn76cwm

I have a use for such a thing, will look into it tomorrow, thanks!