Claude b1c7e94fee Add LLM chat proof of concept using generic chat components
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.
2026-01-16 09:21:58 +00:00
2025-12-22 20:40:16 +00:00
2025-12-20 14:25:40 +01:00
2026-01-14 19:24:37 +01:00

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+K to 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

Description
No description provided
Readme MIT 14 MiB
Languages
TypeScript 98.9%
CSS 0.8%
JavaScript 0.3%