E-Commerce + AR/ML

EyeBrowse

Software for optical stores: AR try-on in the browser, an offline kiosk, and an admin. Built and ready for its first practices.

What This Does

Shoppers see how glasses look on their face, live, in the browser. No app to download.

  • —AR try-on that runs on any phone or laptop without an app
  • —One catalog of over 50,000 frames
  • —In-store kiosks keep taking orders when the internet drops, with an encrypted offline queue
  • —One admin covers every location; each store manager sees only their own
EyeBrowse homepage

What's built

Three interfaces, one backend.

A storefront, an in-store kiosk and a multi-role admin, all on the same data. It's built and ready for its first practices. Nothing is in stores yet.

50,000+
Products
468
Face Landmarks
26
Admin Tabs
3
Interfaces
30fps
AR Frame Rate

3 Interfaces, One Platform

EyeBrowse serves 3 distinct user types through 3 purpose-built interfaces — all sharing a unified backend.

Select a surface to preview how the platform changes by role.

Consumer Storefront
  • —AR try-on with 468 face landmarks
  • —over 50,000 frames
  • —Stripe checkout & multi-step booking
  • —SSR/ISR blog and SEO optimization

The Challenge

Independent optical stores can't offer virtual try-on without building an app or licensing an enterprise AR platform. People hesitate to buy frames they can't see on their face. The try-on had to run in the browser, on any device, against a large catalog, without sending anyone's face data to a vendor.

The Solution

EyeBrowse delivers browser-native virtual try-on via a custom integration of Google's open-source MediaPipe FaceMesh runtime — not a commercial VTO vendor. The face-tracking model runs entirely in the user's browser; glasses geometry serves from a self-hosted Cloudflare R2 mirror under our own domain; per-frame metadata caches in our own Supabase DB with a nightly refresh cron. Zero outbound requests to any VTO vendor from the user-facing request path. The platform spans three production interfaces: a consumer storefront, an offline-first retail kiosk with encrypted order queuing, and a 26-tab admin dashboard with Supabase Realtime subscriptions.

The AR Engine

MediaPipe maps 468 facial landmarks in real time. EyeBrowse uses these coordinates to overlay 3D frame models at 30fps — directly in the browser, zero downloads.

Hover over the demo to explore the mesh. The same pipeline runs in the storefront and the kiosk.

468
Landmarks
30fps
Frame Rate
<16ms
Detection

Architecture Decisions

01

Privacy-first VTO stack — custom integration of Google's open-source MediaPipe FaceMesh runtime (NOT a commercial VTO vendor). Face tracking runs entirely in the user's browser; frames never leave the device. Glasses geometry served from a Cloudflare R2 mirror under our own domain. Per-frame metadata cached in our own Supabase DB, refreshed nightly via cron. Zero outbound requests to any VTO vendor from the user-facing request path — no tracking scripts, no cookies, no analytics to vendor endpoints.

02

3-layer AR pipeline: MediaPipe face mesh → head pose computation → Three.js GLB overlay with directional image cross-fade at 12-30° yaw

03

Offline-first kiosk with AES-256-GCM encrypted IndexedDB queue, service worker background sync, and automatic retry with exponential backoff

04

Iris-diameter PD measurement (11.7mm average calibration) — captures 9 frames over 120ms intervals, applies lens correction, blends with population average below 0.7 confidence

05

LRU cache (60 max) for processed AR frame images with blob URL revocation to prevent memory leaks in long-running kiosk sessions

06

Supabase Realtime subscriptions across 26 admin tabs with optimistic updates and conflict resolution

How It Works

Business lens: what changes for customers, managers, and revenue.

Executive view

Customers see frames on their face right away. No app, no special hardware, any phone. Independent stores get try-on without licensing an enterprise platform.

Executive view

When a frame sells in one store, every screen in every location updates in under a second. Nobody sells a frame that is already gone.

Executive view

Store managers see only their location. Owners see everything. Every change is logged.

System Architecture

AR Try-On Pipeline

Camera to virtual frame overlay in <16ms per frame

📷Camera FeedWebcam captured at 30fps via getUserMedia
🧬Face MeshMediaPipe extracts 468 facial landmarks
🎯Head PosePitch, yaw, roll computed from landmark geometry
👓3D RenderThree.js positions GLB frame model on face
✨AR OverlayComposited at 30fps — no app, no download

Real-Time Sync

One event propagates to every screen in <200ms

🏪Kiosk EventFrame sold, order placed, or inventory changed
📡Supabase RealtimePostgreSQL LISTEN/NOTIFY over WebSocket
⚡BroadcastEvery connected client receives the update
📊UI UpdateDashboards, kiosks, storefronts reflect change

Offline-First Architecture

Kiosks keep working when the internet drops

📴Connection LostNetwork drops — kiosk detects offline state
🔒Local QueueOrders encrypted with AES-256-GCM in IndexedDB
📶ReconnectService worker detects connectivity restored
✅Background SyncQueue flushes automatically — zero data loss

Under the Hood

The AR try-on pipeline runs entirely in the browser — no server round-trips. MediaPipe processes the camera feed, estimates head pose, and Three.js renders the frame model in real time.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Browser-native AR: camera → face mesh → 3D render
async function processFrame(video: HTMLVideoElement) {
// MediaPipe extracts 468 facial landmarks in <16ms
const results = await faceMesh.send({ image: video })
const landmarks = results.multiFaceLandmarks[0]
// Estimate head rotation from landmark geometry
const { pitch, yaw, roll } = estimateHeadPose(landmarks)
// Position the GLB eyewear model on the face
frameModel.rotation.set(pitch, yaw, roll)
frameModel.position.copy(noseBridge(landmarks))
renderer.render(scene, camera)
requestAnimationFrame(() => processFrame(video))
}
TypeScriptUTF-8
Ln 16, Col 1
Site Performance

This portfolio is itself a production application.

95Performance
100Accessibility
100Best Practices
92SEO
Next.js 16React 19TurbopackVercel Edge

Screenshots

Consumer Storefront

Browse the catalog, open a frame, try it on, pick lenses, check out with Stripe

6 views

Admin

Location overview, staff and roles, kiosk management, and the audit log. Shown with sample data.

4 views

Kiosk Checkout

The in-store flow: attract screen, AI prescription read, lens choice, order review. Shown with sample data.

5 views

Tech Stack

Next.js 16
React 19
TypeScript
Supabase
Stripe
MediaPipe
Three.js
Tailwind CSS
Vercel

Key Features

01

Privacy-first VTO: custom MediaPipe integration, self-hosted glasses geometry, zero vendor outbound requests

02

AR virtual try-on using MediaPipe face mesh (468 landmarks) + Three.js GLB rendering

03

Offline-first kiosk with AES-256-GCM encrypted order queue and service worker sync

04

26-tab admin dashboard with Supabase Realtime subscriptions

05

Catalog integration covering 50,000+ frames, with an automated image pipeline

06

Commission/payout system, blog with SSR/ISR, multi-step booking wizard