AISuiteX Studio
Complete Project Overview

All frontend files, backend architecture, APIs, and deployment instructions in one place. Built with zero framework — pure HTML, CSS, JS + Python FastAPI backend.

🏠 Open Main Studio 📄 Frontend Files ⚙ Backend Code
6
Frontend Files
9,030
Total Lines
591KB
Total Size
160+
Tools Built
13
Categories
7
Editors

📄 Frontend Files

6 files — all standalone HTML, no framework needed
🏠
AISuiteX Studio
Main dashboard with all 160+ tools. PDF, Image, Video, Audio, Document, Excel, PPT, SEO, Developer, Data Analytics, AI Creative Studio. Canvas-first design with sidebar, tabs, properties panel.
📝
Document Editor
Full MS Word + Google Docs + Notion clone. Multi-page layout, ribbon toolbar (7 tabs), slash commands, floating format toolbar, comments panel, version history, find & replace, table/shape inserter.
📊
Data Analytics Studio
Power BI + Tableau clone. AI prompt commands, live data table with missing value detection, before/after comparison, column profiler, pivot builder, ML predictions, full dashboard with charts.
📗
Spreadsheet Editor
Full Excel + Google Sheets clone. 26 cols × 100 rows, formula engine (SUM/AVERAGE/IF/VLOOKUP), ribbon with 7 tabs, chart builder (10 types), pivot table, column resize, sort/filter, sheet tabs.
AI Creative Studio
UGC Ads Creator, Ad Variants, Whiteboard Explainer, Anime Creator, Image Generator, Text→Video, Image→Video. Live preview with generation animation, aspect ratios, model selector, history strip.
🗂
Project Index (This Page)
Master dashboard showing all frontend files, backend architecture, tech stack, deployment guide, and links to all tools. The entry point for the entire project.

⚙ Backend Files

Python FastAPI — deploy on Hostinger VPS
🚀
Main App
backend/main.py
FastAPI application entry point. CORS, static file serving, middleware, startup events, route registration. Serves frontend + API from same server.
PythonFastAPICore
🔐
Authentication
backend/auth/auth.py
JWT access tokens (15min) + refresh tokens (7 days). bcrypt password hashing. OAuth2 flow. Plan-based route guards (free/standard/advanced).
PythonJWTSecurity
👤
Auth Routes
backend/routers/auth_routes.py
Register, login, logout, refresh token, email verification, password reset. Token revocation via DB. Brute force protection.
PythonREST
📁
File Security
backend/services/file_security.py
MIME type verification, malicious file detection, private storage outside web root, signed URLs with expiry, auto-delete after 1hr (free) / 24hr (standard) / 30 days (advanced).
PythonSecurity
Rate Limiter
backend/middleware/rate_limit.py
Redis-based rate limiting per user + per IP. Per-minute and per-day limits. Plan-aware (free: 20 req/min, standard: 60, advanced: 200). Action-specific limits for images/videos.
PythonRedis
🎯
Generation Routes
backend/routers/generation.py
Submit jobs, poll status, cancel, get history. WebSocket for real-time updates. Credit deduction. RunPod serverless dispatch. Queue position + ETA.
PythonWebSocket
🔄
Job Manager
backend/services/job_manager.py
Redis priority queue. Job creation, status tracking, queue positions, ETA calculation. Background worker loop. User notifications. Auto-cleanup expired jobs.
PythonRedis
🖥
RunPod Worker
runpod_worker/handler.py
GPU serverless handler. Image generation (FLUX), Text→Video (CogVideoX), Image→Video (SVD), Anime (AnimateDiff), Transcription (Whisper). Model lazy loading + caching.
PythonRunPodGPU
🌐
RunPod Service
backend/services/runpod_service.py
Submit jobs to RunPod serverless API, poll for results, handle timeouts, cancel jobs. HMAC signature validation for security.
PythonHTTP
🛡
Colab Watchdog
backend/services/colab_watchdog.py
Monitors Google Colab worker health every 30 seconds. Marks offline if unreachable. Auto-failover to free API providers. Redis status updates.
PythonMonitor
🗄
Database Models
backend/models/
PostgreSQL via SQLAlchemy. Tables: users, files, jobs, refresh_tokens, ai_logs, subscriptions, credits. All with created_at, updated_at, soft delete.
PostgreSQLSQLAlchemy
🔒
Privacy Routes
backend/routers/privacy.py
GDPR Article 17 — delete all user data. GDPR Article 20 — export all user data as JSON. Wipes files from disk + all DB records.
PythonGDPR
Config & Env
backend/config.py + .env
All secrets in .env (JWT, refresh, file, worker secrets). API keys for Groq, Cloudflare, Kling, RunPod. Database URLs. Never committed to git.
ConfigSecurity
🐳
Dockerfile
runpod_worker/Dockerfile
RunPod GPU worker container. PyTorch 2.1 + CUDA 11.8 base. FFmpeg, all AI model dependencies. Builds to DockerHub for RunPod serverless deployment.
DockerGPU
🌍
Nginx Config
/etc/nginx/sites-available/aisuitex
Serves frontend files, proxies /api/ to FastAPI, serves /outputs/ and /uploads/ directories. 100MB upload limit, 300s timeout for AI generation.
NginxServer
🔧
Systemd Service
/etc/systemd/system/aisuitex.service
Auto-starts FastAPI on VPS boot. Gunicorn with 2 Uvicorn workers. 300s timeout. Restarts automatically on crash. Runs as www-data user.
LinuxSystemD

