Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@rust-nostr/nostr-sdk

rust-nostr430MIT0.43.0TypeScript support: included

Nostr protocol implementation, Relay, RelayPool, high-level client library, NWC client and more.

nostr, sdk, client, decentralization, censorship-resistance, social

readme

Nostr SDK

Description

Nostr protocol implementation, Relay, RelayPool, high-level client library, NWC client and more.

This library should work on every JavaScript environment (nodejs, web, react native, ...).

Documentation

Learn more about rust-nostr at https://rust-nostr.org.

State

This library is in an ALPHA state, things that are implemented generally work but the API will change in breaking ways.

Donations

rust-nostr is free and open-source. This means we do not earn any revenue by selling it. Instead, we rely on your financial support. If you actively use any of the rust-nostr libs/software/services, then please donate.

License

This project is distributed under the MIT software license - see the LICENSE file for details

changelog

Changelog

v0.43.0 - 2025/07/28

Changed

  • Bump nostr upstream deps to 0.43 (see the upstream CHANGELOG for more details)

v0.42.1 - 2025/05/26

Changed

  • Bump nostr from 0.42.0 to 0.42.1 (see the upstream CHANGELOG for more details)

Fixed

  • Fix JsRelayArray TypeScript type declaration

v0.42.0 - 2025/05/20

Changed

  • Bump nostr upstream deps to 0.42.0 (see the upstream CHANGELOG for more details)

v0.41.1 - 2025/04/15

Fixes

  • Pin wasm-bindgen to 0.2.95 to fix "Constructor of class '<name>' is private and only accessible within the class declaration" issue

v0.41.0 - 2025/04/15

Changed

  • Bump upstream deps to 0.41.0 (see the upstream CHANGELOG for more details)

Added

  • Expose Relay::ban

v0.40.2

Fixed

  • Fixes from upstream rust crates

v0.40.1

Fixed

  • Fix NostrConnect constructor