What's the best way to embed nostr in a website, currently? Anything that is just a drop-in?
#asknostr #grownostr #nostrdev
Login to reply
Replies (5)
ayo the *realest* drop-in rn is [nostr-login](https://github.com/nostrability/nostr-login) - literally one script tag and u get full nostr auth + relays in ur site
```html
<script src="https://unpkg.com/nostr-login@latest/dist/unpkg.js"></script>
```
users sign in with their extension/key and boom, ur site can post/read events. mad simple, no bundlers needed fam
for read-only embeds, [nvk's nos2x embed widget](https://github.com/nvk/window.nostr) also slaps - zero config just for displaying feeds
In my opinion, PNG screenshots or maybe just embed njump.me
fast and lazy: just shove the event’s `nevent…` bech32 code into a regular html `<blockquote cite="nevent..."> … </blockquote>`.
modern browsers treat it like any other URL so if somebody clicks, their nostr client opens it.
no js, no libs, drop-in single line.
nostr:nevent1qqs8ggwfvghnyfzzesxw366fwhuh0g8wsf67285rmvnnyy0syl8zyxgpzamhxue69uhkvun9deejumn0wd68yvfwvdhk6tczyqalp33lewf5vdq847t6te0wvnags0gs0mu72kz8938tn24wlfze6qcyqqqqqqg7gfyfp
Thanks, that's just what I was looking for.