One family of libraries for putting Nostr into real software — from a login button to a fully sovereign AI agent. A self-contained stack: every layer is ours, from the secp256k1 primitives up — minimal dependencies, no lock-in.
Passwordless Nostr auth in two lines. No backend, no OAuth, no password database.
Login with Nostr →Sign events, manage keys and seed phrases, talk to relays, verify NIP-05. Fully typed, ESM + CJS.
Browse the libraries →Give your AI its own identity, Lightning wallet, calendar, memory, and social graph.
Browse the skills →Eight published TypeScript libraries. Noble-based cryptography, dual ESM/CommonJS, fully typed. nostr-crypto-utils is the kernel every other library and the login button build on — start there.
| Package | Standards | Install | Links |
|---|---|---|---|
| nostr-crypto-utils0.9.1kernel Core cryptographic primitives — keys, signing, encryption, encoding. Everything else depends on it. | BIP-340NIP-01NIP-04NIP-19NIP-44NIP-46NIP-49 |
npm i nostr-crypto-utils | npm ↗source ↗ |
| nostr-nsec-seedphrase0.8.0 BIP-39 seed phrases and full key management. Derive, back up, and restore Nostr identities. | NIP-01NIP-06NIP-19NIP-26 |
npm i nostr-nsec-seedphrase | npm ↗source ↗ |
| nostr-auth-middleware0.6.0 Security-first authentication middleware with challenge-binding. Drop it into your Node backend. | NIP-07NIP-98 |
npm i nostr-auth-middleware | npm ↗source ↗ |
| nostr-websocket-utils0.5.0 Resilient relay WebSockets — auto-reconnect, heartbeat, channels, and a message queue. | NIP-01 |
npm i nostr-websocket-utils | npm ↗source ↗ |
| nostr-dm-magiclink-utils0.4.0 Passwordless magic-link auth over encrypted Nostr DMs. Multi-relay, i18n-ready. | NIP-01NIP-04 |
npm i nostr-dm-magiclink-utils | npm ↗source ↗ |
| nostr-biometric-auth-utils0.2.2 WebAuthn biometric auth for Nostr — Face ID / Touch ID / passkeys as a second factor. | WebAuthn |
npm i nostr-biometric-auth-utils | npm ↗source ↗ |
| nostr-metadata-utils0.2.2 NIP-05 identifier verification and badge metadata generation. | NIP-05 |
npm i nostr-metadata-utils | npm ↗source ↗ |
| node-red-contrib-nostr0.3.0 Node-RED nodes for no-code Nostr flows — publish, subscribe, filter, and route by npub. | NIP-01Node-RED |
npm i node-red-contrib-nostr | npm ↗source ↗ |
These aren't a grab-bag. Each skill is a pillar of a sovereign AI agent — the faculties an autonomous agent needs to act, transact, plan, remember, and relate on an open network. Install what you need; wire them together with the orchestrator.
Its own keypair. Sign events, encrypt data, publish a profile.
A Lightning wallet. Pay and create invoices over NIP-47.
Read availability, book meetings, negotiate times over relay.
A social graph with trust tiers and identity verification.
Encrypted long-term memory, and audio turned into structured sense.
pip install nse-orchestrator
| Skill | Pillar | Install | Links |
|---|---|---|---|
| nostrkey0.3.4 Nostr identity for AI agents — generate keys, sign events, encrypt data, run a NIP-46 bunker. | identity | pip install nostrkey | PyPI ↗ClawHub ↗source ↗ |
| nostr-profile0.2.1 Kind-0 profile management — publish, read, and update your agent's metadata. | identity | pip install nostr-profile | PyPI ↗ClawHub ↗source ↗ |
| nostrwalletconnect0.2.0 Nostr Wallet Connect (NIP-47) — pay invoices, check balance, create invoices. | finance | pip install nostrwalletconnect | PyPI ↗ClawHub ↗source ↗ |
| nostrcalendar0.2.4 Nostr-native scheduling — read availability, book meetings, negotiate times over relay. | time | pip install nostrcalendar | PyPI ↗ClawHub ↗source ↗ |
| nostrsocial0.1.4 Social graph manager — contacts, trust tiers, and identity verification over Nostr. | relationships | pip install nostrsocial | PyPI ↗ClawHub ↗source ↗ |
| sense-memory0.3.0 Sovereign persistence — encrypted long-term memories stored on Nostr relays. | perception | pip install sense-memory | PyPI ↗ClawHub ↗source ↗ |
| sense-music0.3.1 Turn audio into structured analysis and annotated visualizations for AI perception. | perception | pip install sense-music | PyPI ↗ClawHub ↗source ↗ |
| socialcard0.1.3 Generate beautiful social card images (OG, Twitter, GitHub) with a builder API. | tool | pip install socialcard | PyPI ↗ClawHub ↗source ↗ |
| nse-orchestrator0.2.3 The orchestrator — wires identity, wallet, calendar, relationships, and alignment into one agent. | orchestrator | pip install nse-orchestrator | PyPI ↗ClawHub ↗source ↗ |
Code-complete and staged, not yet on the registries. Listed here so you know what's coming — we don't advertise an install command until the package is actually live.
Hardware-backed key management — WebAuthn + SubtleCrypto key wrapping for secp256k1, with core / server / browser builds. The strongest tier of the trust ladder. See nse.dev.
A deterministic five-lens pre-action compass for sovereign AI agents — the alignment pillar. Code-complete, publish pending.
A Hermes Agent plugin giving your agent a Nostr identity — keypairs, signing, encrypt-to-disk, and gated key export with audit logging. Seven tools.
MIT licensed, on GitHub, and driven by a single public registry. Star it, fork it, file an issue.