CUBELAB
Kociemba two-phase · runs 100% in your browser

Any cube.
Solved in
~20 moves.

Scan your scrambled Rubik's Cube with the camera — or paint it in by hand — and follow a near-optimal solution on an interactive 3D cube, move by move.

drag to rotate

Everything a cube needs

Camera scanning

Point your camera at each face — stickers are detected in real time with HSV color classification and OpenCV-assisted smoothing.

Kociemba two-phase solver

A full TypeScript implementation with coordinate move tables and pruning tables, returning ~20-move solutions in under two seconds.

Interactive 3D playback

Watch every turn animate on a 3D cube. Orbit it freely, step forward and back, and tune the playback speed.

Deep validation

Color counts, impossible pieces, corner twist, edge flip and permutation parity are all checked — with concrete fix suggestions.

Tutorial mode

Every move is spelled out in plain language with a progress indicator, so you can follow along on your real cube.

Built for your pocket

Mobile-first layouts, touch-friendly controls and a solver that runs entirely on-device — no server, no uploads.

How it works

1 · Capture

Scan all six faces with the camera, or paint the stickers in the manual editor.

2 · Compute

The two-phase algorithm searches billions of positions through pruned coordinate spaces — in your browser.

3 · Follow along

Play the solution in 3D at your own pace until the very last turn clicks into place.

Grab your cube. Let's go.

From hopeless scramble to solved in about twenty turns — guided the whole way.