🏗 System Architecture

How all pieces connect
┌─────────────────────────────────────────────────────────────────┐ │ AISUITEX COMPLETE STACK │ ├─────────────────────────────────────────────────────────────────┤ │ │ │ USER BROWSER │ │ ┌─────────────────────────────────────────────────────────┐ │ │ │ index.html → Project dashboard (this page) │ │ │ │ aisuitex-studio.html → Main 160+ tools hub │ │ │ │ aisuitex-document-editor.html → Word/Docs/Notion │ │ │ │ aisuitex-spreadsheet.html → Excel/Sheets │ │ │ │ aisuitex-analytics.html → Power BI/Tableau │ │ │ │ aisuitex-ai-studio.html → AI generation │ │ │ └─────────────────────────────────────────────────────────┘ │ │ │ HTTPS │ │ ▼ │ │ CLOUDFLARE (Free) ─── DDoS + WAF + SSL + CDN │ │ │ │ │ ▼ │ │ HOSTINGER VPS 8GB RAM (Always on — $10-15/month) │ │ ┌─────────────────────────────────────────────────────────┐ │ │ │ Nginx → Serves HTML + proxy to API │ │ │ │ FastAPI → All API routes + WebSocket │ │ │ │ Redis → Job queue + rate limiting + cache │ │ │ │ PostgreSQL → Users, files, jobs, subscriptions │ │ │ │ Ollama phi3 → Local LLM (2.5GB RAM) │ │ │ │ rembg → Background removal (500MB) │ │ │ │ Whisper tiny → Audio transcription (1GB) │ │ │ │ Piper TTS → Text to speech (200MB) │ │ │ │ FFmpeg → All video/audio processing │ │ │ └─────────────────────────────────────────────────────────┘ │ │ │ │ │ │ │ ▼ ▼ ▼ │ │ FREE APIS RUNPOD SERVERLESS GOOGLE COLAB │ │ ┌──────────────┐ ┌──────────────────┐ ┌───────────────┐ │ │ │ Groq (LLM) │ │ RTX 3090 24GB │ │ T4 GPU 15GB │ │ │ │ Kling (video)│ │ Pay per second │ │ Free 12hr/day │ │ │ │ Cloudflare │ │ ~$0.002/image │ │ Kaggle backup │ │ │ │ HuggingFace │ │ ~$0.07/video │ │ 30hr/week free│ │ │ └──────────────┘ └──────────────────┘ └───────────────┘ │ │ │ └─────────────────────────────────────────────────────────────────┘

🛠 Tech Stack

Every technology used
🌐
HTML5 / CSS3 / JS
All frontend — no framework
🐍
Python 3.11
Backend language
FastAPI
API framework + WebSocket
🌍
Nginx
Web server + reverse proxy
🐘
PostgreSQL
Primary database
Redis
Queue + cache + rate limit
🔐
JWT + bcrypt
Auth + password hashing
🎬
FFmpeg
Video + audio processing
🤖
Ollama + Phi-3
Local LLM on VPS
🎙
Piper TTS
Text to speech (free)
🎧
Whisper tiny
Speech to text (free)
🖼
rembg
Background removal (free)
🌩
Cloudflare
CDN + DDoS + SSL (free)
🟢
Groq API
Fast LLM (14,400 free/day)
🎬
Kling AI
Video gen (66 free/day)
🖥
RunPod Serverless
GPU on-demand (~$0.002/img)
🐳
Docker
RunPod worker container
💳
Stripe
Payments + subscriptions
🔔
WebSocket
Real-time job updates
🔒
HMAC SHA-256
Colab tunnel security

🚀 Quick Deploy to Hostinger VPS

Full setup in ~30 minutes
Step 1 — Upload frontend files to VPS
# Upload via SFTP or Hostinger File Manager
scp *.html root@YOUR_VPS_IP:/var/www/aisuitex/frontend/
# Install backend
git clone your-repo /var/www/aisuitex/backend
pip install -r requirements.txt
sudo systemctl start nginx redis postgresql aisuitex
# Your site is live at:
https://yourdomain.com → AISuiteX Studio
https://yourdomain.com/api/docs → API documentation

💰 Monthly Cost Breakdown

Run full AI platform for under $20/month
${[ ['🖥 Hostinger VPS','$10-15/mo','8GB RAM, always on','warn'], ['🌩 Cloudflare','$0/mo','DDoS + SSL + CDN free','free'], ['🤖 Groq API','$0/mo','14,400 LLM calls/day free','free'], ['🎬 Kling AI','$0/mo','66 free videos/day','free'], ['🖼 Cloudflare AI','$0/mo','Image gen free tier','free'], ['🖥 RunPod GPU','$0.002/img','Pay per generation only','paid'], ['📧 Email (SMTP)','$0/mo','Use Gmail SMTP free','free'], ['💳 Stripe','2.9% + $0.30','Per transaction only','paid'], ].map(([n,p,d,t])=>`
${n}
${p}
${d}
`).join('')}
Total for 10 active users
VPS + GPU for ~100 images + 30 videos/day
~$15-20/month