Skip to content
CAI
Software that uses CAICheck a score

harry0703/MoneyPrinterTurbo

54.0

Adequate · 14 November 2026

39.5k

lines of production code

Python

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

Add static landing page for MoneyPrinterTurbo

A new static HTML landing page has been added to the public resources, displaying the application title and a brief description of its functionality in both Chinese and English, along with a link to the project's GitHub repository.

resource · high confidence

Initial API controller structure with secure key validation

The application introduces a base controller module that enforces API key authentication via the 'x-api-key' header when configured, ensuring secure constant-time comparison and sanitizing client request IDs to prevent log injection. A new health check endpoint is also added at '/ping' to verify service availability.

app/controllers · high confidence

Introduce Docker containerization and standardized repository configuration

The project now supports running as a Docker container, providing a \Dockerfile\ for standard CPU-based execution, a \Dockerfile.gpu\ for NVIDIA CUDA acceleration, and a \Dockerfile.claude\ variant that includes the Claude Code CLI. The containerized WebUI is exposed on port 8501 with CORS enabled and usage statistics disabled. To support this and improve repository hygiene, the diff adds \.dockerignore\ to exclude local development artifacts, \.gitattributes\ to normalize line endings and mark media files as binary, and a \.python-version\ file to pin the runtime to Python 3.11.

(repo-wide) · high confidence

Introduce dedicated background music and video material services

The app/services area now includes dedicated modules for background music (bgm.py, elevenlabs\_music.py) and video material sourcing (material.py, material\_cache.py, material\_upload.py). These services enforce strict security and format validation for uploaded audio files, manage video cache lifecycle and cleanup, and integrate with external providers like ElevenLabs Music and Infistar Video. The changes also add robust error handling, timeout controls, and resource limits for external API interactions, ensuring that background music and material downloads are processed safely and reliably.

app/services · high confidence

Introduce v1 API endpoints for video generation, LLM scripts, and social metadata

The application now exposes a new v1 REST API under /api/v1. This includes endpoints for generating video scripts, video terms, and social publishing metadata via the LLM service, as well as endpoints for creating video and subtitle tasks, uploading and retrieving video materials, and managing background music. The v1 router enforces API key authentication (when configured) and supports Redis-backed task management for concurrency and queuing.

app/controllers/v1 · high confidence

New security, logging, and utility infrastructure in app/utils

This change introduces several new utility modules to the application. file\_security.py adds a path validation function to prevent directory traversal attacks by ensuring resolved paths remain within allowed directories. logging\_utils.py and request\_logging.py provide enhanced logging capabilities, including runtime log level controls, thread-scoped logging for background tasks, and optional request tracing with automatic redaction of sensitive data like tokens and credentials. subtitle\_reader.py and subtitle\_writer.py implement robust SRT parsing and atomic file publishing, ensuring the last subtitle line is preserved and empty files are not published. utils.py consolidates helper functions for path management, FFmpeg detection with early availability checks, and clip speed normalization.

app/utils · high confidence

Behavioural changes

2 commits (0 fixes) modifying scripts

