Skip to content
Asad101001Public

About

Satirical facial analytics platform. Browser-side SSD MobileNet + 68-point landmark detection → PSL/RMS scoring, mog battle system, 3D skull visualization, and Groq-generated AI roasts. The ML is real. The conclusions are not.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

███╗   ███╗ ██████╗  ██████╗ ███████╗ ██████╗ ██████╗ ██████╗ ███████╗
████╗ ████║██╔═══██╗██╔════╝ ██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔════╝
██╔████╔██║██║   ██║██║  ███╗███████╗██║     ██║   ██║██████╔╝█████╗
██║╚██╔╝██║██║   ██║██║   ██║╚════██║██║     ██║   ██║██╔═══╝ ██╔══╝
██║ ╚═╝ ██║╚██████╔╝╚██████╔╝███████║╚██████╗╚██████╔╝██║     ███████╗
╚═╝     ╚═╝ ╚═════╝  ╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝     ╚══════╝



Upload your facecard. Receive a completely objective PSL/RMS assessment. The ML is real. The conclusions are not.


Live Demo   License   React


// WHAT IS THIS

MogScope is a satirical facial analytics platform that applies real, browser-side ML (SSD MobileNet + 68-point facial landmarks) to generate absurdist PSL/RMS scores using authentic looksmaxxing terminology. It parodies the pseudoscientific "looksmaxxing" subculture — where young men obsessively measure canthal tilt, bizygomatic width, and hunter index to quantify their attractiveness.

The face detection is real. The scoring pipeline is real. The conclusions — that you're "prey-coded" or a "PSL God" — are not.

⚠️ PARODY WARNING — MogScope satirizes looksmaxxing culture. Scores are algorithmic nonsense. No face is objectively superior. If this makes you feel bad: close the tab. That's the point.


// FEATURES

🔬 PSL ANALYZER

  • 68-point SSD MobileNet landmark detection
  • Hunter Index (canthal tilt angle)
  • Frame Gauge (bizygomatic width)
  • Symmetry (17 matched landmark pairs)
  • Golden Ratio proportions
  • Hollow Cheek definition
  • Eye Shape / Prey Risk %
  • Composite PSL score 1.0–9.8

👁 RMS MODE (FEMALE)

  • Foxy/Cat Eye Score
  • Facial Harmony index
  • Lip Fullness ratio
  • Cheekbone Prominence
  • Skin Regularity proxy
  • RMS composite score 1.0–9.8
  • Alexa Demie / Bella Hadid cross-reference

💀 THUNDERDOME

  • Two-face head-to-head analysis
  • Frame Mog detection
  • Canthal Mog classification
  • PSL delta scoring
  • MK-style KO overlay
  • Web Audio voice synthesis
  • Mogging verdict generation

📖 BLACKPILL LEXICON

  • 42 terms defined clinically
  • PSL to GigaStacy taxonomy
  • Clavicular, ASU Frat Leader documented
  • Female looksmaxxing terms (Stacy, RMS)
  • A–Z search + category filter
  • Real-world incident archive

// TECH STACK

┌─────────────────────────────────────────────────────────────────┐
│                        CLIENT (Vite + React 18)                  │
│                                                                   │
│  @vladmandic/face-api  ──►  SSD MobileNet + 68pt Landmarks       │
│  Three.js r162         ──►  3D Anatomical Skull (WebGL)           │
│  Framer Motion 11      ──►  Page transitions + KO overlay         │
│  Recharts              ──►  PSL Radar + metric visualization       │
│  Zustand               ──►  Global state (analyzer + battle)      │
│  Howler.js             ──►  Audio hooks (Web Audio API synthesis) │
│  Tailwind CSS          ──►  Utility styling (custom design tokens)│
│                                                                   │
└──────────────────────┬──────────────────────────────────────────┘
                       │ POST /api/roast
                       ▼
┌─────────────────────────────────────────────────────────────────┐
│                   VERCEL EDGE FUNCTION                            │
│                                                                   │
│  Groq API  ──►  llama-3.3-70b-versatile (primary LLM)            │
│                 Generates PSL Ascension Reports                   │
│                 Generates RMS Assessments                         │
│                 Dead-serious looksmaxxing tone                    │
│                                                                   │
└─────────────────────────────────────────────────────────────────┘
Layer Technology
Framework React 18 + Vite 5
Face Detection @vladmandic/face-api — SSD MobileNetV1
Landmark Model 68-point faceLandmark68Net (CDN-cached)
3D Rendering Three.js r162 — custom anatomical skull geometry
LLM Groq llama-3.3-70b-versatile via Vercel Edge
State Zustand 4
Animations Framer Motion 11
Audio Web Audio API (MK-style voice synthesis, no files)
Charts Recharts (PSL radar overlay)
Styling Tailwind CSS 3 + custom Bebas Neue / JetBrains Mono
Deployment Vercel (Edge Functions + static)

// METRICS ENGINE

All processing happens 100% client-side. No face images are sent to any server.

LANDMARK REFERENCE (68-point face-api model)

 0-16  ─── Jaw outline
17-26  ─── Eyebrows (left + right)
27-35  ─── Nose bridge + tip
36-41  ─── Left eye  (36=outer corner, 39=inner corner)
42-47  ─── Right eye (42=inner corner, 45=outer corner)
48-67  ─── Mouth

