Skip to content

About

AI-powered SaaS to repurpose long-form audio and video into viral Twitter threads, LinkedIn posts, and email newsletters

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

⚡ ContentForge AI

Autonomous AI Engine to Repurpose Long-Form Audio & Video into Viral Multi-Platform Content

Laravel Livewire Tailwind CSS PostgreSQL Reverb OpenAI & Groq

Transform 60-minute podcasts, tech talks, interviews, and videos into high-converting Twitter Threads, LinkedIn Posts, and Email Newsletters in seconds.


🌟 Key Features

  • 🎙️ Multi-Format Media Ingestion: Upload audio (.mp3, .wav, .m4a) or video (.mp4, .mov, .webm) up to 100MB with automated audio extraction via FFmpeg.
  • ⚡ Real-Time Voice-to-Text Transcription: Powered by OpenAI Whisper-1 / Groq Whisper Large v3 with timestamps and word-level accuracy.
  • 🤖 Multi-Platform AI Content Generation:
    • Twitter / X Thread: 5–7 structured tweets with hooks and CTAs.
    • LinkedIn Post: Engaging professional storytelling and clean formatting.
    • Email Newsletter: In-depth summaries, key highlights, and actionable takeaways.
  • 🔄 Real-Time WebSocket Broadcasting: Powered by Laravel Reverb — track real-time audio wave pulses, progress percentages, and status transitions without page refreshes.
  • 📝 Split-Screen Interactive Editor: Review original transcription on the left while editing generated AI content on the right.
  • 💾 Version History & Audit Logging: Track modifications and version diffs with timestamped edit histories.
  • 📥 Streaming Markdown & Text Export: Instantly download polished .md or .txt content files ready for publishing.
  • 🛡️ Built-in Guardrails & Cost Safeguards: Enforces daily upload quotas and media duration limits to prevent API cost overruns.
  • 🎨 Phosphor Icons & Custom Modal UI: Modern, accessible aesthetics with custom confirmation dialogs and micro-interactions.

🏗️ Architecture Workflow

flowchart TD
    A[User Uploads Media] -->|Livewire 3| B[Probe Media Duration & Validate Safeguards]
    B -->|Save to Storage| C[Dispatch TranscribeJob]
    C -->|Extract Audio via FFmpeg| D[AIService: Whisper Transcription]
    D -->|Broadcast Event| E[WebSocket Reverb: TranscriptionCompleted]
    D -->|Chain Queue| F[AIService: GPT-4o / LLaMA 3.3 Generation]
    F -->|Per-Format Loop| G[Broadcast Event: OutputGenerated]
    G -->|All Formats Finished| H[WebSocket Reverb: ContentProcessingCompleted]
    H -->|Auto-Update UI| I[Split-Screen Editor: Edit, Save & Export]
Loading

🛠️ Technology Stack

Layer Technology
Backend Laravel 11, PHP 8.3 (Strict Types), PostgreSQL
Frontend Livewire 3, Alpine.js, Tailwind CSS, Phosphor Icons
Real-time WebSockets Laravel Reverb, Laravel Echo, Pusher JS
Queue & Background Jobs Database Queue / Redis, Chained Idempotent Jobs
AI Providers OpenAI (Whisper-1, GPT-4o) & Groq Cloud (Whisper Large v3, LLaMA 3.3 70B)
Multimedia Processing FFmpeg & FFprobe (with graceful fallback)

🚀 Quick Start Guide

1. Clone Repository & Install Dependencies

git clone https://github.com/fhtur/ContentForge-AI.git
cd ContentForge-AI

composer install
npm install

2. Configure Environment

Copy the example environment file:

cp .env.example .env
php artisan key:generate

Configure your PostgreSQL database and AI Provider key in .env:

DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=contentforge_ai
DB_USERNAME=postgres
DB_PASSWORD=your_password

# AI Provider (OpenAI or Groq Cloud Key)
OPENAI_API_KEY=your_api_key_here

3. Run Migrations & Seeders

php artisan migrate --seed
php artisan storage:link

4. Start Local Development Services

Run each service in separate terminal windows:

# Terminal 1: Web Server & Asset Compiler
npm run dev
php artisan serve

# Terminal 2: Queue Worker (AI Processing Engine)
php artisan queue:listen

# Terminal 3: WebSocket Server (Real-time UI Updates)
php artisan reverb:start

Open http://localhost:8000 in your browser!


🧪 Testing Suite

Execute the automated Feature & Unit test suite with 100% test isolation:

php artisan test

🔒 Security & Privacy

  • All API keys and secrets are strictly excluded from version control via .gitignore.
  • Multimedia files and transcripts are stored securely in isolated storage disks with ownership authorization checks.

📄 License

ContentForge AI is open-sourced software licensed under the MIT License.

About

AI-powered SaaS to repurpose long-form audio and video into viral Twitter threads, LinkedIn posts, and email newsletters

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages