Hi all,
Launching "Nostr Components" - Take Nostr content beyond Nostr clients - embed it anywhere.
Embed
- Follow button
- Nostr profile, post, and small profile badge
by just including a script.
pull down to refresh
Hi all,
Launching "Nostr Components" - Take Nostr content beyond Nostr clients - embed it anywhere.
Embed
by just including a script.
Nostr cannot move forward as long as the browser-extension mind virus remains uncured.
Hmm. So what do you propose as alternative?
The way follow works for legacy social apps is it just directing to a web app, or a protocol handler (mobile).
So a follow button either has to be opinionated as to which web app it uses, or, use a protocol handler for similar UX.
Adding an extension rquirement, which can't even be used on mobile, isn't achieving the same UX... so why bother?
You could be unopinionated with PWAs using a protocol handler, but the problem with that is PWA's are constrained to the kinds browsers already support (and we still havent gotten lightning: added after all these years so probably not going to happen)
I think if people are really hung up on being not-opinionated on which Nostr app they direct people to then either making a more concentrated push on new types into the major browsers is required, or a hostile takeover of an existing one like magnet: that can decode relay/npub information
I get it. Let me think through this and revert.
Thanks for the detailed feedback :-)
Would it be enough to redirect the user to njump.me or similar services in case there's no extension on browser desktop or on mobile?
Should be doable, if window.nostr=false make it just a regular link
Just tried to implement it on our shop footer https://agora.ftp.sh/ and the button is not loading up. Apparently linking to the file
nostr-follow-button.jsfrom github isn't working,https://github.com/saiy2k/nostr-components/blob/main/dist/nostr-follow-button.jsNor directly from the site.
https://nostr-components.web.app/dist/nostr-follow-button.jsThanks for trying this out!
Can you please try copying the file to your server?
Didn't test, if hotlinking works!
yes is loading now. Thank you! Will be nice if the text simply say Follow on Nostr
Ha. Will make it customizable :-)
Also made the file in the website hot linkable:
https://nostr-components.web.app/dist/nostr-profile.js
https://nostr-components.web.app/dist/nostr-profile-badge.js
https://nostr-components.web.app/dist/nostr-post.js
https://nostr-components.web.app/dist/nostr-follow-button.js
This is nice.
Thanks!
Really cool, and much needed!
Thanks :-)