CANTHAL TILT (Hunter Index)
  angle(lm[36], lm[39]) + angle(lm[42], lm[45]) / 2
  Positive° = hunter. Near 0° = average. Negative° = prey-coded.

FRAME GAUGE
  dist(lm[0], lm[16]) / dist(lm[27], lm[8]) → bizygomatic ratio
  + tapering: bizygW / bigonW (cheekbone to jaw ratio)

SYMMETRY
  17 matched pairs: |dist(lm[a].x, cx) - dist(lm[b].x, cx)| / faceW
  100 - avgDelta * 560 → realistic range 60–78%

PSL COMPOSITE (weighted)
  hunterIndex  × 0.28
  frameGauge   × 0.20
  symmetry     × 0.20
  goldenRatio  × 0.14
  hollowCheek  × 0.10
  (100-preyRisk) × 0.08
  → Math.pow(composite, 1.22) × 9.8 → PSL 1.0–9.8

Score distribution is intentionally realistic — most people score 3.5–6.5. 8+ is genuinely rare.


// QUICK START

# Clone
git clone https://github.com/Asad101001/mogscope.git
cd mogscope

# Install
npm install

# Add Groq key (free at console.groq.com)
cp .env.example .env.local
# → set GROQ_API_KEY=gsk_your_key_here

# Run
npm run dev

Open http://localhost:5173 — face detection models (~2MB) load from CDN on first use and are cached by the service worker.

No Groq key? The app falls back to static roast templates. All face detection still works.


// PROJECT STRUCTURE

mogscope/
├── api/
│   └── roast.js              # Vercel Edge Function → Groq API
├── src/
│   ├── components/
│   │   ├── face/
│   │   │   ├── FaceCanvas.jsx       # Landmark overlay renderer
│   │   │   ├── MetricBar.jsx        # Animated score bars
│   │   │   ├── MetricRadar.jsx      # Recharts radar chart
│   │   │   └── ScanOverlay.jsx      # Analysis loading UI
│   │   ├── layout/
│   │   │   ├── Navbar.jsx           # Mobile + desktop nav
│   │   │   └── ThreeBackground.jsx  # WebGL skull scene
│   │   ├── battle/
│   │   │   └── KOOverlay.jsx        # Mortal Kombat KO screen
│   │   └── ui/
│   │       ├── CameraCapture.jsx    # Live camera + auto-lock
│   │       └── DropZone.jsx         # Drag/drop/paste upload
│   ├── lib/
│   │   ├── faceMetrics.js   # PSL + RMS scoring engine
│   │   ├── faceModel.js     # face-api.js loader + SSD MobileNet
│   │   ├── glossaryData.js  # 42 looksmaxxing term definitions
│   │   ├── roastBank.js     # Static fallbacks + Groq integration
│   │   ├── shareCard.js     # Canvas 2D share image generator
│   │   ├── sound.js         # Web Audio API MK voice synthesis
│   │   └── store.js         # Zustand global state
│   └── pages/
│       ├── Analyzer.jsx     # PSL/RMS analyzer + history
│       ├── Battle.jsx       # Thunderdome head-to-head
│       ├── Home.jsx         # Landing + feature showcase
│       └── Lexicon.jsx      # Blackpill term glossary
└── public/
    ├── sw.js                # Service worker (model weight caching)
    └── manifest.json        # PWA manifest

// THE SKULL

The 3D skull in the background is entirely custom-built in Three.js — no external model files loaded. It's constructed from two deformed SphereGeometry meshes (neurocranium + mandible) with explicit feature shaping:

  • Supraorbital torus (brow ridge projection)
  • Zygomatic arch curves
  • Gonial angle corners
  • Orbital rims with positive canthal tilt
  • Nasal piriform aperture
  • Measurement overlay lines (amber thirds, red bizygomatic, blue canthal tilt)

Reacts to mouse movement, pulses on analysis completion, shakes on KO.


// AUDIO ENGINE

Zero external audio files. All sounds synthesized via Web Audio API:

MK-style voice synthesis pipeline:
  Sawtooth oscillator → Formant bandpass bank → Hard distortion → Reverb convolution → Compressor

Phoneme map (30 phonemes): AA, AH, EH, IH, OH, OO, M, G, D, F, CH, K...
Word sequences: MOGGED, CANTHAL, FLAWLESS, SUBHUMAN, PSL GOD...

// ANALYSIS HISTORY

Last 10 analyses stored in localStorage — score, tier, metrics, roast text. Face images are not stored (too large). Accessible via the History panel in the Analyzer.


// SHARE CARDS

Generates 1080×1080 PNG share cards via Canvas 2D API with:

  • Terminal grid background + noise grain
  • Big PSL/RMS score with glow
  • Tier label + verdict text
  • All 6 metric bars
  • AI roast excerpt
  • Face photo overlay (if available)
  • Web Share API on mobile, download fallback on desktop

Built as satire. Deployed as a PSL 7.4.

Canthal tilt measured. Chico2016 cross-referenced. Forward growth assessed.

mogscope.vercel.app

About

Satirical facial analytics platform. Browser-side SSD MobileNet + 68-point landmark detection → PSL/RMS scoring, mog battle system, 3D skull visualization, and Groq-generated AI roasts. The ML is real. The conclusions are not.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages