mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 16:07:15 +02:00
b1c7e94feeebe2a240924278e4e031bb249fb53e
Demonstrates how the generic chat components work for a completely different chat paradigm: AI/LLM conversations with streaming responses. New features: - LLM message types and provider adapter interface - Mock provider with simulated streaming responses - LLMChatViewer component using ChatWindow/MessageList/MessageComposer - Token counting and cost tracking - Model selection in header - Streaming message support with real-time updates Key differences from Nostr chat: - 1-on-1 conversation (user ↔ assistant) vs multi-user - Request-response pattern vs real-time events - Token-by-token streaming vs instant messages - Provider adapters (OpenAI, Anthropic) vs protocol adapters (NIP-29, NIP-53) - Cost/token metadata vs Nostr event signatures Usage: Type "llm" in command palette Files added: - src/lib/llm/types.ts - LLM-specific type definitions - src/lib/llm/providers/mock-provider.ts - Demo provider with streaming - src/components/LLMChatViewer.tsx - AI chat UI - PROOF_OF_CONCEPT_LLM_CHAT.md - Detailed comparison and documentation This proves the generic chat abstraction is truly protocol-agnostic and can be used for any chat-like interface, not just Nostr.
…
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%