Skip to content

madstap/igviz

Repository files navigation

igviz

Tiny library for visualizing an integrant system. The integrant equivalent of system-viz.

Usage

Dependency [igviz "0.1.0"]

(ns foo.bar
  (:require
   [integrant.core :as ig]
   [madstap.igviz :as igviz]))

(def my-system
  {::config :foo
   ::db {:config (ig/ref ::config)}
   ::server {:db (ig/ref ::db)
             :config (ig/ref ::config)}})

(comment
  (igviz/visualize my-system)
  )

Which will be visualized like this:

A vizualization of an example system

Use of this project requires that Graphviz is installed, which can be checked by running dot -V at the command line. If it's not installed, you can do the following:

platform directions
Linux install graphviz using your package manager
OS X use brew install graphiz or download the installer
Windows download the installer

Contributing

PRs and feature requests welcome.

License

Copyright © 2018 Aleksander Madland Stapnes

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Visualize an integrant configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages