Skip to content

About

AutoContent is a privacy-first, local-first AI platform that transforms any YouTube video or pasted transcript into four high-impact content deliverables: 3 high-CTR titles, a 60-second short script, a 5-post X thread, and a professional LinkedIn post.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

AutoContent-Local

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:

  1. 3 High-CTR YouTube Titles (<60 characters, curiosity-driven, no clickbait deceit)
  2. 60-Second Short/Reel Script (HOOK, CORE INSIGHT, CTA)
  3. 5-Post X (Twitter) Thread (1/5 through 5/5 logical progression)
  4. Professional LinkedIn Post (HOOK, 3 TAKEAWAYS, reflective CONCLUSION)

Key Principles & Constraints

  • 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.

Architecture

                    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.


Prerequisites

  • Node.js: v18.0.0+ (tested with v24.x)
  • Python: 3.12+
  • Ollama: ollama.com
  • RAM: 8 GB+

Installation & Setup

1. Ollama Setup

Install Ollama from ollama.com, then pull the required lightweight model:

ollama pull qwen2.5:1.5b

Ensure Ollama is running:

ollama serve

2. Backend Setup

Open a terminal and navigate to backend:

cd backend
python -m venv .venv

Activate the virtual environment:

  • Windows:
    .venv\Scripts\activate
  • macOS / Linux:
    source .venv/bin/activate

Install dependencies:

pip install -r requirements.txt

Create .env (optional, defaults are provided):

cp .env.example .env

Start the FastAPI backend:

uvicorn app.main:app --reload --host 0.0.0.0 --port 8000

3. Frontend Setup

Open a second terminal and navigate to frontend:

cd frontend
npm install

Create .env.local:

cp .env.example .env.local

Start the Next.js development server:

npm run dev

Open http://localhost:3000 in your browser.


API Endpoints

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

Running Tests

Backend Unit Tests

Run the test suite with pytest:

cd backend
.venv\Scripts\python -m pytest -v tests

Tests 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

License

MIT License. See LICENSE for details.

About

AutoContent is a privacy-first, local-first AI platform that transforms any YouTube video or pasted transcript into four high-impact content deliverables: 3 high-CTR titles, a 60-second short script, a 5-post X thread, and a professional LinkedIn post.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages