Turn YouTube Videos Into Content That Travels.
AutoContent-Local is a privacy-first, local AI content repurposing platform. It extracts YouTube captions (or accepts manually pasted transcripts), cleans the text, caps the context at 1,200 words, and uses local Ollama running qwen2.5:1.5b through FastAPI to sequentially generate four high-signal deliverables:
- 3 High-CTR YouTube Titles (<60 characters, curiosity-driven, no clickbait deceit)
- 60-Second Short/Reel Script (
HOOK,CORE INSIGHT,CTA) - 5-Post X (Twitter) Thread (
1/5through5/5logical progression) - Professional LinkedIn Post (
HOOK, 3TAKEAWAYS, reflectiveCONCLUSION)
- 100% Local AI: No cloud LLM API, no OpenAI, no Anthropic, no paid AI API keys.
- Zero Media Downloads: Extracts caption text only via
youtube-transcript-api. Never downloads video or audio files. - 8GB RAM Optimized: Designed specifically for consumer hardware. Never loads models inside Python; Ollama manages model memory, and generation is executed sequentially rather than concurrently.
- Strict 1,200-Word Limit: Caps transcript context to optimize inference speed and prevent context-window overflow.
- Zero Fake / Demo Data: All product showcases and dashboard panels feature authentic empty states.
- Manual Transcript Fallback: If captions are disabled or unavailable on a video, users can paste transcript text manually.
Browser
│
▼
Next.js Frontend (Port 3000)
│
REST / HTTP
│
▼
FastAPI Backend (Port 8000)
│
┌────────────┴─────────────┐
│ │
▼ ▼
YouTube Transcript API Ollama (Port 11434)
(Caption text only) │
▼
Qwen 2.5 1.5B
The browser never talks directly to Ollama. The FastAPI backend validates input, cleans text, enforces token and word limits, and mediates all LLM requests.
- Node.js: v18.0.0+ (tested with v24.x)
- Python: 3.12+
- Ollama: ollama.com
- RAM: 8 GB+
Install Ollama from ollama.com, then pull the required lightweight model:
ollama pull qwen2.5:1.5bEnsure Ollama is running:
ollama serveOpen a terminal and navigate to backend:
cd backend
python -m venv .venvActivate the virtual environment:
- Windows:
.venv\Scripts\activate
- macOS / Linux:
source .venv/bin/activate
Install dependencies:
pip install -r requirements.txtCreate .env (optional, defaults are provided):
cp .env.example .envStart the FastAPI backend:
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000Open a second terminal and navigate to frontend:
cd frontend
npm installCreate .env.local:
cp .env.example .env.localStart the Next.js development server:
npm run devOpen http://localhost:3000 in your browser.
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/health |
Service health status |
GET |
/api/ollama/status |
Ollama daemon connection & model availability |
POST |
/api/transcript |
Extract & clean YouTube video transcript (1,200 words max) |
POST |
/api/transcript/manual |
Process manually pasted transcript |
POST |
/api/generate |
Generate / regenerate single deliverable (titles, short, thread, linkedin) |
POST |
/api/generate/all |
Sequentially generate all 4 deliverables |
Run the test suite with pytest:
cd backend
.venv\Scripts\python -m pytest -v testsTests verify:
- YouTube video ID extraction across standard, shorts, embed, mobile, and shortened URLs
- Transcript noise cleaning and timestamp removal
- Word truncation capping at 1,200 words
- Model output sanitization for all 4 deliverables
- Health and manual transcript API endpoints
- Error handling on invalid YouTube URLs
MIT License. See LICENSE for details.