Replying to Avatar fiatjaf

nostr-web-components has improved docs now at https://web.nostr.technology/

And new components:

- for rendering full notes with proper formatting

- for rendering just the text

- for rendering a simple "follow me on nostr" button that can actually be clicked (idea copied from nostr:npub1qsvv5ttv6mrlh38q8ydmw3gzwq360mdu8re2vr7rk68sqmhmsh4svhsft3)

These components are very lightweight, they use no framework and only import what is strictly necessary from nostr-tools and nostr-gadgets. They're also very efficient and replaceable metadata is cached on IndexedDB very straightforwardly.

I don't know to whom I'm talking here because every JavaScript developer is more likely to write their own framework than to use this, but maybe nostr:npub18ams6ewn5aj2n3wt2qawzglx9mr4nzksxhvrdc4gzrecw7n5tvjqctp424 and his static sites will be interested.

Reply to this note

Please Login to reply.

Discussion

I will see if I can incorporate some of this into my new site that I've been working on the past two weeks (and I'm wondering if you somehow know about it).

These are all the current components with some random styles thrown at them (they don't have any styles by default): https://unpkg.com/nostr-web-components@0.0.14/demo.html

They're also being used somewhat in https://23gmt.nostr.technology/, https://nostrapps.com/, https://pyramid.fiatjaf.com/ and some other places I can't reveal.

gentle suggestion to turn off audio autoplay on that demo site :)

I could try to implement on my new site 👀

Either the follow button or a particular note seemed like they might be a good fit.