← projects

past project · 2026

BRAIN | RANK

Neural A/B testing for content creators. Upload a video, thumbnail, or script and see a second-by-second prediction of how a viewer's brain responds, before you publish.

View the code on GitHub ↗

Why

Most creative testing tells you what performed after the money is already spent. BRAIN | RANK tried to tell you why, up front. It ran content through TRIBE v2, Meta's foundation model that predicts fMRI responses across the cortex from video, audio, and text, and turned that raw output into scores a creator could actually act on: where the hook lands, where attention drops, and which version wins.

What it did

  • Multi-modal input

    Videos up to 90 seconds, thumbnails and images, or a plain text script.

  • 9 brain networks

    Attention, reward, emotion, social cognition, visual, auditory, language, default mode, and motion, scored every 2 seconds.

  • 3D cortex playback

    Scrub the video and watch activation move across a 20,000-vertex brain model in sync.

  • Compare + discover

    Put two versions side by side, or browse a public feed of what lights brains up.

Results view: the video player, a 3D neural activation map, and activation bars for nine brain networks
The results view. The 3D brain and network bars update with playback.

How it worked

The Next.js app queued each upload as a job in Supabase and sent it to a GPU worker on RunPod Serverless. The worker ran TRIBE v2's video, language, and audio feature extractors, projected the predicted activity onto ~20,000 cortical vertices, grouped them into nine functional networks, and posted per-segment scores back through a webhook. Getting the model to run at all meant pinning a fragile CUDA and PyTorch stack into a container that could cold-start in a reasonable time.

Stack

Frontend
Next.js, React, Tailwind, Framer Motion
3D / charts
three.js (react-three-fiber), visx, Recharts
Data & auth
Supabase (Postgres, Auth, Storage)
Inference
PyTorch on RunPod Serverless GPUs (A40/A100)
Model
Meta's TRIBE v2 brain-encoding model
Billing & infra
Stripe, Vercel, Upstash, PostHog, Resend

The landing page

The full BRAIN | RANK landing page

Archived capture of the original site. Scroll inside the frame.

TRIBE v2 is licensed by Meta for non-commercial use (CC BY-NC 4.0). Scores are model estimates of an average viewer's brain response, not measurements.