Package Exports
- @samthomson/nostr-messaging/core
- @samthomson/nostr-messaging/package.json
- @samthomson/nostr-messaging/react
- @samthomson/nostr-messaging/storage
- @samthomson/nostr-messaging/ui
Readme
@nostr-dm/messaging
Reusable Nostr messaging system with NIP-04 and NIP-17 support.
Installation
npm install @nostr-dm/messagingUsage
// Core library (pure functions)
import { dmLib } from '@nostr-dm/messaging/core';
// Storage (IndexedDB)
import { writeMessagesToDB } from '@nostr-dm/messaging/storage';
// React context (TODO: not yet extracted)
// import { NewDMProvider } from '@nostr-dm/messaging/react';
// UI components (TODO: not yet extracted)
// import { NewDMChatArea } from '@nostr-dm/messaging/ui';Development
Build
npm install
npm run buildLink for local development
# In this repo
npm link
# In your app
npm link @nostr-dm/messagingWatch mode
npm run dev # Rebuilds on changesStatus
- ✅ Core library (pure functions, types, constants)
- ✅ Storage (IndexedDB utilities)
- ⏳ React context (needs extraction from Silent)
- ⏳ UI components (needs extraction from Silent)
License
MIT