A stunning, real-time minimalist hand tracking visualization built specifically for the modern web. Utilizing MediaPipe and Next.js, this application captures hand joints in 3D space through your webcam and bridges multiple hands using precise, hair-thin neon vectors.
- Real-Time Client Tracking: Zero server latency. The entire inference model (
@mediapipe/hands) runs in your browser via WebAssembly. - Neon Light Bridge: When two hands enter the frame, the engine calculates sub-pixel midpoints between all 21 natural hand joints to generate over 40 precise connection strings that bridge across your hands perfectly in real-time.
- Pure Canvas Optimization: Runs highly-optimized asynchronous frame rendering decoupled from the React lifecycle to guarantee 60fps performance without frame freezing.
- Framework: Next.js (App Router format)
- Computer Vision: MediaPipe Hands /
@mediapipe/camera_utils - Styling: Tailwind CSS
- Graphics: HTML5
<canvas>Context2D with dynamic composite screen lighting
Node.js 18+ explicitly required.
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:3000 with your browser.
To test or deploy the optimized production version of the web app:
npm run build
npm startThe core of the application has been strictly splintered into production-ready modules:
src/components/NeonHandTracker.tsx: The primary mounting component orchestrating the MediaPipe camera hooks and the high-speed 60fps animation loop.src/components/TrackerOverlays.tsx: Renders the loading states, error states, and UX layers.src/utils/canvasUtils.ts: Pure geometric rendering functions computing midpoints and generating the multi-layered neon bridges.src/hooks/useHandTracking.ts: Asynchronous WebAssembly hook establishing theCamerainstance and parsing the 21multiHandLandmarks.