brew install cloc
curl https://nodeload.github.com/swarmbase/swarmbase/tar.gz/main | tar xvz
cloc swarmbase-main --csv --by-file --report-file=swarmbase.cloc
then convert to JSON on http://www.redotheweb.com/CodeFlower/
Then update as below
The best way to share your CodeFlowers is to use GitHub Pages, just like this very page. So just fork the fzaninotto/CodeFlower repository, add your own JSON data under the data directory, update the options of the dropdown list in the index.html file accordingly, commit the code, and push to the gh-pages branch. GitHub will publish the result for you.
This experiment visualizes source repositories using an interactive tree. Each disc represents a file, with a radius proportional to the number of lines of code (loc). All rendering is done client-side, in JavaScript. Built with d3.js, inspired by Code Swarm and Gource, published with the MIT open-source license.
Interact with CodeFlowers, see examples, and build your own at http://fzaninotto.github.com/CodeFlower.
You might also like DependencyWheel, another d3.js visualization for indirect dependencies in software packages.