mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-06-06 02:31:13 +02:00
claude/gift-wrap-private-events-Yd0I2
Add NIP-17 adapter to enable encrypted private direct messages using gift wrap protocol (NIP-59). This completes the gift wrap infrastructure by adding the user-facing chat interface for private DMs. Key features: - Parse npub/nprofile/hex pubkey identifiers for DM conversations - Load decrypted messages using WrappedMessagesModel from applesauce - Send messages using SendWrappedMessage action (auto-fetches inbox relays) - Filter messages by conversation partner from all decrypted rumors - Support for NIP-30 custom emojis Technical details: - Adapter prioritized in chat-parser for pubkey identifiers - Uses kind 10050 (DM relay list) via SendWrappedMessage action - Gift wrap manager handles sync, decryption handled by applesauce - Reply tags and blob attachments support marked as TODO (requires lower-level API) Usage: chat npub1... # Open DM with user by npub chat nprofile1... # Open DM with user by nprofile chat abc123... # Open DM with user by hex pubkey Related: #inbox command already implemented for managing gift wraps
Grimoire
A Nostr protocol explorer and developer tool with a tiling window manager interface.
Features
- Tiling Windows - Each window is a Nostr "app" (profile viewer, event feed, NIP docs, etc.)
- Command Palette - Unix-style commands via
Cmd+Kto open apps and navigate - Multi-workspace - Virtual desktops with independent layouts
- Real-time - Reactive event subscriptions with automatic updates
Stack
React 19, TypeScript, Vite, TailwindCSS, Jotai, Dexie, Applesauce
Getting Started
npm install
npm run dev
Scripts
| Command | Description |
|---|---|
npm run dev |
Start dev server |
npm run build |
Build for production |
npm test |
Run tests in watch mode |
npm run lint |
Lint code |
npm run format |
Format code |
License
MIT
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%