๐ก Vector Zoom Viewer: Text ko bina kisi blur ke 1000% tak zoom karke dekhne ke liye browser me open karein: architecture_viewer.html
| Server / Component | Stack & Services | Description & Responsibilities |
|---|---|---|
| Server 1: App Server (VPS 1) | Caddy |
Reverse proxy, SSL certificates (Ports 80/443), static routing |
Next.js 16 (React 19) |
Core Web UI, REST APIs, NextAuth, Admin Dashboard, Guest Portal | |
Redis 7 Alpine |
BullMQ message queues, fast config caching (face_engine) |
|
BullMQ Workers |
Face indexing jobs, batch photo DB writes, mail delivery, cron | |
Python FastAPI (CPU) |
InsightFace Buffalo_L (local 512-dim face embeddings fallback) | |
Node.js FTPS Server |
Ports 21, 990, 30000-30049 for Sony/Canon/Nikon camera Wi-Fi uploads | |
| Server 2: Database Server (VPS 2) | Self-Hosted Supabase |
Complete Supabase Stack (PostgreSQL 15+, pgvector, Studio, Kong) |
pgvector Extension |
Stores 512-dim embeddings in Person.representativeVector with <-> cosine/L2 search |
|
Supabase Studio |
Database monitoring, SQL editor, and table administration | |
| Cloud Services | RunPod Serverless GPU |
On-demand CUDA GPU worker for ultra-fast face indexing on bulk uploads |
Cloudflare R2 |
S3-compatible zero-egress object storage for photos and watermarked previews | |
Razorpay |
Payments for subscriptions, photo store orders, WhatsApp credits | |
WhatsApp Cloud API / SMTP |
Guest OTPs, notifications, and client invoicing |