
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
cubing.js
is a collection of JavaScript libraries, still under development.
Twizzle is the spiritual successor to alg.cubing.net, based on cubing.js
. It is currently being developed at src/sites/alpha.twizzle.net. See the Twizzle Diaries video series for more information on Twizzle's vision and use cases.
If you're just getting started, the easiest way to use cubing.js
is through cdn.cubing.net
:
<script src="https://cdn.cubing.net/v0/js/cubing/twisty" type="module"></script>
<twisty-player alg="R U R' U R U2' R'"></twisty-player>
You can find more documentation at js.cubing.net/cubing/.
node
and npm
If you would like to use cubing.js
as a library in your package-based projects, make sure you have node and npm installed (installing node
will install npm
as well). Once you have installed those, you can run:
npm install cubing
Then you can use modules like this:
import { Alg } from "cubing/alg";
import { TwistyPlayer } from "cubing/twisty";
Please note that cubing.js
requires ES2022 module compatibility. See here.
If you would like to contribute to the development of cubing.js
, please refer to our contribution guidelines.
cubing.js
itselfWorking on cubing.js
requires the following tools:
GNU make
(probably included with your OS)git
(possibly included with your OS)git-lfs
bun
node
and npm
On macOS, you can install these using Homebrew:
brew install git git-lfs node oven-sh/bun/bun
(On other platforms, you'll have to follow individual installation instructions. We recommend using WSL on Windows.)
Once you have these dependencies, you can run the cubing.js
source like this (see the contribution guidelines for more details):
git clone https://github.com/cubing/cubing.js && cd cubing.js
make dev
# Now visit http://cubing.localhost:3333
To quickly check any changes for issues, try make test-fast
. Run make test
for more thorough testing options.
We recommend using Microsoft's Windows Subsystem for Linux (WSL) to develop cubing.js
on Windows.
For release versions and release notes, view the release history on GitHub: https://github.com/cubing/cubing.js/releases
This project is licensed under the Mozilla Public License. This means that cubing.js
is free to use in any public or private project. We've selected this license so that cubing.js
can be used in a large variety of use cases.
However, if you modify the source code of cubing.js
to fit your needs then you must publish your modifications to the cubing.js
source code (e.g. publish a fork put it on GitHub). See the full license for exact details.
Although you are no longer required to publish code that uses cubing.js
, we encourage you to develop your projects as open-source. This way, others can learn from your work and build on it far into the future. It also allows us to tell how features are being used by projects in the community, and what new features are needed.
All original code in this project is dual-licensed as both GPL and MPL, but the codebase contains additional vendored code under the Apache, MIT, and Ubuntu Font licenses. This may affect you if you are forking the source code, as certain parts are not MPL-licensed on their own. But if you are just using cubing.js
as a library, you can effectively treat all of cubing.js
as if it was MPL-licensed.
As of this time, cubing.js
primarily contains code by Lucas Garron (@lgarron) and Tom Rokicki (@rokicki). Significant parts of the cubing code also are from:
xyxxy
(@torchlight): Scramblers for unofficial eventsIt also uses the three.js
, comlink
, and p-lazy
libraries. Twizzle also uses the Ubuntu font.
FAQs
A collection of JavaScript cubing libraries.
The npm package cubing receives a total of 286 weekly downloads. As such, cubing popularity was classified as not popular.
We found that cubing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.