{"id":17041969,"url":"https://github.com/gmamaladze/d3-dot-graph","last_synced_at":"2026-03-04T20:32:19.721Z","repository":{"id":81553799,"uuid":"101989286","full_name":"gmamaladze/d3-dot-graph","owner":"gmamaladze","description":"This module provides D3js compatible library to parse and load files in graphviz DOT (.dot) (graph description language) format.","archived":false,"fork":false,"pushed_at":"2017-09-01T14:06:26.000Z","size":117,"stargazers_count":39,"open_issues_count":2,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T14:49:04.577Z","etag":null,"topics":["d3","d3js","d3v4","dot","graph-description-language","graphviz","java9-jigsaw"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gmamaladze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-31T10:26:34.000Z","updated_at":"2025-01-21T01:56:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0265292-007a-4901-9c33-eeb14452fe37","html_url":"https://github.com/gmamaladze/d3-dot-graph","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gmamaladze/d3-dot-graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmamaladze%2Fd3-dot-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmamaladze%2Fd3-dot-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmamaladze%2Fd3-dot-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmamaladze%2Fd3-dot-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gmamaladze","download_url":"https://codeload.github.com/gmamaladze/d3-dot-graph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gmamaladze%2Fd3-dot-graph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30091775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T19:41:02.502Z","status":"ssl_error","status_checked_at":"2026-03-04T19:40:05.550Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["d3","d3js","d3v4","dot","graph-description-language","graphviz","java9-jigsaw"],"created_at":"2024-10-14T09:14:20.019Z","updated_at":"2026-03-04T20:32:18.577Z","avatar_url":"https://github.com/gmamaladze.png","language":"HTML","funding_links":[],"categories":["Content"],"sub_categories":["Language Bindings"],"readme":"# d3-dot-graph\n\nThis module provides [D3js][d3js] compatible library to parse and load files in [graphviz][graphviz] [DOT (.dot)][dot] (graph description language) format.\n\n## why?\nWhile working on [Java Platform Module System][jpms] migration projects coming with Java 9 (as of August 2017), I am heavily using [jdeps][jdeps] which is generating [DOT (.dot)][dot] files. These are usually visualised using dot tool of [graphviz][graphviz].\n\nIn most cases it is enough, but I wanted to have nicer [D3js][d3js] visualisation and interaction.\n\n## example    \n\nSee sample `summary.dot` file generated by [jdeps][jdeps] visualised using [D3js][d3js] here: [index.html][example]\n\n![](doc/digraph.png \"Sample .dot file generated by jdeps visualised using D3js\")\n\nInspired by Mike Bostock's [Mobile Patent Suits][mbostock]\n\n## usage\n\n```js\nd3.dot(url, callback);\n```\n\nUsage is identical with well known `d3.json([url], [callback])` or `d3.csv([url], [callback])`.\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/gmamaladze/d3-dot-graph@1.0.0/build/d3-dot-graph.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n\nd3.dot(\"/path/to/graph.dot\", function(error, graph) {\n  if (error) throw error;\n  console.log(JSON.stringify(graph, null, true));\n  //{\n  //  \"nodes\": [ {\"id\": \"Myriel\"}, {\"id\": \"Napoleon\"}],\n  //  \"links\": [ {\"source\": \"Myriel\"}, {\"target\": \"Napoleon\"}]\n  //}  \n});\n\n\u003c/script\u003e\n```\n\n## parser\n\nThe parser was generated using [PEG.js][pegjs]. The grammer is taken from here [cpettitt/graphlib-dot](https://github.com/cpettitt/graphlib-dot). Thanks to Chris Pettitt.\n\nYou can also use parser independently from loader and converter.\n\n## build\n\n```shell\nnpm install     #install dependencies and build\nnpm run build   #generate parser, and rollup\n\nrollup -c -w (rollup --config --watch) #very convenient rolls the whenever sources are changed\n```\n\n\n[d3js]: https://www.d3js.org\n[dot]: https://en.wikipedia.org/wiki/DOT_(graph_description_language)\n[pegjs]: https://pegjs.org\n[jpms]: http://openjdk.java.net/projects/jigsaw/spec/sotms\n[jdeps]: https://docs.oracle.com/javase/9/tools/jdeps.htm\n[graphviz]: http://www.graphviz.org\n[mbostock]: http://bl.ocks.org/mbostock/1153292\n[example]: https://cdn.rawgit.com/gmamaladze/d3-dot-graph/cf08847e/example/index.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmamaladze%2Fd3-dot-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgmamaladze%2Fd3-dot-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgmamaladze%2Fd3-dot-graph/lists"}