mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
15d353e6e60afa20c2380541183f5fb26610da8e
Per-message cost display: - Add model, usage, cost fields to AssistantMessage (local-only, not sent to API) - Store cost/model/usage when saving assistant messages in session-manager - Display subtle cost footer on assistant messages: "gpt-4o-mini • 847 tokens • $0.0012" - Clean model names by removing provider prefixes and date suffixes Session cost display: - Calculate total conversation cost from messages - Show "Session: $0.0234" above input area when cost > 0 - Updates automatically as messages are added Cost formatting: - Show 4 decimal places for costs < $0.01 - Show 2 decimal places for costs >= $0.01 - Show "<$0.0001" for very small costs https://claude.ai/code/session_01HqtD9R33oqfB14Gu1V5wHC
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%