nak

Generate Nostr keys, encode identifiers, fetch relay events, and publish signed events via CLI.

23|2|Updated Dec 5, 2024
One-click install
npx skills add https://github.com/SovranBitcoin/Sovran --skill nak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nak
Source: https://github.com/SovranBitcoin/Sovran/tree/main/.agents/skills/nak
Command: npx skills add https://github.com/SovranBitcoin/Sovran --skill nak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interact with Nostr securely and efficiently from the command line, enabling quick key management, identifier encoding/decoding, and relay interactions without a GUI.

Core Features & Use Cases

  • Generate and manage Nostr keys (npub, nsec), and support for encoding/decoding identifiers.
  • Fetch events from relays and publish signed events with optional remote signing and identity encoding.
  • Use cases include quick identity setup, scripting relay queries, and automating Nostr workflows across multiple relays and identifiers.

Quick Start

Install nak and run a basic workflow to generate a key, encode it to npub, and fetch a sample event from a test relay.

Frequently Asked Questions about nak

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

FAQPage Schema
How do I generate and manage Nostr keys from the command line?

You can generate and manage Nostr keys from the command line by using this toolkit to quickly create npub and nsec identifiers for identity setup without needing a graphical interface. It enables secure key management directly within your terminal environment.

What is the best way to script Nostr relay queries for automating workflows?

The best way to script Nostr relay queries is by using a CLI toolkit to fetch events from multiple relays and automate workflows. This approach allows developers to script automated interactions across various identifiers without manual GUI intervention.

Can I encode and decode Nostr identifiers like npub and nevent via a CLI?

Yes, you can encode and decode Nostr identifiers like npub and nevent via a CLI. This toolkit supports secure command line encoding and decoding of identifiers, enabling quick transformations for scripting and automation tasks.

How do I publish signed Nostr events to relays using command line tools?

You can publish signed Nostr events to relays by executing CLI commands that submit signed events to specified relays. It supports optional remote signing and identity encoding, streamlining event broadcasting for automated workflows.

Do I need a GUI to fetch events from Nostr relays?

No, you do not need a GUI to fetch events from Nostr relays. This CLI toolkit allows developers to securely and efficiently interact with the Nostr network, fetching events directly from the command line for scripting and automation.

What are the limitations of using a CLI for Nostr key management?

Using a CLI for Nostr key management requires the nak tool installed, access to a running Nostr network, and basic familiarity with identifiers like npub, nsec, and nevent. Users without command line experience or these prerequisites may face a steep learning curve.