nostr-comments

Build in-app Nostr NIP-22 threaded comment systems with React components.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/samthomson/treasure-board --skill nostr-comments
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nostr-comments
Source: https://github.com/samthomson/treasure-board/tree/main/.claude/skills/nostr-comments
Command: npx skills add https://github.com/samthomson/treasure-board --skill nostr-comments

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables adding an in-app Nostr comments system to posts or URLs, allowing users to engage in threaded discussions and real-time conversations within a decentralized content ecosystem.

Core Features & Use Cases

  • Threaded Replies: Users can reply to specific comments, enabling nested discussions.
  • User Authentication: Integrates with existing user auth to link comments to identities.
  • Real-time Updates: Comments appear in real-time as new posts are made.
  • Comment on URLs: Works with external URLs by attaching a comment section to web pages.
  • Use Case: Add a comments section to a blog post or geocache listing to foster community discussion.

Quick Start

Use the CommentsSection component to render comments for a given root event or URL, for example: <CommentsSection root={articleEvent} /> with optional props for title and empty state.

Frequently Asked Questions about nostr-comments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add decentralized Nostr comments to my React posts?

You can add Nostr comments by rendering a React component that targets a root Nostr event or URL. This enables threaded discussions and real-time updates directly within your application's content.

What is NIP-22 and how does it apply to decentralized comment systems?

NIP-22 is the Nostr protocol standard used for attaching comment events to content. This Skill applies NIP-22 to enable threaded replies and real-time discussions attached to specific posts, articles, or external URLs.

Can I attach a real-time comments section to external URLs?

Yes, you can attach a real-time comments section to external URLs. The system links Nostr events to the web page address, allowing users to engage in threaded discussions and live conversations around the linked content.

Does the Nostr comments component require user authentication?

Yes, the Nostr comments system integrates with existing user authentication hooks. Linking comments to user identities ensures threaded discussions and real-time updates are properly mapped to decentralized profiles.

How do I render threaded replies for a Nostr event in my frontend?

You render threaded replies by passing a root Nostr event to a dedicated React component. This component manages the real-time data flow and nested discussion logic required for displaying decentralized comments.