Skip to content

madstap/igviz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

31fa9ac · Feb 6, 2021

History

66 Commits
Jan 24, 2021
Feb 6, 2021
Feb 6, 2021
Jan 23, 2021
Jan 17, 2020
Jan 24, 2021
May 30, 2018
Jan 24, 2021
Jun 5, 2019
Jan 24, 2021
Jun 2, 2018
Feb 6, 2021

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.