Skip to main content

Libraries Overview

One pick per language, then the details on each language's page. Versions and status were checked against the package registries and repos in October 2026.

๐ŸŸข active ยท ๐ŸŸก quiet (6โ€“12 months) ยท ๐Ÿ”ด archived or dead ยท checked Oct 2026

The pickโ€‹

LanguageStart withVersionDocs
JavaScript / TypeScriptnostr-tools๐ŸŸข 2.25jsr.io/@nostr/tools ยท our page
Rustnostr-sdk (Nostr Dev Kit)๐ŸŸข 0.45doc.nostrdevkit.org ยท our page
Pythonnostr-sdk (Rust bindings)๐ŸŸข 0.45doc.nostrdevkit.org ยท our page
Gofiatjaf.com/nostr๐ŸŸข untaggedpkg.go.dev ยท our page
Kotlin / AndroidQuartz๐ŸŸข 2.0other languages
Swift / iOSnostr-sdk-swift๐ŸŸข 0.45other languages
Dart / Flutterndk๐ŸŸข 0.10other languages
# JavaScript / TypeScript
npm i nostr-tools
# Rust
cargo add nostr-sdk
# Python
pip install nostr-sdk
# Go (no semver tags yet; this records a pseudo-version in go.mod)
go get fiatjaf.com/nostr@master
# Dart / Flutter
dart pub add ndk
Three different "NDKs"

NDK in JavaScript is @nostr-dev-kit/ndk. Nostr Dev Kit is the 2026 name of the Rust project formerly called rust-nostr, plus its Python, Kotlin, Swift and C# bindings. ndk on pub.dev is a third, unrelated Dart SDK. Check which one a tutorial means.

What changed since older guidesโ€‹

  • rust-nostr is now Nostr Dev Kit. The repo moved to github.com/nostrdevkit/nostr. Old links redirect, but binding package names changed (for example npm @rust-nostr/nostr-sdk โ†’ @nostrdevkit/nostr-sdk-web, Maven org.rust-nostr โ†’ org.nostrdevkit). The 0.45 API is very different from 0.35-era examples.
  • go-nostr and khatru are archived. Both moved into the module fiatjaf.com/nostr (khatru is now fiatjaf.com/nostr/khatru).
  • Python: use nostr-sdk. python-nostr (PyPI name nostr) is dead, and pynostr is quiet.
  • nostr-tools 2.17+ changed two signatures. pool.subscribeMany() takes one filter object, and pool.publish() returns an array of promises. Code written for older versions silently breaks. See JavaScript.

Choosing wellโ€‹

  • Prefer libraries that do outbox routing (NIP-65) for you. Users publish to their own relays; a client that only reads a fixed relay list misses most posts. applesauce, welshman, NDK, @nostr/gadgets, nostr-sdk and Quartz handle this.
  • Don't hold user keys if you can avoid it. Check that the library can sign through a NIP-07 extension, a NIP-46 bunker or a NIP-55 Android signer. See Key Management.
  • Pin versions. Almost every Nostr library is below 1.0 and breaks its API between minor releases. The Rust and Python SDKs call themselves alpha.
  • Encrypt with NIP-44, message with NIP-17. NIP-04 is deprecated. All four main picks implement NIP-44 and NIP-17 gift wraps.
  • Treat old lists with care. awesome-nostr is useful, but in October 2026 it still pointed at several archived or moved repos.

Don't useโ€‹

PackageWhy
npm nostr (nostr-js)๐Ÿ”ด last release 2023
nostr-react, @nostr-connect/connect๐Ÿ”ด unmaintained since 2023โ€“2024
npm @rust-nostr/nostr-sdk๐Ÿ”ด deprecated; use @nostrdevkit/nostr-sdk-web
PyPI nostr (python-nostr), nostr-protocol๐Ÿ”ด dead; use nostr-sdk
PyPI nostr-toolsUnrelated to the JavaScript library of the same name
github.com/nbd-wtf/go-nostr, github.com/fiatjaf/khatru๐Ÿ”ด archived; use fiatjaf.com/nostr

The wiki's Libraries page keeps the longer list of alternatives.