mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 07:56:50 +02:00
6d3f45d4aec6821392bbdd77e37672c86e1f2958
Implements automatic payment completion detection for zap QR codes using the optional LNURL verify endpoint when available. Changes: - Add verify URL field to LnUrlCallbackResponse type - Add LnUrlVerifyResponse type for verify endpoint responses - Add verifyPayment() function to poll verify endpoint - Store verify URL when generating invoice in ZapWindow - Poll verify endpoint every 30 seconds when QR dialog is open - Auto-close QR dialog and show success toast when payment detected - Add UI feedback showing "Checking for payment..." status - Silently ignore verification errors to allow retry on next interval The polling activates automatically when: 1. LNURL provider includes a verify URL in the callback response 2. QR code dialog is open 3. Payment hasn't been completed yet Users see a subtle status message showing when payment verification is actively checking vs waiting for next check interval.
…
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%