mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
7d12b960e3ad77be4da09d709b70521d205de78f
Implements browser-based AI chat functionality: - WebLLM provider for local inference via WebGPU - Downloads and caches models in IndexedDB - Runs inference in web worker to keep UI responsive - Curated list of recommended models (SmolLM2, Llama 3.2, Phi 3.5, etc.) - PPQ.ai provider for cloud-based inference - OpenAI-compatible API with Lightning payments - Dynamic model list fetching with caching - Provider manager for coordinating multiple providers - Dexie tables for persisting provider instances and conversations - Model list caching with 1-hour TTL - AIViewer component with sidebar pattern - Conversation history in resizable sidebar (mobile: sheet) - Model selector for WebLLM with download progress - Streaming chat responses - Auto-generated conversation titles - New `ai` command to launch the interface 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%