{"id":15017149,"url":"https://github.com/graphcentral/graph","last_synced_at":"2025-06-13T19:05:59.279Z","repository":{"id":57751559,"uuid":"501723757","full_name":"graphcentral/graph","owner":"graphcentral","description":"Performant graph visualization on the web with WebGL + Webworkers + IndexedDB / https://graphcentral.github.io/graph","archived":false,"fork":false,"pushed_at":"2022-10-15T10:08:31.000Z","size":30883,"stargazers_count":47,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-30T06:56:16.131Z","etag":null,"topics":["force-directed-graph","graph","knowledge-graph","notion","obsidian-md","roamresearch","typescript","webgl","webworker"],"latest_commit_sha":null,"homepage":"https://graphcentral.github.io/graph","language":"TypeScript","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/graphcentral.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":"2022-06-09T16:11:31.000Z","updated_at":"2025-05-21T13:57:17.000Z","dependencies_parsed_at":"2022-08-23T16:40:39.869Z","dependency_job_id":null,"html_url":"https://github.com/graphcentral/graph","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":"9oelM/react-typescript-monorepo-boilerplate","purl":"pkg:github/graphcentral/graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphcentral%2Fgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphcentral%2Fgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphcentral%2Fgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphcentral%2Fgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphcentral","download_url":"https://codeload.github.com/graphcentral/graph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphcentral%2Fgraph/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259704408,"owners_count":22898858,"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":["force-directed-graph","graph","knowledge-graph","notion","obsidian-md","roamresearch","typescript","webgl","webworker"],"created_at":"2024-09-24T19:49:57.491Z","updated_at":"2025-06-13T19:05:59.252Z","avatar_url":"https://github.com/graphcentral.png","language":"TypeScript","readme":"# `@graphcentral/graph`\n\n```bash\nnpm i --save @graphcentral/graph\n```\n\n![logo](./logo.png)\n\n## Demo\n\n👉 \"5K nodes + 5K links\": https://graphcentral.github.io/graph?graph_data=5000\n\n👉 \"50K nodes + 50K links\": https://graphcentral.github.io/graph?graph_data=big\n\n👉 \"100K nodes + 100K links\" (apprent degradation in performance expected): https://graphcentral.github.io/graph?graph_data=huge\n\n👉 \"Notion official help docs\" (runs force layout algorithm on the browser): https://graphcentral.github.io/graph?graph_data=notion_docs\n\n## Visualizing Notion pages \n\nYou can visualize Notion pages on force layout graph using this library and `@graphcentral/notion` together.. Check out [@graphcentral/notion](https://github.com/graphcentral/notion).\n\n## What you can get\n\nExample of a knowledge graph of Notion Help docs:\n![example0.png](./example0.png)\n\n## How to\n\nSimplest example:\n```ts\nimport { KnowledgeGraph } \"@graphcentral/graph\"\n\nconst canvasElement = document.createElement(`canvas`)\ndocument.body.appendChild(canvasElement)\n\nconst { nodes, links } = await fetch(\n  `https://raw.githubusercontent.com/9oelM/datastore/main/notion-help-docs.json`\n).then((resp) =\u003e resp.json())\n\nif (!nodes || !links) {\n  // error\n  return\n}\n\nconst knowledgeGraph = new KnowledgeGraph({\n    nodes: nodes,\n    links: links,\n    canvasElement,\n    options: {\n      optimization: {\n        useParticleContainer: false,\n        useShadowContainer: false,\n        showEdgesOnCloseZoomOnly: true,\n        useMouseHoverEffect: true,\n        maxTargetFPS: 60,\n      },\n      graph: {\n        runForceLayout: true,\n        customFont: {\n          url: `https://fonts.googleapis.com/css2?family=Do+Hyeon\u0026display=swap`,\n          config: {\n            fill: 0xffffff,\n            fontFamily: `Do Hyeon`,\n          },\n        },\n      },\n    },\n  })\nknowledgeGraph.createNetworkGraph()\n```\n\nFor more complicated example using `@graphcentral/graph`, visit `packages/example`. More docs, and interactive demo to come (contributions are most welcome).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphcentral%2Fgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphcentral%2Fgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphcentral%2Fgraph/lists"}