MuMuAINovel: an AI novel writer whose weights live outside the repo
An AI-powered intelligent novel writing assistant that helps you easily create compelling stories.
At a glance
- What is it?
- A Python and PostgreSQL app for long-form AI fiction, deployed with Docker Compose and shipped as a prebuilt image. What the docs reveal is a two-path split: the application is fully open, the embedding model is not, and the database defaults are loose.
- Who is it for?
- MuMuAINovel fits writers who already have an OpenAI, Gemini, or Claude key and want a self-hosted workbench with chapter structure, foreshadowing tracking, and a prompt library. Use the published image rather than a source build, because the embedding weights live outside the repository, and change the database password before your first start, because the compose file defaults it to 123456 and publishes port 5432.
- Can I use it commercially?
- Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
- Is it still maintained?
- Yes. The repository last received commits 11 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- xiamuceer-j/MuMuAINovel3,352 ★ · +261
| Repository | 2026-09-28 | 2026-11-24 |
|---|---|---|
| xiamuceer-j/MuMuAINovel | 3.1k | 3.4k |
261 Stars in the last 57 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Three install paths, and a fourth script nobody mentions
Three install paths are documented, and each one ends at the same address, http://localhost:8000. The recommended route is Docker Compose from a clone, running docker-compose up -d once the environment file is in place. The second skips the build entirely and pulls a published image, docker pull mumujie/mumuainovel:latest, which the docs describe as already containing the model files, aimed at people who have never built an image before. The third is local development from source, split into a Python backend served by uvicorn and a Node frontend built with npm, and it carries one prerequisite the other two avoid. Prerequirements for the first two are short: Docker with Docker Compose, plus at least one AI service API key for OpenAI, Gemini, or Claude. A fourth path sits in the repository root without appearing in any install section: a script named install-termux.sh. Windows has no first-class install either, since the one-click EXE appears in the README as a sponsor perk rather than as a download.
Bootstrap fails quietly if .env is missing
Two files decide whether the first start works, and both are called out as requirements rather than left to inference. The first is the environment file: the compose stack mounts .env into the container automatically, so the copy has to exist before the first up, and the command given is cp backend/.env.example .env followed by filling in the API key and the database password. The second is database initialisation. backend/scripts/init_postgres.sql is mounted into the container entrypoint directory and runs automatically on first start, installing the PostgreSQL extensions the application needs. Because it only runs against an empty data directory, the trigger for that script is a fresh volume rather than a fresh container. The required keys are few: DATABASE_URL using the asyncpg driver, POSTGRES_PASSWORD, OPENAI_API_KEY, OPENAI_BASE_URL, DEFAULT_AI_PROVIDER, DEFAULT_MODEL, and the three LOCAL_AUTH settings. Everything else in the example environment is optional and commented.
The compose file publishes Postgres with password 123456
The database is reachable from outside by default, and the credentials that protect it are a guessable pair. Postgres 18 on Alpine is named mumuainovel-postgres, and both the user and the password fall back when the environment does not supply them, with mumuai as the user and 123456 as the password. The port is published on 5432 of the host, so the instance is not confined to the compose network, and the init arguments pin the encoding to UTF8 with locale C and the timezone to Asia/Shanghai. A restart policy of unless-stopped survives reboots, and a healthcheck runs pg_isready every 10 seconds with a 5 second timeout, 5 retries, and a 10 second start period.
environment:
POSTGRES_DB: ${POSTGRES_DB:-mumuai_novel}
POSTGRES_USER: ${POSTGRES_USER:-mumuai}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-123456}
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C"
TZ: ${TZ:-Asia/Shanghai}
ports:
- "${POSTGRES_PORT:-5432}:5432"
restart: unless-stoppedSet the password before the first start rather than after, since initialisation only applies to an empty data directory and the shipped default is short. The named volume is mounted at /var/lib/postgresql, the parent of the data directory rather than one child of it, which keeps the data captured even if the image places it in a version-specific subdirectory.
Twelve Postgres knobs behind environment overrides
Twelve Postgres settings are passed on the command line instead of being left to defaults, and every one of them sits behind an environment variable with a fallback. The connection ceiling is max_connections at 200. The buffers are shared_buffers at 256MB and effective_cache_size at 1GB, with maintenance_work_mem at 64MB against a checkpoint_completion_target of 0.9 and wal_buffers of 16MB. The planner is tuned too, with default_statistics_target at 100, random_page_cost lowered to 1.1 for solid-state storage, effective_io_concurrency raised to 200, and work_mem at 4MB. Write-ahead logs get min_wal_size of 1GB and max_wal_size of 4GB. On the application side, DATABASE_POOL_SIZE is set to 30 with DATABASE_MAX_OVERFLOW at 20, so one process reaches 50 connections before the server ceiling matters. Those memory figures line up with the 8 GB production row in the hardware tables rather than the 2 GB personal minimum, which is the number to override first on a small machine.
The build deletes the lockfile and patches vite
The frontend stage rewrites the project before compiling it. It starts from Node 22 on Alpine, deletes package-lock.json on purpose with a comment blaming 404 errors caused by an inconsistent mirror, and falls back to npm install, so no lockfile survives into the image and dependency versions float. It then patches vite.config.ts with sed so that outDir points at dist rather than ../backend/static, because inside the image there is no sibling backend directory to write into. The second stage is Python 3.12 on slim, where the same mirror switch rewrites the Debian and security hosts to an Aliyun mirror in the sources file, apt-get installs gcc, curl, postgresql-client, and netcat-traditional, and pip installs from requirements.txt while deliberately leaving out PyTorch and Transformers in favour of an ONNX runtime.
# 删除 package-lock.json 以避免因镜像源不一致导致的 404 错误
RUN rm -f package-lock.json
# 安装依赖
RUN npm installThe build declares support for linux/amd64 and linux/arm64, and the single build argument USE_CN_MIRROR switches the npm registry, the Debian hosts, and the pip index together.
Source and image fetch the embedding model from different places
A source build and an image pull get the same embedding model in two different layouts, from two different origins. The source path expects the file under backend/embedding/models--sentence-transformers--paraphrase-multilingual-MiniLM-L12-v2/, around 400 MB, and the docs state that it cannot be fetched from the repository: the download link comes from the project QQ group or the Linux DO discussion. The image path does that work for you. The Dockerfile pins EMBEDDING_MODEL_REVISION to a specific commit hash, downloads the already converted ONNX deployment files from ModelScope, places them at ONNX_EMBEDDING_MODEL_DIR, which is a different path, /app/embedding/onnx/paraphrase-multilingual-MiniLM-L12-v2, and verifies the release manifest. That split is the practical reason to prefer the published image, since the weights sit outside version control either way. It also explains the hardware story: generation happens at the external API, so no local GPU is needed, and the embedding model is the only local one, loaded into memory at runtime.
Two defaults decide whether login works at all
One default decides whether you stay logged in, and one decides whether your editor can reach a private model host. SESSION_COOKIE_SECURE ships true, which is right for HTTPS because the browser then sends the login cookie only over HTTPS. On plain HTTP, which is what the Docker walkthrough gives you at localhost:8000, a browser that declines to store the cookie leaves you logged out, and the documented fix is to set it to false. The second default is a security switch left off: ALLOW_PRIVATE_AI_ENDPOINTS is commented out in the example environment, and the comment says enabling it turns off the SSRF protection. Once enabled, ALLOWED_AI_HOSTS is where you name the exceptions, with host.docker.internal and 127.0.0.1 given as the examples, which matters inside Docker where the container's localhost is not the host. Login itself is either LinuxDO OAuth, needing a client id, a secret, a redirect URI of http://localhost:8000/api/auth/callback, and an optional proxy that affects only the token and user info requests, or a local account, which is a username and a password.
The finished list says more than the feature summary
The completed feature list is the better guide to what the application does than the summary above it. Alongside outline, character, and worldbuilding generation, the finished items include a chapter relation graph, a chain-of-thought view, foreshadowing tracking that warns about unrecovered clues and draws a timeline, one-click rewrite driven by that analysis, a prompt workshop for sharing templates, project import and export, separate import and export for character and organisation cards, a custom writing style, a visible prompt editor, and a per-chapter word limit. Two entries are unusual: a profession and level system where you define the tiers yourself, and a book-deconstruction feature the README frames as giving a book's readers a proper ending. On upkeep, the repository is not archived, the last push is dated 2026-09-18, and tags v1.5.6 on 2026-09-16, v1.5.5 on 2026-08-31, and v1.5.4 on 2026-07-28 arrived at intervals of two to four weeks. The published hardware rows assume the external API path: 2 cores and 2 GB for one person, 4 cores and 8 GB for a small team, 8 cores and 16 GB for 80 to 150 users.
Editorial conclusion
MuMuAINovel fits writers who already have an OpenAI, Gemini, or Claude key and want a self-hosted workbench with chapter structure, foreshadowing tracking, and a prompt library. Use the published image rather than a source build, because the embedding weights live outside the repository, and change the database password before your first start, because the compose file defaults it to 123456 and publishes port 5432. If you need a GUI on Windows without Docker, the documented route is sponsorship rather than a release.
Frequently asked questions
What does MuMuAINovel need before it will start?
Docker with Docker Compose, and at least one AI service API key for OpenAI, Gemini, or Claude. You also need .env copied from backend/.env.example and backend/scripts/init_postgres.sql present before docker-compose up -d, and the app is then reached at http://localhost:8000.
Do I need a GPU to run MuMuAINovel?
No. The hardware notes say the project depends mainly on external AI APIs and needs no local GPU. The only local model is the embedding model, which takes about 400 MB on disk and is loaded into memory at runtime.
Why does MuMuAINovel log me out on HTTP?
SESSION_COOKIE_SECURE defaults to true, so the browser only sends the login cookie over HTTPS. The docs say to set it to false when you access the app over HTTP and the browser does not keep the cookie.
How do I let MuMuAINovel call a model on my own network?
Set ALLOW_PRIVATE_AI_ENDPOINTS to true, which the example leaves commented out because enabling it turns off the SSRF protection, and list the permitted hosts in ALLOWED_AI_HOSTS, for example host.docker.internal and 127.0.0.1. OPENAI_BASE_URL then points at the endpoint you want to use.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/xiamuceer-j-mumuainovel)Star history chart for your README
[](https://hysenlabs.com/projects/xiamuceer-j-mumuainovel)Was this useful?