Skip to content

nostr-coreThe complete Nostr toolkit

40+ NIPs, NWC wallet client, eCash, BOLT-11, Blossom media, and protocol primitives for JavaScript and TypeScript

nostr-core

Lightning Payments

Pay invoices, check balances, and create invoices with a single connection string. Full NIP-47 coverage.

Fiat Conversion

Built-in fiat-to-sats conversion using public exchange rate APIs. No extra dependencies needed.

Lightning Address

Native LNURL-pay resolution. Send to Lightning Addresses without any external libraries.

40+ NIPs Supported

Social, identity, privacy, eCash wallets (NIP-60), Blossom media (NIP-B7), BOLT-11 invoice decoding, and much more.

Auto-Encryption

Automatically detects NIP-04 vs NIP-44 encryption support. Zero configuration required.

Cross-Runtime

Works on Node.js 18+, Deno, Bun, and Cloudflare Workers. Pure JavaScript, no native bindings.

4
dependencies
Audited Noble crypto
82%
fewer packages
vs @getalby/sdk
40+
NIPs supported
Full protocol coverage

Quick Example

ts
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()

How does nostr-core compare?

40+ NIPs, full LNURL protocol, BOLT-11 decoding, eCash wallets, Blossom media, 82% fewer packages, zero vendor lock-in.

See the full comparison →

The Team

Pratik Patel

Pratik Patel

Founder & Developer
DoktorShift

DoktorShift

Co-Founder & Developer

Released under the MIT License.