This is an embeddable nostr comments widget that just works
npm install nostr-comments-widget-reactThis is an embeddable nostr comments widget that "just works".
Try it out at https://nostr-comments.web.app/ or add it to your own site
2. Custom styling
```
--nostr-comments-background: #003049;
--nostr-comments-text-color: #eae2b7;
--nostr-comments-text-color-dark: #fcbf49;
--nostr-comments-primary-color: #fcbf49;
--nostr-comments-primary-contrast: #003049;
!Custom styling
1. npm install nostr-comments-widget-react
2. Don't create an account anywhere
3. Don't configure a database
4. It just works. You now have a chat about your website. The url is the identifier.
import { NostrComments } from 'nostr-comments-widget-react'
import 'nostr-comments-widget-react/lib/index.css'function App() {
return (
...
'wss://nostr.drss.io',
'wss://nostr-relay.freeberty.net',
'wss://nostr.unknown.place',
'wss://nostr-relay.untethr.me',
'wss://relay.damus.io'
]} />
...
);
}
`Customization
The widget can be styled by the following CSS variables
`
--nostr-comments-background - Background color
--nostr-comments-text-color - Text color
--nostr-comments-text-color-dark - Pubic key color
--nostr-comments-primary-color - Button BG color
--nostr-comments-primary-contrast - Button text color
`$3
`
:root {
--nostr-comments-background: white
--nostr-comments-text-color: #888
--nostr-comments-text-color-dark: #222
--nostr-comments-primary-color: #0d6efd
--nostr-comments-primary-contrast: white
}
``If you want to learn more about nostr, check out awesome-nostr.