5235aa-web/Pebble_companionchat
Local-first AI roleplay with a Tauri desktop shell and FastAPI backend
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Pebble separates the Vue 3, Pinia, and Vite UI in frontendV2 from a Python service at backend.main:app. FastAPI runs under Uvicorn, WebSockets provide an RPC channel, and SQLite persists conversations, character cards, and extracted memories locally. The Python service can be packaged with PyInstaller, while Tauri 2 provides the desktop shell for the same frontend used in the browser.
Integrations are primarily service connections: httpx handles outbound HTTP, and remote chat requests use bearer authentication against OpenAI-compatible /chat/completions. Text handling is model-aware: tiktoken covers OpenAI vocabularies, while Hugging Face tokenizers can read a tokenizer.json supplied alongside a local model. Voice follows a separate ASR → LLM → TTS cascade, so choosing a chat model does not lock the user into one speech engine.
Key Capabilities & Differentiators
Character chat supports streaming replies, alternate response swipes, separate branches, and manual token-aware context compaction. Pebble imports SillyTavern PNG and JSON cards, CHARX, and RisuAI .risum packages, and can import SillyTavern JSONL into new branches. Group rooms support up to three companions, with @ speaker cues, multi-turn Relay, and room-scoped memories. Script Mode adds per-scene turn budgets, rewind, and retained summary cards.
Local model options include Ollama, LM Studio, and llama.cpp with GGUF and mmproj for vision. The streaming voice pipeline offers Silero VAD barge-in and supports audio.cpp engines, including Qwen3-ASR for recognition and OmniVoice for synthesis. Picture Studio accepts custom ComfyUI workflow JSON and also supports hosted image services. Images, documents, and sampled video frames can be attached to chats; video speech transcription is opt-in.
Trade-offs & Limitations
Pebble is a strong fit when a move from SillyTavern is driven by integrated voice calls, group staging, or picture generation. Card and JSONL support lowers the migration cost, but it does not establish compatibility with extensions or custom workflows. SQLite and BM25 avoid running a separate database service, vector store, or embedding model. The retrieval trade-off is lexical matching: paraphrased memories may be harder to recover than with semantic search.
Local storage and local inference are separate choices. Remote chat, speech, or image providers can reduce workstation load, but requests to them may carry conversation content or media and incur usage charges. Local inference avoids sending those requests to a provider, but capacity depends on the chosen weights, context size, and concurrent speech or image tasks. The OpenAI-compatible chat interface reduces integration work at the cost of excluding native-only provider APIs unless a compatible gateway is available.
Hardware & Deployment Guide
The Windows installer needs no separate Python or Node.js installation. It bundles audio.cpp but not llama-server.exe: to have Pebble launch a GGUF model directly, install a suitable llama.cpp build and configure its path in Backstage. Source web runs require Python 3.10+, Node.js 18+, and npm. The manual development setup runs Uvicorn on port 8002 and Vite on 5176; bind the backend to loopback for local-only use rather than copying the 0.0.0.0 example. Building a Tauri installer requires Rust. Optional See-through portrait decomposition has its own PyTorch environment and model weights.
Writable state defaults to ~/.pebblecompanion, including companions.db, uploads, configuration, and voice clips. PEBBLE_DATA_ROOT and PEBBLE_MODELS_ROOT let operators separate writable state from model storage. For offline use, configure local engines and obtain their runtime files and weights in advance. Release v1.0.6 improves FFmpeg duration probing and timeout recovery, adds timestamped storyboard grids and 10-minute transcription chunks, and cleans up attachment files once they are no longer referenced.
/chat/completions.@ speaker cues, multi-turn Relay, room-scoped memories, and a separate narration mode.Character-chat users who want local conversation history, portable cards and branches, and integrated group scenes, voice, and image generation with a choice of local or hosted engines.
Your workflow depends on specific SillyTavern extensions, native-only provider APIs without a gateway, or a managed multi-user service rather than a locally operated workspace.
Quick Start & Installation
# Core backend dependencies pip install -r requirements.txt # Frontend dependencies cd frontendV2 npm install
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| Pebble_companionchat ★ | 105 | +1 | Python | Apache-2.0 | Local-first AI roleplay with a Tauri desktop shell and FastAPI backend |
| unsloth | 80.7k | +380 | Python | Apache-2.0 | Local AI workspace for model chat, fine-tuning, and API serving |
| khoj | 38.3k | +77 | Python | AGPL-3.0 | Self-hosted AI workspace for searchable documents, web research, and scheduled a |
| ODS | 8k | +88 | Python | Apache-2.0 | A Docker Compose stack for private AI chat and inference on your own hardware |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/5235aa-web/Pebble_companionchat.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about Pebble_companionchat
How do I connect a local model or an existing provider gateway?
/chat/completions. For a remote provider, configure the API key and a compatible base URL. Anthropic and Gemini need a gateway or proxy if the URL you use does not expose that protocol.Do I need a GPU, and how much VRAM should I budget?
Can I use or redistribute Pebble commercially while keeping data local?
Can Pebble replace my current SillyTavern setup?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy