You can find the Leaf github repo at: github.com/uwrit/leaf.

It has installation instructions.

It also has all the source code.