fretboard-api

Create a Fretboard object:
f = new api.Fretboard();
Add a Shape corresponding to an open major chord:
s = f.addShape("022100");
Move this shape to the 8th fret:
s.moveToFret(8);
Add a Shape corresponding to the C major scale:
s2 = f.addShape("8 10, 7 8 10, 7 9 10, 7 9 10, 8 10, 7 8");
Transpose this shape down one string, which gives us the F major scale:
s2.transposeByStrings(1);