mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-15 09:57:23 +02:00
176f1ff79753c34734964f163dbd4404931faeed
The applesauce-wallet-connect library's genericCall method waits for encryption$ (derived from support$) without any timeout. If the wallet service doesn't send kind 13194 (wallet info) events quickly, all wallet operations hang forever. Changes: - Add waitForSupport() function with 15s timeout to prime support$ - Add ensureWalletReady() export that must be called before operations - Reorder restoreWallet() to set up notifications FIRST (keeps events$ alive), then wait for support info - Update all wallet methods in useWallet hook to call ensureWalletReady() before operations, ensuring proper timeout handling - Update reconnect() to properly reset and retry support info This ensures wallet operations fail fast with a clear error message instead of hanging indefinitely. https://claude.ai/code/session_018fU3rYmjFPEKz3ot1itLZL
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%