{"_id":"@0xx0lostcause0xx0/disgus","_rev":"2-7fac869a3f883a5d2ee5a49cb86579eb","name":"@0xx0lostcause0xx0/disgus","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"@0xx0lostcause0xx0/disgus","version":"0.1.0","author":{"name":"0xx0lostcause0xx0"},"license":"GPL-2.0-or-later","_id":"@0xx0lostcause0xx0/disgus@0.1.0","maintainers":[{"name":"0xx0lostcause0xx0","email":"imatt.au@protonmail.com"}],"homepage":"https://github.com/imattau/disgus","bugs":{"url":"https://github.com/imattau/disgus/issues"},"dist":{"shasum":"653a05ccce96102b67a72d1ef03de083a1266f7e","tarball":"https://registry.npmjs.org/@0xx0lostcause0xx0/disgus/-/disgus-0.1.0.tgz","fileCount":4,"integrity":"sha512-mn3A/EnT+vOgFbGgMNGXpTOAsSdSt4XuDVEQANz+uFH+09L9r3fxVWofP2d/odx9dlXieke/+5WhGgEL53GrRw==","signatures":[{"sig":"MEUCIFnoXCC6ugG0ur1B3xXQwggcN05JeVxuK9dUT8/XNc6JAiEA6giWndQopif25MRk1wHTL83cgrDtCVa1TABuJCE3s1c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":343198},"main":"dist/index.js","gitHead":"96fafeaf26bfce0bec4873d60975cc14cf0bf4f5","scripts":{"dev":"vite","build":"vite build","prepack":"pnpm build","preview":"vite preview"},"_npmUser":{"name":"0xx0lostcause0xx0","email":"imatt.au@protonmail.com"},"repository":{"url":"git+https://github.com/imattau/disgus.git"},"_npmVersion":"10.9.8","description":"A commenting system for your blog or website based on [Nostr](https://github.com/nostr-protocol/nostr) open protocol. It's like Disqus but Nostier...","directories":{},"_nodeVersion":"22.23.1","dependencies":{"react":"^18.2.0","react-dom":"^18.2.0","nostr-tools":"^2.23.8","nostr-passkey":"^0.3.0","@heroicons/react":"^2.0.13","@headlessui/react":"^1.7.7"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^4.0.5","postcss":"^8.4.31","tailwindcss":"^3.2.4","@types/react":"^18.0.26","autoprefixer":"^10.4.13","@types/react-dom":"^18.0.9","@vitejs/plugin-react":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/disgus_0.1.0_1784580954509_0.001606699292587832","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@0xx0lostcause0xx0/disgus","version":"0.1.6","license":"GPL-2.0-or-later","author":{"name":"0xx0lostcause0xx0"},"contributors":["Carlito Platanito (https://github.com/carlitoplatanito)"],"publishConfig":{"registry":"https://registry.npmjs.org","access":"public"},"repository":{"url":"https://github.com/imattau/disgus.git"},"homepage":"https://github.com/imattau/disgus","main":"dist/index.js","dependencies":{"@headlessui/react":"^1.7.7","@heroicons/react":"^2.0.13","nostr-passkey":"^0.3.0","nostr-tools":"^2.23.8","react":"^18.2.0","react-dom":"^18.2.0"},"devDependencies":{"@types/react":"^18.0.26","@types/react-dom":"^18.0.9","@vitejs/plugin-react":"^3.0.0","autoprefixer":"^10.4.13","postcss":"^8.4.31","tailwindcss":"^3.2.4","vite":"^4.0.5"},"scripts":{"dev":"vite","build":"vite build","preview":"vite preview"},"_nodeVersion":"22.23.1","_id":"@0xx0lostcause0xx0/disgus@0.1.6","dist":{"integrity":"sha512-5qfDXBPG3KflJm6H9fKalMYxPFO4z6VZX0NpxkWfdY8o5qAO3HN3B+5CCAwBl7o/3cnejTavL+ud6yjUCrXbGA==","shasum":"1cecda7e546ea04514097a18a9dd673016f0039e","tarball":"https://registry.npmjs.org/@0xx0lostcause0xx0/disgus/-/disgus-0.1.6.tgz","fileCount":4,"unpackedSize":343223,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@0xx0lostcause0xx0%2fdisgus@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDPPJLbCz0H7XM+blB7u2uCRoh3dJVnNfQEHt+2VQBfEQIgMnafUdYlwhDpSVmsLewZVO3kybd2pnco3DC9KtR3Vkk="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:3a31ede2-bc35-4a47-b129-8992b96bcf1d"}},"directories":{},"maintainers":[{"name":"0xx0lostcause0xx0","email":"imatt.au@protonmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/disgus_0.1.6_1784582970977_0.8486492804959644"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-20T20:55:54.329Z","modified":"2026-07-20T21:29:31.432Z","0.1.0":"2026-07-20T20:55:54.662Z","0.1.6":"2026-07-20T21:29:31.126Z"},"author":{"name":"0xx0lostcause0xx0"},"license":"GPL-2.0-or-later","homepage":"https://github.com/imattau/disgus","repository":{"url":"https://github.com/imattau/disgus.git"},"maintainers":[{"name":"0xx0lostcause0xx0","email":"imatt.au@protonmail.com"}],"readme":"# 🤮 Disgus\n\nA commenting system for your blog or website based on [Nostr](https://github.com/nostr-protocol/nostr) open protocol. It's like Disqus but Nostier...\n\nDemo available at https://carlitoplatanito.com/demo\n\n## Requirements\n\nMust have a Nostr `pubkey` and `relay`.\n\nNIP07 compatible browser plug-in for login.\n\n## Usage\n\n### Web Component (recommended)\n\nPlace a `<disgus-comments>` element where you want comments to appear:\n\n```html\n<disgus-comments\n  pubkey=\"YOUR_NOSTR_PUBKEY\"\n  relays=\"wss://relay1.com,wss://relay2.com\"\n></disgus-comments>\n\n<script src=\"https://unpkg.com/disgus\" data-disgus></script>\n```\n\nNo separate CSS file needed -- styles are bundled inline.\n\n### Single script tag (with data attributes)\n\nOr use a script tag with `data-disgus` and `data-*` attributes. No meta tags needed:\n\n```html\n<div id=\"disgus\"></div>\n\n<script src=\"https://unpkg.com/disgus\"\n  data-disgus\n  data-pubkey=\"YOUR_NOSTR_PUBKEY\"\n  data-relays=\"wss://relay1.com,wss://relay2.com\">\n</script>\n```\n\n### Legacy (meta tags)\n\nStill works with `<meta>` tags for sites that prefer declarative config in the `<head>`:\n\n```html\n<meta property=\"nostr:pubkey\" content=\"YOUR_NOSTR_PUB_KEY\" />\n<meta property=\"nostr:relay\" content=\"wss://relay1.com\" />\n<meta property=\"nostr:relay\" content=\"wss://relay2.com\" />\n\n<div id=\"disgus\"></div>\n\n<script src=\"https://unpkg.com/disgus\"></script>\n```\n\nConfig priority: Web Component attributes > `data-*` attributes > meta tags > defaults.\n\n## How it works\n\nEvery page/author gets a Nostr note/event created by a random user when posting the first response.\n\nThis event becomes the 'root' note for all the other responses in the thread.\n\nOffers NIP-07 for login or just type a name to post as a **Rando** (non-NIP05 verified temp guest account).\n\n> If you have the same relays set on Damus or whatever other Nostr client you will be able to see replies, etc. The 'author' user will get alerts as they are tagged in the root post as well.\n\n## Configuration\n\n| Option | Web Component attr | data-* attr | Meta tag |\n|---|---|---|---|\n| Pubkey | `pubkey` | `data-pubkey` | `nostr:pubkey` |\n| Relays (comma-sep) | `relays` | `data-relays` | `nostr:relay` (multiple) |\n| Event ID | `event-id` | `data-event-id` | `nostr:event_id` |\n| Canonical URL | Auto (og:url / link[rel=canonical] / location) | | `og:url` |\n| Title | Auto (og:title / document.title) | | `og:title` |\n\n## Development\n\n```sh\nnpm run dev       # Vite dev server with HMR\nnpm run build     # Build for production\nnpm run preview   # Serve the built demo via HTTP (open http://localhost:4173)\n```\n\nThe demo page at `/dist/index.html` uses the built `<disgus-comments>` web component and works from `file://` or any HTTP server.\n\n## Work In Progress\n\nMore features coming -- open a ticket, pull request or hit me on Nostr (_@carlitoplatanito.com)\n","readmeFilename":"","contributors":["Carlito Platanito (https://github.com/carlitoplatanito)"]}