open-index/open-npm huggingface dataset:
npm package: 3x3-cube
Description: ### `solve` prop expects an async function that returns a promise resolving to the moves for solving the cube as a string ### import the `getFacelets` function to get a string of the cube's facelets in propper order for integration with [cubejs](https://w
Latest version: 2.1.3

# UI for app that solves 3x3x3 Rubik's Cube
## user may click any square to change it's color with the ```ColorPicker``` component
## each time a color is chosen, the squares are all validated by ```validateColors``` util to ensure the cube can be solved
## all squares' positions and colors are accessible in the global inputs object

### `solve` prop expects an async function that returns a promise resolving to the moves for solving the cube as a string
### import the `getFacelets` function to get a string of the cube's facelets in propper order for integration with [cubejs](https://www.npmjs.com/package/cubejs)
### [example of backend integration endpoint](https://github.com/spope851/spenpo-next/blob/main/pages/api/solveCube.ts)
### [example of instantiating the modules](https://github.com/spope851/spenpo-next/blob/main/pages/projects/demos/cubeSolverDemo.tsx)