{"id":15650148,"url":"https://github.com/jexp/neo4j-graphviz","last_synced_at":"2025-04-30T17:41:01.209Z","repository":{"id":57309873,"uuid":"83175182","full_name":"jexp/neo4j-graphviz","owner":"jexp","description":"minimal javascript library/tool to generate graphviz visualization from a neo4j cypher query","archived":false,"fork":false,"pushed_at":"2022-05-11T12:36:14.000Z","size":65,"stargazers_count":36,"open_issues_count":6,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T18:22:58.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jexp.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}},"created_at":"2017-02-26T01:36:59.000Z","updated_at":"2024-09-09T06:21:39.000Z","dependencies_parsed_at":"2022-09-08T05:21:50.564Z","dependency_job_id":null,"html_url":"https://github.com/jexp/neo4j-graphviz","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fneo4j-graphviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fneo4j-graphviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fneo4j-graphviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jexp%2Fneo4j-graphviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jexp","download_url":"https://codeload.github.com/jexp/neo4j-graphviz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249194591,"owners_count":21228032,"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":[],"created_at":"2024-10-03T12:33:36.646Z","updated_at":"2025-04-18T20:31:30.209Z","avatar_url":"https://github.com/jexp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neo4j-graphviz\n\nMinimal Javascript library/tool for generating *dot* and graphviz renderings from a Neo4j Cypher query.\n\nUses these libraries\n\n* neo4j-driver\n* graphviz\n\n## Command Linse Usage\n\n### Minimal:\n\n`node render.js password`\n\nWill write a graph.jpg based on `MATCH path = (a)-[r]-\u003e(b) RETURN path`\n\n### Syntax\n\n```\ncat query.cypher | node render.js password [file.png/svg/jpg] [renderer]\n```\n\n\n### Example:\n\nFrom the [Oscars Graph](http://gist.asciidoctor.org/?dropbox-14493611/oscars.adoc).\n\n```\necho 'MATCH  path = (n:Nominee {name:\"Meryl Streep\"})\u003c-[:NOMINATED]-(a:Nomination)--\u003e() RETURN path' | node render.js '****' oscars.svg neato\n```\n\n![](https://rawgithub.com/jexp/neo4j-graphviz/master/oscars.svg)\n\n\n## Programmatic Usage\n\nsee also `express-test.js`\n\n```\nvar ng = require(\"neo4j-graphviz\");\n\napp.get('/', function(req, res){\n  var type = \"svg\";\n  ng.renderGraph(\"bolt://localhost\",\"neo4j\", pwd, req.param(\"query\"), \"neato\", type, function(error,data) {\n    if (error) res.status(500).send(error);\n    else {\n      res.type(type).send(data);\n    }\n  });\n});```\n\n## Heroku deployment\n\nhttps://elements.heroku.com/buildpacks/weibeld/heroku-buildpack-graphviz\n\n```\nheroku apps:create \u003capp-name\u003e\nheroku buildpacks:add https://github.com/weibeld/heroku-buildpack-graphviz\n\nheroku config:set NEO4J_URL=\"neo4j+s://demo.neo4jlabs.com\" NEO4J_USER=movies NEO4J_PASSWORD=movies NEO4J_DATABASE=movies\nheroku config:set GRAPHVIZ=/app/.heroku-buildpack-graphviz/usr/bin\n\ngit push heroku master\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexp%2Fneo4j-graphviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjexp%2Fneo4j-graphviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjexp%2Fneo4j-graphviz/lists"}