JSPM

  • Created
  • Published
  • Downloads 137
  • Score
    100M100P100Q106616F
  • License MIT

NDK Mobile

Package Exports

  • @nostr-dev-kit/ndk-mobile
  • @nostr-dev-kit/ndk-mobile/components
  • @nostr-dev-kit/ndk-mobile/components/relays

Readme

NDK Mobile

A React Native/Expo implementation of NDK (Nostr Development Kit) that provides a complete toolkit for building Nostr applications on mobile platforms.

Features

  • 🔐 Multiple signer implementations (NIP-07, NIP-46, Private Key)
  • 💾 SQLite-based caching for offline support
  • 🔄 Subscription management with automatic reconnection
  • 📱 React Native and Expo compatibility
  • 🪝 React hooks for easy state management
  • 👛 Integrated wallet support

Installation

npm install @nostr-dev-kit/ndk-mobile

Usage

When using this library don't import @nostr-dev-kit/ndk directly, instead import @nostr-dev-kit/ndk-mobile. ndk-mobile exports the same classes as ndk, so you can just swap the import.

Example

There is a barebones repository showing how to use this library: ndk-mobile-sample.

For a real application using this look at Olas.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

@pablof7z