Stars
Forks
Watchers
Developer links
Serene Pub
Part writing room, part tabletop, Serene Pub is a chat app for AI roleplay and creative writing where characters remember what happened and act only on what they have actually seen. Lorebooks+ hold world lore, character lore private to one character, and a dated history timeline, while semantic retrieval and summarization keep long chats from drifting. A narrative graph tracks who is connected to whom and marks each relationship secret, acknowledged, or public, so a one-sided crush stays one-sided. Group chats take drag-to-reorder turns, an on-demand narrator voices the weather or a shopkeeper, and branching forks the whole story at any message. Playing with friends? Turn on user accounts, a permanent switch that adds a login screen, then invite them into a chat as guests with their own personas and characters, synced live over WebSockets. Connections cover OpenAI, Anthropic, Ollama, LM Studio, KoboldCPP, llama.cpp, and llmman, and the chat, narrator, and summarizer can each run on a different model. A seven-step Setup Wizard takes a blank server to a first chat, and built-in KoboldCPP and Ollama managers download and load models in-app. Cards from SillyTavern import directly, even a whole data directory with its chat history. The server listens on port 3000 with live updates on the same port, so a reverse proxy needs one upstream that forwards WebSockets. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. AGPL-3.0 licensed.
Benefits
- Stories that stay coherent
- Lorebooks+, scenes, summarization, and semantic retrieval keep world facts, history, and past messages in reach, so long stories stop drifting and characters stop forgetting events from earlier chapters.
- Characters who know only what they've seen
- Relationships are marked secret, acknowledged, or public, and each character replies from their own vantage point, so private information stays private even inside a crowded group scene.
- Share one server with friends
- User accounts keep every account's characters, personas, chats, and lorebooks private, while guests invited into a chat bring their own cast and see every message sync live.
- Bring any model, local or hosted
- Connect OpenAI, Anthropic, Ollama, LM Studio, KoboldCPP, or llama.cpp, and route chat, narrator, summarization, and graph tasks to different models to balance speed against quality.
Features
- Lorebooks+ and Summaries
- World lore, character lore, and a dated history timeline are bindable to your cast, with scenes and on-demand summarization saving long chats as permanent, editable lorebook content.
- Narrative Graph
- Builds a relationship graph from scenes and history, extends it as the story grows, and cites a source for every relationship before anything saves.
- Semantic Long-Term Memory
- Retrieval-augmented memory finds lore, history, and past messages by meaning, scoped per character, with on-device embedding models or any OpenAI-compatible embeddings API.
- Group Chat and Branching
- Many characters reply in drag-to-reorder round-robin order with Full, Minimal, or Hidden visibility each, plus an on-demand narrator and chat branching from any message.
- Context Config Builder
- Arrange the prompt as drag-and-drop cards with a live preview, keep the raw Handlebars template, and inspect the compiled prompt and retrieval diagnostics behind any reply.
- Docker and Web Deployment
- Runs as one Node server on port 3000 with Socket.IO on the same port, a multi-arch Docker image, a persistent data volume, and PUBLIC_URL and TRUSTED_PROXIES for reverse proxies.