nostr-tools

Create, sign, filter, and verify Nostr events using nostr-tools APIs.

38|15|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/purrgrammer/grimoire --skill nostr-tools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nostr-tools
Source: https://github.com/purrgrammer/grimoire/tree/main/.claude/skills/nostr-tools
Command: npx skills add https://github.com/purrgrammer/grimoire --skill nostr-tools

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides patterns, guidance, and practical knowledge for using nostr-tools to develop Nostr-based applications, including event creation, signing, filtering, and relay communication.

Core Features & Use Cases

  • Event handling and signing workflows using nostr-tools APIs
  • Key management, encoding, and verification for Nostr keys
  • Relay interaction with subscriptions, publications, and queries
  • NIP implementations coverage (NIP-04, NIP-05, NIP-19, NIP-44, etc.)
  • Real-world use: building a basic Nostr client or testing tooling

Quick Start

Install nostr-tools via npm, import required modules, generate keys, create and sign an event, and verify it.

Frequently Asked Questions about nostr-tools

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

FAQPage Schema
How do I create and sign Nostr events using TypeScript?

You can create and sign Nostr events using nostr-tools by generating cryptographic keys, constructing the event payload, and applying the library's signing API to produce a verifiable signature.

What is the best way to manage Nostr keys and verify event signatures?

The best way to manage Nostr keys is using nostr-tools' built-in key management and encoding APIs, which handle key generation and allow you to verify event signatures cryptographically to ensure event authenticity.

How do I connect to Nostr relays and subscribe to events?

You can connect to Nostr relays and subscribe to events by using nostr-tools to establish relay connections, configure subscription filters, and query for published events matching your specific criteria.

Does nostr-tools support implementing specific NIPs like NIP-04 and NIP-19?

Yes, nostr-tools supports implementing specific NIPs including NIP-04, NIP-05, NIP-19, and NIP-44. This skill provides guidance on integrating these NIP features into your Nostr protocol development.

Can I build a complete Nostr client using nostr-tools?

You can build a complete Nostr client using nostr-tools by leveraging its APIs for key management, event creation, signing, filtering, and relay interaction to handle robust event communication.