MiFamilias Implementation Roadmap

Self-Hosted Architecture | Cost Optimization | Full Autonomy

Implementation Progress

Current status of all major implementation phases as of May 28, 2026.

100% Backend Complete
100% Mobile Complete
100% Self-Hosted ML
96% Overall Progress

Master Plan Progress

All implementation phases from the master build plan.

Phase 1: Backend Core Complete

100%

User management, families, content, capsules, notifications, posts, child safety

Phase 2: Authentication Complete

100%

Cognito integration, PIN system, biometrics, email verification

Phase 3: Transcend AI Complete

100%

Legacy avatar system, voice cloning, lip-sync video, holographic effects

Phase 4: Self-Hosted ML Complete

100%

Local TTS (Coqui), Whisper transcription, Wav2Lip video, cost reduction

Phase 5: Mobile App Complete

95%

Ionic/Angular app, native iOS & Android projects created

Phase 6: Production Setup In Progress

70%

Firebase/APNs for push notifications, AWS SNS configuration

Self-Hosted Architecture (100% Self-Sufficient)

All services are self-hosted as PRIMARY. External APIs exist as emergency backups only - not required for operation.

flowchart TB subgraph Client["Mobile App (iOS/Android/Web)"] UI["User Interface"] Voice["Voice Input"] WebGL["WebGL Hologram FX"] end subgraph SelfHosted["Self-Hosted Services (Docker) - PRIMARY"] direction TB subgraph ML["ML Pipeline - FREE"] Whisper["Faster-Whisper
STT :5004"] TTS["Coqui XTTS v2
Voice Clone :5002"] LipSync["Wav2Lip
Lip-Sync :5003"] end subgraph Moderation["Content Moderation - FREE"] NudeNet["NudeNet
Explicit :8090"] InsightFace["InsightFace
Faces :8090"] CLIP["CLIP
Violence :8090"] end subgraph LLM["LLM Options"] Claude["Claude API
(Current)"] Ollama["Ollama/vLLM
(Self-hosted)"] Llama["Llama 3.1 70B
(Local GPU)"] end end subgraph Backend["Node.js Backend"] API["Express API
:3000"] Providers["Provider Factory"] end subgraph Storage["Data Storage"] DynamoDB[("DynamoDB")] S3["S3/MinIO"] Pinecone[("Pinecone RAG")] end subgraph CloudFallback["BACKUP ONLY (Not Required)"] Replicate["Replicate API"] ElevenLabs["ElevenLabs"] DID["D-ID"] Rekognition["AWS Rekognition"] end UI --> Voice Voice --> API API --> Whisper API --> NudeNet Whisper --> Providers Providers --> Claude Providers -.-> Ollama Providers -.-> Llama Claude --> TTS TTS --> LipSync LipSync --> API API --> UI UI --> WebGL Providers --> DynamoDB Providers --> S3 Providers --> Pinecone TTS -.->|Backup Only| ElevenLabs LipSync -.->|Backup Only| DID Whisper -.->|Backup Only| Replicate NudeNet -.->|Backup Only| Rekognition style ML fill:#d1fae5 style Moderation fill:#d1fae5 style LLM fill:#e0e7ff style CloudFallback fill:#fef3c7

Transcend Avatar Pipeline

Complete flow from user input to holographic avatar response.

sequenceDiagram participant U as User participant M as Mobile App participant B as Backend API participant W as Whisper (STT) participant L as LLM (Claude/Local) participant R as RAG (Pinecone) participant T as TTS (Coqui) participant V as Wav2Lip (Video) participant G as WebGL (FX) U->>M: Speak or Type M->>B: POST /transcend/chat alt Voice Input B->>W: Transcribe audio W-->>B: Text transcript end B->>R: Query memories R-->>B: Relevant context B->>L: Generate response L-->>B: AI response text B->>T: Synthesize voice T-->>B: Audio file B->>V: Generate lip-sync V-->>B: Video file B-->>M: Video URL M->>G: Apply hologram FX G-->>U: Display avatar

Cost Comparison

Self-hosted vs external API costs per operation.

External APIs (If We Used Them)

ServiceCost
Transcription (Whisper API)$0.003/sec
Voice Clone (ElevenLabs)$0.03/clone
TTS (ElevenLabs)$0.03/1k chars
Lip-Sync Video (D-ID)$0.10/min
Content Moderation (Rekognition)$0.001/image
Face Detection (Rekognition)$0.001/image
LLM (Claude)$0.02-0.05
Total per operation$0.15-0.30

Self-Hosted (What We Use - PRIMARY)

ServiceCost
Transcription (Faster-Whisper)FREE
Voice Clone (Coqui XTTS v2)FREE
TTS (Coqui XTTS v2)FREE
Lip-Sync Video (Wav2Lip)FREE
Content Moderation (NudeNet)FREE
Face Detection (InsightFace)FREE
Violence Detection (CLIP)FREE
Hologram FX (WebGL)FREE
LLM (Claude or Ollama)$0.02-0.05 or FREE
Total per operation$0.02-0.05 or FREE

85-100% Cost Reduction

LLM Provider Options

Choose your level of autonomy vs convenience.

Anthropic Claude API

Pros

  • Highest quality responses
  • No GPU requirements
  • Always up-to-date
  • Excellent at maintaining persona

Cons

  • External dependency
  • Per-request cost
  • Internet required

Ollama (Local Development)

Llama 3.1 8B / 70B
Self-hosted, runs on local GPU or CPU
FREE
# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh

# Pull model
ollama pull llama3.1:70b

# Run server
ollama serve

Configuration

LOCAL_LLM_ENDPOINT=http://localhost:11434
LLM_PROVIDER=ollama
LLM_MODEL=llama3.1:70b

vLLM (Production Self-Hosted)

vLLM + Llama 3.1 70B
High-throughput inference server for production
FREE (GPU costs apply)
# Docker with NVIDIA GPU
docker run --gpus all -p 8000:8000 \
  vllm/vllm-openai:latest \
  --model meta-llama/Llama-3.1-70B-Instruct \
  --tensor-parallel-size 2

Requirements

  • NVIDIA GPU with 48GB+ VRAM (e.g., 2x A100)
  • ~$2-4/hour on cloud GPU instances
  • Or dedicated server: ~$15k one-time

External Dependencies

Required external services for full autonomy analysis.

pie showData title External vs Self-Hosted Services "Self-Hosted (FREE)" : 12 "Required External" : 2 "Backup Only" : 3

Service Classification

Database (DynamoDB/Local)
Storage (S3/MinIO)
Transcription (Faster-Whisper)
TTS (Coqui XTTS v2)
Voice Cloning (Coqui XTTS v2)
Lip-Sync Video (Wav2Lip)
Explicit Detection (NudeNet)
Face Detection (InsightFace)
Violence Detection (CLIP)
Hologram FX (WebGL)
LLM (Ollama/vLLM)
Vector DB (pgvector)
Stripe (Payments)
AWS Cognito (Auth)
Claude API (Backup LLM)
Push Notifications (FCM/APNs)
Email (SES/Mailpit)

Minimum External Dependencies for Production

  1. Stripe - Payment processing (required for monetization)
  2. AWS Cognito - User authentication (can be replaced with self-hosted auth)

With Ollama/vLLM for LLM, the platform can run with only payment processing as the required external dependency.

Monthly Hosting Costs

Estimated costs for self-hosted infrastructure.

xychart-beta title "Monthly Hosting Cost Comparison" x-axis ["External APIs", "Self-Hosted (Cloud)", "Self-Hosted (On-Prem)"] y-axis "Monthly Cost ($)" 0 --> 5000 bar [4500, 800, 200]

Cloud Self-Hosted (Recommended)

ServiceMonthly
EC2 (c6i.2xlarge) - Backend$250
EC2 (g4dn.xlarge) - ML Services$380
DynamoDB (On-Demand)$50
S3 Storage (100GB)$3
CloudFront CDN$50
Cognito (10K users)$55
Total~$800/month

On-Premises (Maximum Autonomy)

ItemOne-Time
Mac Studio M2 Ultra (ML)$4,000
Mac Mini M4 (Backend)$600
Synology NAS (Storage)$500
UPS + Networking$400
Total (One-Time)~$5,500
Monthly: Electricity ~$50, Internet ~$100

Native App Platforms

Capacitor native projects created May 28, 2026.

iOS Project Created
Android Project Created
14 Plugins Installed
# Build and sync native projects
cd mobile
npm run build
npx cap sync

# Open in IDE
npx cap open ios      # Opens Xcode
npx cap open android  # Opens Android Studio

# Installed Plugins:
# - @capacitor/push-notifications
# - @capacitor/camera
# - @capacitor/geolocation
# - @aparajita/capacitor-biometric-auth
# - @aparajita/capacitor-secure-storage
# - + 9 more...

Push Notification Setup Required

PlatformConfiguration NeededStatus
iOS APNs certificate in Apple Developer Portal Pending
Android google-services.json from Firebase Console Pending
Backend AWS SNS Platform Applications Pending

Beta Launch Checklist

gantt title Beta Launch Timeline dateFormat YYYY-MM-DD section Backend Core APIs :done, b1, 2026-05-01, 2026-05-20 Transcend AI :done, b2, 2026-05-15, 2026-05-27 Self-Hosted ML :done, b3, 2026-05-20, 2026-05-28 Push Notifications :active, b4, 2026-05-28, 2026-06-01 section Mobile Core Features :done, m1, 2026-05-01, 2026-05-25 Native Projects :done, m2, 2026-05-28, 2026-05-28 Firebase Setup :crit, m3, 2026-05-29, 2026-06-01 TestFlight/Play :m4, 2026-06-01, 2026-06-05 section Infrastructure AWS CDK Stacks :done, i1, 2026-05-10, 2026-05-20 ML Docker Stack :done, i2, 2026-05-20, 2026-05-28 Production Deploy :i3, 2026-06-01, 2026-06-07