2026-05-25
Language: TypeScript
Cube-snap is a delightfully ambitious browser-based tool that solves a Rubik's cube from just two phone photos. You snap pictures of opposite corners of your scrambled cube, and the app reconstructs the full color state, then hands you a step-by-step solution rendered in 3D.
What makes this repo a genuine hidden gem is the breadth of computer-vision techniques crammed into a zero-star side project:
The "two photos" trick is the clever bit. A Rubik's cube has six faces, but a single corner shot reveals three of them at once. Two opposite-corner shots therefore cover all six faces while keeping the UX dead simple — no awkward "rotate and capture each side" choreography.
Who benefits? Computer-vision learners get a compact, real-world homography example without wading through OpenCV C++. Cubers get a frictionless solver that beats typing in 54 sticker colors by hand. Web devs curious about doing serious vision work entirely client-side will find a tidy reference for combining getUserMedia, canvas pixel sampling, and three.js. And anyone interested in what a polished Claude-Code-assisted weekend project looks like has a clean specimen to study.
It's the kind of project that feels like it should be a paid app — and instead it's sitting at zero stars waiting to be discovered.