A change to existing behaviour in scripts — 2 commits, 2 files: “feat(llm): add native ChatGPT OAuth (\#1716)”; “feat(material): add Codex image source (\#1719)” (refs \#1716, \#1719).

scripts · medium confidence · unverified

8 commits (4 fixes) modifying app/services/utils

A change to existing behaviour in app/services/utils — 8 commits (4 fixs), 2 files: “fix(video): keep alpha masks aligned during zoom transitions”; “fix(video): finish slideout within short scene duration”; “fix: make slide transitions visible”; and 5 more (refs \#1698).

app/services/utils · medium confidence · unverified

API key enforcement, CORS hardening, and ping health check

The application now enforces API key authentication for the /api/v1 and /tasks endpoints, issuing a warning if the key is missing to encourage secure deployment. Browser cross-origin access is restricted by default; CORS is only enabled when specific origins are configured via CORS\_ALLOWED\_ORIGINS, with improved origin normalization to prevent silent failures and a warning when wildcard origins are used without API key protection. Additionally, a ping health check router is registered to support service monitoring.

app · high confidence

Introduce structured LLM provider registry and comprehensive video generation schema

The application now uses a centralized registry of LLM provider specifications (in app/models/llm\_provider.py) to manage API keys, base URLs, and regional endpoints, replacing ad-hoc configuration with a structured, extensible model. Concurrently, the video generation parameters (app/models/schema.py) have been expanded to support new user-facing features including configurable video transitions (SlideIn, SlideOut, ZoomIn, ZoomOut), clip fit modes (cover/contain), word-by-word subtitle animations, custom audio file uploads, and background music prompts. Supporting constants for punctuation and task states are also now explicitly defined in app/models/const.py.

app/models · high confidence

Modernized WebUI layout and streamlined Streamlit integration

The WebUI has been redesigned to improve visual clarity and reduce clutter. A new CSS stylesheet hides Streamlit's default platform toolbars (Deploy, skills nudges) and compresses top padding, while the main container now features a compact brand header with the project name and version number. The layout has been refined to keep configuration controls, such as the video subject and voice mode selection, visually aligned and compact, ensuring a cleaner, more focused user experience for generating videos.

webui · high confidence

Non-blocking runtime configuration updates for WebUI

The application now supports updating WebUI configuration settings (such as provider keys or model selections) without blocking ongoing video generation tasks. Previously, changing a setting while a task was running could freeze the interface or interrupt the process. The new implementation uses a deferred update queue: if the configuration lock is held by a long-running task, UI changes are queued and applied immediately after the task completes, ensuring the interface remains responsive and the current task's configuration remains stable.

app/config · high confidence

Fixes

Introduces robust task queue management with concurrency limits and stale-task handling

The application now uses a new task management system (app/controllers/manager) that enforces configurable concurrency and queue limits to prevent resource exhaustion. It includes logic to coerce configuration values into valid integers, ensuring that limits are respected. The system handles stale or unusable queued tasks by validating them against current schemas and function signatures before dispatch; if a task is invalid, it is discarded and marked as failed rather than blocking the queue. Additionally, the Redis-based implementation ensures atomic admission of new tasks to prevent race conditions across multiple API workers and resumes persisted tasks on startup.

app/controllers/manager · high confidence

Test coverage

Initial unit test suite for core services

Added a new test directory containing unit tests for the MoneyPrinterTurbo application. The suite covers API authentication, JSON validation, artifact download MIME types, URI escaping, CORS configuration, static file serving, audio export volume, batch material allocation, and background music handling.

test · high confidence

Dependencies

Migrate dependency management to uv and pyproject.toml

The project has adopted the uv-based environment and dependency management system, consolidating all runtime dependencies into a new pyproject.toml file and locking versions via uv.lock to ensure consistent builds across different machines. This change introduces support for Python 3.13 through the conditional audioop-lts dependency and includes specific library updates such as upgrading moviepy to 2.2.1, openai to 2.24.0, and adding litellm 1.86.2 and google-genai 2.11.0. A legacy requirements.txt is retained solely for backward-compatible pip installation support, while development tooling is now managed via uv with ruff and pytest pinned in the project configuration.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 54 → 54 (+0.3)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

Lenses

  • Code Health 77 → 75 (-1.8)
  • Architecture 86 → 87 (+0.5)
  • Maturity 52 → 54 (+1.8)
  • Readiness 40 → 40 (-0.5)
  • Security 70 → 71 (+1.1)
  • Performance 100 → 100 (+0.0)

Resolved (53)

  • Critical CVE: [GHSA redacted] (uv.lock)
  • Critical CVE: [GHSA redacted] (uv.lock)
  • Critical CVE: [GHSA redacted] (uv.lock)
  • Critical vulnerability: [GHSA redacted] (uv.lock)
  • Duplicated block (10 lines × 2) (app/services/elevenlabs_music.py)
  • Duplicated block (10–11 lines × 2) (webui/Main.py)
  • Duplicated block (10–12 lines × 2) (webui/Main.py)
  • Duplicated block (11 lines × 5) (webui/Main.py)
  • Duplicated block (11–13 lines × 2) (webui/Main.py)
  • Duplicated block (11–13 lines × 4) (webui/Main.py)
  • Duplicated block (12 lines × 2) (webui/Main.py)
  • Duplicated block (13 lines × 2) (app/services/elevenlabs_music.py)
  • Duplicated block (13 lines × 2) (app/services/material.py)
  • Duplicated block (13 lines × 2) (webui/Main.py)
  • Duplicated block (14 lines × 2) (webui/Main.py)
  • Duplicated block (14–15 lines × 2) (app/services/material.py)
  • Duplicated block (14–16 lines × 4) (webui/Main.py)
  • Duplicated block (14–17 lines × 5) (app/services/material.py)
  • Duplicated block (15 lines × 2) (app/services/voice.py)
  • Duplicated block (16 lines × 2) (webui/Main.py)
  • …and 33 more

New (94)

  • Duplicated block (10 lines × 2) (app/services/chatgpt_oauth.py)
  • Duplicated block (10–11 lines × 2) (app/services/material.py)
  • Duplicated block (11 lines × 5) (app/services/material.py)
  • Duplicated block (12–14 lines × 4) (app/services/material.py)
  • Duplicated block (13 lines × 2) (app/services/material.py)
  • Duplicated block (13 lines × 2) (app/services/task.py)
  • Duplicated block (14–15 lines × 2) (app/services/material.py)
  • Duplicated block (17 lines × 3) (app/services/metaso_minimax.py)
  • Duplicated block (22 lines × 2) (scripts/accept_chatgpt_oauth.py)
  • Duplicated block (28 lines × 2) (app/services/chatgpt_auth.py)
  • Duplicated block (6–10 lines × 2) (app/services/codex_image.py)
  • Edited copies of one member (4 members, 134+ corresponding lines) (app/services/metaso_minimax.py)
  • Edited copies of one member (4 members, 4+ corresponding lines) (app/services/metaso_minimax.py)
  • Edited copies of one member (4 members, 9+ corresponding lines) (app/services/bgm.py)
  • Edited copy of a member (10 corresponding lines) (app/services/codex_models.py)
  • Edited copy of a member (11 corresponding lines) (app/services/chatgpt_auth.py)
  • Edited copy of a member (11 corresponding lines) (app/services/utils/video_effects.py)
  • Edited copy of a member (13 corresponding lines) (app/controllers/v1/llm.py)
  • Edited copy of a member (14 corresponding lines) (app/services/chatgpt_oauth.py)
  • Edited copy of a member (14 corresponding lines) (app/services/infistar_video.py)
  • …and 74 more

Changes since last survey

  • 75 commits — 29 feature/other, 46 fixes

By area

  • test/services — 24 commits
  • app/services — 18 commits
  • (root) — 13 commits
  • app/utils — 6 commits
  • webui/i18n — 5 commits
  • app/config — 3 commits
  • app/models — 3 commits
  • docs/docker-config-note.md — 1 commit
  • docs/packaging.md — 1 commit
  • docs/sponsors — 1 commit

Notable commits

  • fix: fix(api): clarify font path errors (#1664)
  • fix: fix(api): give /videos requests without voice_name the default voice of /audio and /subtitle
  • fix: fix(config): explain how to fix a Docker bind-mounted config.toml folder
  • fix: fix(config): keep Windows paths and non-breaking spaces intact when saving config.toml
  • fix: fix(diagnostics): trace the ChatGPT and Codex sign-in requests
  • fix: fix(ffmpeg): expand binary paths before import (#1662)
  • fix: fix(i18n): polish Indonesian terminology and subject prompt
  • fix: fix(llm): preserve fallback title sentences (#1790)
  • fix: fix(llm): strip script code fences (#1780)
  • fix: fix(log): keep WebUI and API log lines when output is redirected on Windows
  • fix: fix(material): at clip speeds above 1x, download enough stock videos to cover the narration
  • fix: fix(material): log why Pexels and Coverr searches fail, such as a wrong or missing API key
  • fix: fix(material): preserve repeated topics (#1772)
  • fix: fix(material): repair corrupt caches (#1744)
  • fix: fix(redis): share task concurrency limits (#1742)
  • fix: fix(schema): normalize enum default types
  • fix: fix(security): remediate fixable Trivy findings in CPU image
  • fix: fix(subtitle): align cues with script lines (#1764)
  • fix: fix(subtitle): keep Mr. Smith, Dr. Walker and Mt. Everest in one subtitle line
  • fix: fix(subtitle): keep No.1, Vol.2 and Fig.3 in one subtitle line
  • …and 55 more

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

harry0703/MoneyPrinterTurbo was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit ce289ffb61a118779c56d6b4a34181905dbed2b9 — the exact code this score is about.
  • Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-36d4cd83012f.