mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 07:56:50 +02:00
5260359385ea34239cc95ad03f24aabecd7aa2ce
Add full support for NIP-28 public channels with chat functionality, client-side moderation, and rich event rendering. **Features:** - NIP-28 adapter with identifier parsing (note1/nevent1) - Channel resolution (kind 40 creation + kind 41 metadata) - Message loading and sending (kind 42 with NIP-10 threading) - Client-side hide (kind 43) and mute (kind 44) actions - Rich renderers for all NIP-28 event kinds (40-44) - Auto-detect protocol in chat parser - Relay hints from channel metadata **Changes:** - Created `src/lib/chat/adapters/nip-28-adapter.ts` - Created channel renderers (ChannelMetadata, ChannelMessage, ChannelHide, ChannelMute) - Registered renderers for kinds 40-44 in renderer registry - Updated chat parser to support note1/nevent1 identifiers - Updated ChatViewer to instantiate NIP-28 adapter - Updated CLAUDE.md documentation - Added tests for NIP-28 parsing **Usage:** ```bash chat note1abc... # Join channel by creation event chat nevent1... # Join with relay hints ``` All tests pass (840/840).
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%