chessboard.js is released under the MIT License

the code can be found on GitHub