Skip to content

alexesms/viral-video-lab

Repository files navigation

Viral Video Lab — Portal

Submit your viral video idea. We create it, dub it into 10+ languages, and distribute it worldwide. You earn 30% of all revenue. Forever.


Quick Start

1. Start the Server

cd ~/viral-video-portal
python3 server.py

2. Open in Browser

http://localhost:8080

3. Submit an Idea

Fill out the form on the landing page with your viral video concept.

4. Track Earnings

Visit http://localhost:8080/dashboard?email=your@email.com to see your submissions and earnings.


Features

Landing Page (index.html)

  • Hero section with value proposition
  • How it works (3-step process)
  • Profit sharing visualization (30/70 split)
  • Submission form with validation
  • FAQ section
  • Call-to-action

Dashboard (dashboard.html)

  • Overview stats (submissions, videos, views, earnings)
  • Earnings chart
  • Submissions table with status tracking
  • Recent earnings list
  • User profile

API (api.py)

  • POST /api/submit — Submit a new idea
  • GET /api/dashboard?email=X — Get user dashboard data
  • GET /api/submissions — List all submissions (admin)

Server (server.py)

  • Simple HTTP server
  • Serves static files
  • Handles API requests
  • CORS enabled

Profit Sharing Model

Party Share What They Do
Idea Creator 30% Submit the viral video concept
Viral Video Lab 70% Production, dubbing, distribution, monetization

How It Works

  1. Creator submits idea via portal
  2. Lab reviews and approves
  3. Lab produces video with AI dubbing pipeline
  4. Video published to YouTube, TikTok, Bilibili, etc.
  5. Revenue generated from ad views
  6. Creator receives 30% monthly via PayPal/Wise

Example Earnings

Views Total Revenue Creator (30%) Lab (70%)
100K $200 $60 $140
500K $1,000 $300 $700
1M $2,000 $600 $1,400
5M $10,000 $3,000 $7,000

File Structure

~/viral-video-portal/
├── index.html          # Landing page
├── dashboard.html      # User dashboard
├── api.py              # Backend API logic
├── server.py           # HTTP server
├── database.db         # SQLite database (auto-created)
├── submissions/        # Submission JSON files
└── README.md           # This file

Database Schema

submissions

  • id (TEXT, PK)
  • name, email, idea_title, description
  • reference_url, category, platform
  • paypal_email, status
  • created_at, reviewed_at, produced_at, published_at

videos

  • id (TEXT, PK)
  • submission_id (FK)
  • title, languages, platforms
  • youtube_url, tiktok_url, bilibili_url
  • total_views, total_revenue

earnings

  • id (TEXT, PK)
  • submission_id, video_id (FKs)
  • amount, platform
  • period_start, period_end
  • paid, paid_at

users

  • id (TEXT, PK)
  • email (UNIQUE), name, paypal_email
  • total_earnings, pending_payout

Deployment Options

Local Development

python3 server.py
# Access at http://localhost:8080

Production (Vercel/Netlify)

  1. Push to GitHub
  2. Connect to Vercel/Netlify
  3. Deploy automatically

Self-Hosted (VPS)

  1. Copy files to server
  2. Run with: nohup python3 server.py &
  3. Set up nginx reverse proxy
  4. Enable HTTPS with Let's Encrypt

Integration with Dubbing Pipeline

The portal integrates with the autonomous dubbing pipeline:

  1. Submission received → Stored in database
  2. Review & approve → Status updated to "approved"
  3. Pipeline runs → Video produced and dubbed
  4. Publish → URLs stored, status = "published"
  5. Track views → YouTube/TikTok APIs report views
  6. Calculate earnings → 30% of ad revenue
  7. Payout → Monthly via PayPal/Wise

API Documentation

Submit Idea

curl -X POST http://localhost:8080/api/submit \
  -H "Content-Type: application/json" \
  -d '{
    "name": "John Doe",
    "email": "john@example.com",
    "idea_title": "Robot Dance Battle",
    "description": "Two robots having a dance battle",
    "category": "comedy",
    "platform": "youtube",
    "paypal": "john@paypal.com"
  }'

Get Dashboard

curl "http://localhost:8080/api/dashboard?email=john@example.com"

List Submissions (Admin)

curl "http://localhost:8080/api/submissions"

Next Steps

  1. ✅ Portal created
  2. ⏳ Deploy to production
  3. ⏳ Connect to dubbing pipeline
  4. ⏳ Set up payment processing
  5. ⏳ Launch marketing campaign

Created: 2026-07-11 Portal: Viral Video Lab

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages