cm-chessboard

Example: Custom markers, left and right click, mark squares and log to console.