BerryUIKI/CatCup-Tavern
Local-first roleplay on Fastify, with SillyTavern files on web, LAN and Windows
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
CatCup Tavern is a TypeScript workspace with a React SPA and one Fastify backend for browser, LAN and desktop use. Fastify owns password authentication, persistence, lorebook selection, prompt assembly, token budgeting and provider calls. The browser renders an SSE stream rather than implementing its own prompt pipeline. The Rust/Tauri desktop shell bundles the built web assets and a Node sidecar, then starts the same backend as a child process.
The persistence layer uses ordinary files: data/characters/ holds cards, data/chats/<character>/ holds JSONL conversations, and data/worlds/ and data/presets/ hold JSON configuration. This makes copying and inspecting a library straightforward, but distinguish portable content from server state: secrets.json holds API keys and auth.json holds the password hash and session secret. Interoperability is at the file-format level; SillyTavern extensions and getContext are not supported.
Key Capabilities & Differentiators
Single-character chat supports streamed replies with separate reasoning display, regeneration, continuation, alternate greetings, editable messages and branches. Stopping generation preserves the partial reply. Group rooms support multiple characters and configurable reply order, but only one member replies per turn. Character cards support PNG V2/V3, JSON and CharX; chats preserve swipes and branches in JSONL. The app can use a local LLM backend or a remote provider through an OpenAI-compatible API. Importing an OpenAI prompt preset does not bring over every provider setting: the supported sampling controls are temperature, top p, max tokens and context size.
The lorebook pipeline covers primary and secondary keys, selective logic, recursion, inclusion groups, sticky/cooldown/delay effects, injection positions and a token budget. Its context inspector exposes which entries were considered and why they fired, making it possible to distinguish an activation problem from a prompt assembly problem. All four live regex placements are supported. Long chats are trimmed to fit the token budget; an editable rolling summary is the long-term memory mechanism, with no vector retrieval.
Trade-offs & Limitations
CatCup is a plausible SillyTavern replacement for a library centered on cards, chats, lorebooks and prompt presets, not for a setup built around extensions and scripting. Typed slash commands go to the model as plain text; Quick Reply v2 runs seven commands but lacks auto-execution and context menus. Group chat has neither append modes nor automatic turns. There is no attachment upload, image input or vector memory. LAN mode gives one user access from several devices via a shared password; it is not a multi-user collaboration server.
Migration is easy to inspect but not a lossless transfer of the whole setup. The in-app importer skips groups and Quick Reply sets, imported lorebooks start disabled, and importing the same directory again creates suffixed copies rather than updating entries. SillyTavern 1.19 presets stored inside settings need to be imported individually. Test a copy of your library before switching, and check the AGPL-3.0 obligations before distributing a build or exposing a modified version as a hosted service.
Hardware & Deployment Guide
Web or LAN deployment requires Node.js 22.13+ and pnpm 11. Run pnpm install and pnpm dev for development (Fastify on :8000, web on :5173), or pnpm build && pnpm start to serve the built SPA from Fastify. Set CATCUP_HOST=0.0.0.0 for LAN access and CATCUP_DATA_DIR to relocate storage. First-run password setup is local by default. There is no built-in TLS, so use a reverse proxy or VPN beyond a trusted network. Local storage does not imply offline inference: offline use requires a reachable local model backend; a remote provider receives the assembled prompt.
The listed v0.6.3 release is early access and supports single-character and group roleplay end to end, within the group-turn limits above. Windows is the only released desktop target. Its per-user installer bundles Node and defaults to %APPDATA%\dev.catcup.tavern; the installer lacks Authenticode signing and can trigger SmartScreen, which is separate from the signed update artifacts. macOS and Linux shell compilation in CI does not establish desktop runtime support.
A solo roleplayer who wants to reuse a SillyTavern library, inspect lorebook activation and access one file-backed setup from Windows or a browser on a trusted LAN.
Your workflow needs STscript, SillyTavern extensions, automatic group turns, image input, vector memory, separate user accounts or a released macOS or Linux desktop build.
Quick Start & Installation
pnpm install pnpm dev # server :8000, web :5173
Comparison vs. Top Chat UI & AI Apps Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| CatCup-Tavern ★ | 82 | +36 | TypeScript | AGPL-3.0 | Local-first roleplay on Fastify, with SillyTavern files on web, LAN and Windows |
| NextChat | 89k | +28 | TypeScript | MIT | Self-host a Next.js chat client for cloud and private model APIs |
| open-design | 110.9k | +1k | TypeScript | Apache-2.0 | Local-first design workspace that turns coding-agent output into reviewable prot |
| locally-uncensored | 4.9k | +126 | TypeScript | AGPL-3.0 | Tauri desktop studio for local AI chat, coding, and ComfyUI media generation |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/BerryUIKI/CatCup-Tavern.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about CatCup-Tavern
What runs in the browser, and what does the Windows app bundle?
Do I need a GPU, and how much RAM or VRAM should I budget?
Can I self-host it commercially or ship a modified build?
Should I switch from SillyTavern or keep it?
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