{"id":28941400,"url":"https://github.com/metosin/schema-viz","last_synced_at":"2025-09-10T14:33:26.946Z","repository":{"id":62433639,"uuid":"53564179","full_name":"metosin/schema-viz","owner":"metosin","description":"Plumatic Schema visualization using Graphviz.","archived":false,"fork":false,"pushed_at":"2016-12-01T07:08:33.000Z","size":703,"stargazers_count":74,"open_issues_count":7,"forks_count":2,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-09T22:47:43.675Z","etag":null,"topics":["clojure","clojurescript","metosin-inactive","schema","visualization"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metosin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-10T07:23:57.000Z","updated_at":"2025-03-24T07:58:58.000Z","dependencies_parsed_at":"2022-11-01T21:16:11.643Z","dependency_job_id":null,"html_url":"https://github.com/metosin/schema-viz","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/metosin/schema-viz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metosin%2Fschema-viz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metosin%2Fschema-viz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metosin%2Fschema-viz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metosin%2Fschema-viz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metosin","download_url":"https://codeload.github.com/metosin/schema-viz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metosin%2Fschema-viz/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259860677,"owners_count":22922997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","clojurescript","metosin-inactive","schema","visualization"],"created_at":"2025-06-23T02:10:28.849Z","updated_at":"2025-09-10T14:33:26.925Z","avatar_url":"https://github.com/metosin.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Schema-viz [![Build Status](https://travis-ci.org/metosin/schema-viz.svg?branch=master)](https://travis-ci.org/metosin/schema-viz) [![Dependencies Status](https://jarkeeper.com/metosin/schema-viz/status.svg)](https://jarkeeper.com/metosin/schema-viz)\n\nPlumatic [Schema](https://github.com/plumatic/schema) visualization using Graphviz.\n\n[![Clojars Project](http://clojars.org/metosin/schema-viz/latest-version.svg)](http://clojars.org/metosin/schema-viz)\n\n## Prerequisites\n\nInstall [Graphviz](http://www.graphviz.org/).\n\n## Usage\n\nPublic functions in `schema-viz.core`:\n* `visualize-schemas` displays schemas from a namespace in a window.\n* `save-schemas` saves schema visualization in a file.\n\nBoth take an optional options-map to configure the rendering process.\nSee docs for details.\n\n```clj\n(require '[schema-viz.core :as svc])\n(require '[schema.core :as s])\n\n(s/defschema Country\n  {:name (s/enum :FI :PO)\n   :neighbors [(s/recursive #'Country)]})\n\n(s/defschema Burger\n  {:name s/Str\n   (s/optional-key :description) s/Str\n   :origin (s/maybe Country)\n   :price (s/constrained s/Int pos?)\n   s/Keyword s/Any})\n\n(s/defschema OrderLine\n  {:burger Burger\n   :amount s/Int})\n\n(s/defschema Order\n  {:lines [OrderLine]\n   :delivery {:delivered s/Bool\n              :address {:street s/Str\n                        :zip s/Int\n                        :country Country}}})\n\n(svc/visualize-schemas)\n```\n\nProduces the following:\n\n![Schema](dev-resources/schema.png)\n\n## License\n\nCopyright © 2015-2016 [Metosin Oy](http://www.metosin.fi)\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetosin%2Fschema-viz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetosin%2Fschema-viz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetosin%2Fschema-viz/lists"}