mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-15 18:07:21 +02:00
01cdaedc8ae91c288d23367604f2486a13f12948
Replace manual event building with applesauce blueprints in all chat adapters. Changes: - NIP-29: Use GroupMessageBlueprint for kind 9 messages * Auto-handles h-tag, hashtags, mentions, emojis * Manually add q-tag for replies (NIP-29 specific) * ~15 lines removed - All adapters (NIP-10, NIP-29, NIP-53, NIP-C7): Use ReactionBlueprint for kind 7 reactions * Auto-handles e-tag, k-tag, p-tag, custom emoji support * Protocol-specific tags (h-tag, a-tag) added manually * ~60 lines removed across 4 adapters Benefits: - ~75 lines of code removed total - Leverage battle-tested applesauce blueprints - Automatic hashtag, mention, and quote extraction - Cleaner, more maintainable code All tests pass (980/980).
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%