{"id":13725062,"url":"https://github.com/gram-data/d3-gram","last_synced_at":"2025-08-04T02:06:27.953Z","repository":{"id":57114124,"uuid":"291806781","full_name":"gram-data/d3-gram","owner":"gram-data","description":"D3 support for gram format.","archived":false,"fork":false,"pushed_at":"2021-01-26T11:28:27.000Z","size":4720,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-22T15:46:32.544Z","etag":null,"topics":["d3","d3-gram","gram","gram-format"],"latest_commit_sha":null,"homepage":"https://gram-data.github.io/d3-gram/","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/gram-data.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":"2020-08-31T19:32:33.000Z","updated_at":"2024-03-09T02:34:10.000Z","dependencies_parsed_at":"2022-08-22T02:40:17.180Z","dependency_job_id":null,"html_url":"https://github.com/gram-data/d3-gram","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/gram-data/d3-gram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gram-data%2Fd3-gram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gram-data%2Fd3-gram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gram-data%2Fd3-gram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gram-data%2Fd3-gram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gram-data","download_url":"https://codeload.github.com/gram-data/d3-gram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gram-data%2Fd3-gram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268639706,"owners_count":24282665,"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","status":"online","status_checked_at":"2025-08-04T02:00:09.867Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","d3-gram","gram","gram-format"],"created_at":"2024-08-03T01:02:11.518Z","updated_at":"2025-08-04T02:06:27.898Z","avatar_url":"https://github.com/gram-data.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"D3 support for the [gram](http://gram-data.github.io) text format of graph data. `(a)--\u003e(b)\u003c--(c)`\n\n## How to d3-gram\n\n`d3Gram()` parses text in the gram format, producing a graph of nodes and links that is\nready to be used in a `d3-force` simulation.\n\n``` TypeScript\nimport * as d3 from \"d3\";\nimport {parse, layout, draw, drag, updateNodes, updateLinks} from 'd3-gram';\n\nd3.text(\"https://raw.githubusercontent.com/gram-data/d3-gram/master/public/miserables.gram\").then( gramSource =\u003e {\n\n  let graph = parse(gramSource);\n\n  let simulation = layout(graph);\n\n  const {nodeSelection, linkSelection} = draw(graph, \"svg\");\n\n  nodeSelection.call(drag(simulation));\n\n  simulation.on(\"tick\", () =\u003e {\n    updateNodes(nodeSelection);\n    updateLinks(linkSelection);\n  });\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgram-data%2Fd3-gram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgram-data%2Fd3-gram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgram-data%2Fd3-gram/lists"}