Login with Nostr
Developer Hub · MIT Licensed · Dogfooded in production

Build on Nostr

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.

17published packages
8TypeScript libraries
9AI-agent skills
MITthroughout
I have a website

Add a login button

Passwordless Nostr auth in two lines. No backend, no OAuth, no password database.

Login with Nostr →
I'm building an app

TypeScript & Node

Sign events, manage keys and seed phrases, talk to relays, verify NIP-05. Fully typed, ESM + CJS.

Browse the libraries →
I'm building an agent

Python & OpenClaw

Give your AI its own identity, Lightning wallet, calendar, memory, and social graph.

Browse the skills →
TypeScript · npm

Libraries for apps & relays

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.

PackageStandardsInstallLinks
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
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
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
nostr-websocket-utils0.5.0 Resilient relay WebSockets — auto-reconnect, heartbeat, channels, and a message queue.
NIP-01
npm i nostr-websocket-utils
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
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
nostr-metadata-utils0.2.2 NIP-05 identifier verification and badge metadata generation.
NIP-05
npm i nostr-metadata-utils
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

⚡ 30-second start

import { generateKeyPair, signEvent } from 'nostr-crypto-utils'; const keys = generateKeyPair(); const event = await signEvent({ kind: 1, content: 'Hello, Nostr', }, keys.privateKey); // event.sig is a valid BIP-340 signature

🔑 Seed phrase backup

import { generateSeedPhrase, seedToKeyPair } from 'nostr-nsec-seedphrase'; const phrase = generateSeedPhrase(); // 12 words const keys = seedToKeyPair(phrase); // NIP-06 path // Same phrase → same keys, forever.
Python · OpenClaw skills

Skills for AI agents

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.

🔑

Identity

nostrkey · nostr-profile

Its own keypair. Sign events, encrypt data, publish a profile.

Finance

nostrwalletconnect

A Lightning wallet. Pay and create invoices over NIP-47.

📅

Time

nostrcalendar

Read availability, book meetings, negotiate times over relay.

🤝

Relationships

nostrsocial

A social graph with trust tiers and identity verification.

🧠

Perception

sense-memory · sense-music

Encrypted long-term memory, and audio turned into structured sense.

🌐 nse-orchestrator is the nervous system — it wires identity, wallet, calendar, relationships, and perception into one coherent agent. Reach for it when your agent needs to be more than the sum of its skills. pip install nse-orchestrator
SkillPillarInstallLinks
nostrkey0.3.4 Nostr identity for AI agents — generate keys, sign events, encrypt data, run a NIP-46 bunker. identity pip install nostrkey
nostr-profile0.2.1 Kind-0 profile management — publish, read, and update your agent's metadata. identity pip install nostr-profile
nostrwalletconnect0.2.0 Nostr Wallet Connect (NIP-47) — pay invoices, check balance, create invoices. finance pip install nostrwalletconnect
nostrcalendar0.2.4 Nostr-native scheduling — read availability, book meetings, negotiate times over relay. time pip install nostrcalendar
nostrsocial0.1.4 Social graph manager — contacts, trust tiers, and identity verification over Nostr. relationships pip install nostrsocial
sense-memory0.3.0 Sovereign persistence — encrypted long-term memories stored on Nostr relays. perception pip install sense-memory
sense-music0.3.1 Turn audio into structured analysis and annotated visualizations for AI perception. perception pip install sense-music
socialcard0.1.3 Generate beautiful social card images (OG, Twitter, GitHub) with a builder API. tool pip install socialcard
nse-orchestrator0.2.3 The orchestrator — wires identity, wallet, calendar, relationships, and alignment into one agent. orchestrator pip install nse-orchestrator

🤖 Give your agent an identity

from nostrkey import Identity bot = Identity.generate() event = bot.sign_event( kind=1, content="Hello from an AI", ) # The bot owns its own keys. No human in the loop.

⚡ ...and a wallet

from nostrwalletconnect import NWCClient wallet = NWCClient("nostr+walletconnect://...") await wallet.pay_invoice("lnbc...") balance = await wallet.get_balance() # Your agent can now transact on its own.
On the workbench

In development

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.

nostr-secure-enclave soon

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.

social-alignment soon

A deterministic five-lens pre-action compass for sovereign AI agents — the alignment pillar. Code-complete, publish pending.

nostrkey (Hermes plugin) soon

A Hermes Agent plugin giving your agent a Nostr identity — keypairs, signing, encrypt-to-disk, and gated key export with audit logging. Seven tools.

Everything's open source

MIT licensed, on GitHub, and driven by a single public registry. Star it, fork it, file an issue.