# Repository Briefing: Pasta-Devs/Marinara-Engine
> Source: https://repoforai.com/repo/Pasta-Devs/Marinara-Engine (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Pasta-Devs/Marinara-Engine
- **Official Docs / Website**: https://spicymarinara.github.io/
- **Category**: Chat UI & AI Apps (聊天界面与 AI 应用)
- **Primary Language**: TypeScript
- **License**: AGPL-3.0
- **Engineering Health**: A (86/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 11/20)
- **Latest Release**: v2.5.3 (2026-11-28) — https://github.com/Pasta-Devs/Marinara-Engine/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, Local AI
- **Momentum**: 808 ★ total (+1 24h / +11 7d) · 224 forks
- **Topics**: `ai`, `ai-agents`, `ai-agents-framework`, `frontend`, `local`
- **When to Use**: Best for: Individuals and trusted small groups who want persistent characters across chat, visual roleplay, and AI-run games, with a choice of local or hosted models. Skip if: You only need a lean model chat client, want a turnkey offline install without provisioning backends, or require a public multi-tenant service with independently verified isolation.

## Overview
```text
### Architecture & Core Mechanics
Marinara Engine is a self-hosted TypeScript web app in a pnpm workspace. The root scripts expose separate client and server development targets and client, server, and shared build targets. Conversations and files use local, file-native storage. Model inference is a separate concern: a chat can select its own provider and model, while a downloadable local model handles helper tasks such as tracker updates, lorebook search, and call transcription.

A fresh install includes no optional agents. Users install agents from a separate first-party catalog and enable them per chat, so prose editing, world-state tracking, and scene illustration are opt-in. Personal Extensions are a separate mechanism: execution requires approval of the exact reviewed SHA-256 fingerprint, and executable changes invalidate that approval. Restricted browser or OS sandboxes are available, but the separately disclosed Full page access mode is unsandboxed.

### Key Capabilities & Differentiators
Conversation offers Discord-style DMs, Roleplay adds sprites, backgrounds, and a Visual Novel display, and Game provides an AI Game Master with a party, maps, quests, and combat. Characters can share memory across modes. Chats support branching and alternate replies, and the app can import from SillyTavern. Prompt presets support drag-and-drop ordering; lorebooks use keyword triggers, and Active Context shows which lore a chat is using.

Chat connections cover OpenAI, Anthropic, Gemini, OpenRouter, and OpenAI-compatible endpoints such as Ollama, LM Studio, and KoboldCpp. Switching models from the composer changes only the current chat. An optional decision model can gate agents, lorebook entries, or prompt sections. Media connections are separate: ComfyUI is a local option for images and video, and PocketTTS is one of the speech options. API keys are encrypted at rest with AES-256; local storage does not prevent configured hosted providers from receiving the requests sent to them.

### Trade-offs & Limitations
Compared with staying in an established SillyTavern setup, Marinara's clearest reason to switch is the combination of three distinct session modes, shared character memory, and game-state tools. Import support reduces migration friction but does not establish feature parity for presets, cards, or extensions. Start with one representative chat and a small set of agents before moving a whole library, especially while the project is in beta and breaking changes are possible.

Self-hosting the app controls where chats are stored, not where inference runs. Hosted services reduce on-device compute needs but introduce provider costs and data-handling considerations; local inference shifts the load to your hardware. Extra agents and media generation can add model calls per turn, so test the actual configuration rather than sizing from the base app alone. Private multiplayer requires two explicit opt-ins and a trusted client for each participant. AGPL-3.0 also matters if you modify the service and make it available over a network.

### Hardware & Deployment Guide
For the container path, use the Docker or Podman installation guide. The Compose file pulls ghcr.io/pasta-devs/marinara-engine:latest, maps 127.0.0.1:${PORT:-7860} to container port 7860, and mounts the marinara-data volume at /app/data, with file storage under /app/data/storage. Back up that volume before upgrading. Before exposing the service beyond localhost, configure authentication and review the trusted host, CORS, and CSRF origin settings.

Source installation requires Node.js >=24 <27 and pnpm 10.33.2 or >=10.34.5. Releases include a Windows installer, and iOS/iPadOS access is via PWA. The v2.5.3 Android APK is a Termux bootstrap and WebView shell, not a native Android server: Marinara runs through Termux, and initial setup still requires Android permission prompts. For offline use, provision model artifacts and any necessary agents in advance and make sure every enabled inference or media backend is local.
```

## Key Capabilities
```text
- Runtime: TypeScript pnpm workspace with separate client, server, and shared build targets
- Session design: Conversation, Roleplay, and Game modes can share character memory; chats support branches and alternate replies
- Model routing: Per-chat selection across hosted providers and OpenAI-compatible endpoints, with a separate local helper model
- Prompt inspection: Drag-and-drop presets, keyword-triggered lorebooks, and an Active Context view for inspecting active lore
- Extensibility: Optional per-chat agents; personal extension approval is tied to the reviewed SHA-256 fingerprint
- Data operations: Compose persists app data under /app/data; chat exports include JSONL, plain text, Markdown, and styled HTML
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/Pasta-Devs/Marinara-Engine.git
cd Marinara-Engine
```
