Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Show a graph of your Clojure namespaces (alpha!)
Clojure Shell
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc/samples
src/leiningen
test/leiningen
.gitignore
README.md
project.clj

README.md

nephila

Example graph

A nascent Leiningen plugin to show a graph of your namespaces.

Usage

To use nephila, graphviz must be installed and available on the path.

Put [org.timmc/nephila "0.3.0"] into the :plugins vector of your :user profile, or if you are on Leiningen 1.x do lein plugin install org.timmc/nephila 0.3.0.

Then you can run this in any project:

$ lein nephila output.png

and then open output.png in your image viewer of choice.

See lein help nephila for options. (View it online at end of nephila.clj.)

Tips and tricks

  • The sample graph-diff.sh script uses nephila to show just the subgraph containing namespaces changed on a git branch.

Changelog

v0.3.0

  • Add :rank-sep to options, defaulting to "2.5", for distance between nodes of different levels.

v0.2.0

  • Take options from project map and optional command line argument
  • Option added: :graph-orientation
  • Option added: :only for restricting set of nodes in graph (symbols and path strings)
  • Graph has random coloring for edges (makes intersections more readable)
  • Graph has wider spacing

v0.1.0

  • Basic functionality: Read src/, output graph to named file.

License

Copyright © 2013 Tim McCormack

Free license pending release by employer.

Something went wrong with that request. Please try again.