@nostr-dev-kit/ndk-mobile
v0.1.4
Published
NDK Mobile
Downloads
58
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.