CLAUDE.md · FujiwaraChoki/MoneyPrinter
CLAUDE.md from FujiwaraChoki/MoneyPrinter: 107 lines covering Project Overview, Commands, Architecture, Required Environment Variables and more.
Template by FujiwaraChoki
Chalk Labs
Need help deploying CLAUDE.md · FujiwaraChoki/MoneyPrinter?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/FujiwaraChoki/MoneyPrinter/main/CLAUDE.md -o CLAUDE.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: audio-video, code-generation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A CLAUDE.md file: project memory Claude Code loads at the start of every session.
- For
- Claude Code
- Length
- 107 lines
- File
CLAUDE.md
Sections
- Project Overview
- Commands
- Architecture
- Required Environment Variables
- Conventions
First lines (shown under the repo's MIT license)
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Project Overview
MoneyPrinter automates YouTube Shorts creation from text topics. It uses Ollama for script generation, TikTok TTS for voiceover, Pexels for stock footage, and moviepy/ImageMagick for video composition. Output: a 9:16 vertical video (`output.mp4`).
## Commands
### Setup
```bash
cp .env.example .env # then fill in API keys
uv sync # install dependencies
ollama serve # start Ollama (separate terminal)
ollama pull llama3.1:8b # pull default model
```
### Run (local)
```bash
uv run python Backend/main.py # API on :8080
uv run python Backend/worker.py # queue worker
python3 -m http.server 3000 --directory Frontend # frontend on :3000
```
### Run (Docker)
```bash
docker compose up --build # frontend :8001, backend :8080, postgres :5432
```
### Verify
```bash
uv run python -m compileall Backend # syntax check
curl http://localhost:8080/api/models # API smoke test
```
### Tests
No test suite exists yet. If added, use pytest:
```bash
uv run pytest -q # all tests
uv run pytest tests/test_file.py::test_name -q # single test
```
## Architecture
### Video Generation Pipeline (end-to-end flow)
```
User input (Frontend) → POST /api/generate → generation_jobs (Postgres queue)
→ worker.py claims queued job
→ gpt.py: generate_script() via Ollama
→ gpt.py: get_search_terms() → JSON keywords
→ search.py: Pexels API → download stock clips to temp/
→ tiktokvoice.py: TTS per sentence → MP3 chunks (threaded)
→ video.py: generate_subtitles() → .srt (AssemblyAI or local timestamps)
→ video.py: combine_videos() → concatenate/crop to 9:16
→ video.py: generate_video() → burn subtitles via ImageMagick, merge audio
→ (optional) mix background music from Songs/ at 10% volume
→ (optional) youtube.py: OAuth2 upload
→ output.mp4
```
### Frontend ↔ Backend Communication
- **REST**: JSON payloads to Flask endpoints (`/api/generate`, `/api/jobs/:id`, `/api/jobs/:id/events`, `/api/jobs/:id/cancel`, `/api/models`, `/api/upload-songs`)
- **Polling**: frontend polls job status and persisted generation events.
### Key Backend Modules
| File | Responsibility |
|------|---------------|
| `main.py` | Flask app and queue/job endpoints |
| `worker.py` | Job consumer that executes generation pipeline |
| `db.py`/`models.py`/`repository.py` | DB engine, schema, queue/event persistence |
| `gpt.py` | Ollama client: script generation, search terms, YouTube metadata |
| `video.py` | Video processing: combine clips, burn subtitles, merge audio |
| `search.py` | Pexels stock video search and download |
| `tiktokvoice.py` | TikTok TTS API (60+ voices, 300-char chunking, threaded) |
| `youtube.py` | YouTube upload via Google API with OAuth2 |
| `utils.py` | Path constants, env validation, ImageMagick detection |
| `pipeline.py` | Reusable generation pipeline used by worker |
### Frontend
- `index.html`: UI with inline CSS, form fields, live log viewer
- `app.js`: API client (`apiRequest()`), job polling UI, localStorage persistence
### Runtime Directories
- `temp/`: intermediate video/audio files (cleared each generation)
- `subtitles/`: generated .srt files (cleared each generation)
- `Songs/`: user-uploaded background music MP3s
- `fonts/`: subtitle font (`bold_font.ttf`)
## Required Environment Variables
- `TIKTOK_SESSION_ID` — TikTok cookie for TTS
- `PEXELS_API_KEY` — stock video API
- `IMAGEMAGICK_BINARY` — leave empty to auto-detect from PATH
Optional: `OLLAMA_BASE_URL`, `OLLAMA_MODEL`, `ASSEMBLY_AI_API_KEY`, `DATABASE_URL`
## Conventions
- **Python**: 4-space indent, `snake_case`, type hints on all new/modified signatures, `pathlib.Path` for filesystem ops
- **JS**: `camelCase`, centralized API calls via `apiRequest()`
- **API responses**: `{"status": "success|error", ...}` with proper HTTP codes
- **Long-running work**: database-backed queue and separate worker process
- **Concurrency**: multiple jobs can be queued; worker processes them safely via DB locking
- Update `docs/` when setup, env vars, or runtime behavior changesSignals
- Stars
- 14,083
- Forks
- 1,833
- Open issues
- 16
- Last commit (this folder)
- Mar 2, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/FujiwaraChoki/MoneyPrinter
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from FujiwaraChoki
- 0.558score
AGENTS.md · FujiwaraChoki/MoneyPrinterV2
FujiwaraChoki
AGENTS.md from FujiwaraChoki/MoneyPrinterV2: 42 lines covering Project Structure & Module Organization, Build, Test, and Development Commands, Coding Style &…
TemplateDFreshness: D★ 32.2KCodex +5 - 0.555score
CLAUDE.md · FujiwaraChoki/MoneyPrinterV2
FujiwaraChoki
CLAUDE.md from FujiwaraChoki/MoneyPrinterV2: 84 lines covering Project Overview, Running the Application, Architecture, Configuration and more.
TemplateDFreshness: D★ 32.2KClaude Code - 0.521score
AGENTS.md · FujiwaraChoki/MoneyPrinter
FujiwaraChoki
AGENTS.md from FujiwaraChoki/MoneyPrinter: 154 lines covering 1) Repository Layout, 2) Source of Truth and Existing Rules, 3) Environment and Setup Commands…
TemplateDFreshness: D★ 14.1KCodex +5
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get CLAUDE.md · FujiwaraChoki/MoneyPrinter running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
CLAUDE.md · FujiwaraChoki/MoneyPrinter. Agent Mart. https://agentmart.dev/templates/fujiwarachoki-moneyprinter-claude-md (last updated 2026-10-24)