nostr-coreThe complete Nostr toolkit
40+ NIPs, NWC wallet client, eCash, BOLT-11, Blossom media, and protocol primitives for JavaScript and TypeScript
40+ NIPs, NWC wallet client, eCash, BOLT-11, Blossom media, and protocol primitives for JavaScript and TypeScript
Pay invoices, check balances, and create invoices with a single connection string. Full NIP-47 coverage.
Built-in fiat-to-sats conversion using public exchange rate APIs. No extra dependencies needed.
Native LNURL-pay resolution. Send to Lightning Addresses without any external libraries.
Social, identity, privacy, eCash wallets (NIP-60), Blossom media (NIP-B7), BOLT-11 invoice decoding, and much more.
Automatically detects NIP-04 vs NIP-44 encryption support. Zero configuration required.
Works on Node.js 18+, Deno, Bun, and Cloudflare Workers. Pure JavaScript, no native bindings.
import { NWC } from 'nostr-core'
const nwc = new NWC('nostr+walletconnect://...')
await nwc.connect()
const { balance } = await nwc.getBalance()
console.log(`Balance: ${balance} msats`)
nwc.close()