Installing the library

Rust

Add the nostr dependency in your Cargo.toml file:

[dependencies]
nostr = "0.36"

Alternatively, you can add it directly from git source:

[dependencies]
nostr = { git = "https://github.com/rust-nostr/nostr", tag = "v0.36.0" }

Info

To use a specific commit, use rev instead of tag.

Import the library in your code:

use nostr::prelude::*;
Python

Check nostr-sdk installation docs.

JavaScript

Check nostr-sdk installation docs.

Kotlin

Check nostr-sdk installation docs.

Swift

Check nostr-sdk installation docs.

Flutter

Check nostr-sdk installation docs.