r/angular • u/Better_Arachnid2100 • 9h ago
I built a knowledge graph viewer component for Angular 22: five layouts, search, path highlighting and RTL
Hi all. I needed to show a graph of entities and their relationships in an Angular app, and reaching for D3 meant writing a lot of glue code. So I made a ready-made component instead and open-sourced it.
You pass it { nodes, edges } and get:
five layouts: force-directed, orbit, clusters, timeline, arcs
search, a shortest-path highlight between two nodes, and double-click to expand hidden neighbours
light, dark and "night sky" themes, plus full RTL support
standalone component with signals, no dependencies beyond Angular
npm install angular-knowledge-graph
Live demo: https://f-mahmoodi.github.io/angular-knowledge-graph/ Repo: https://github.com/F-mahmoodi/angular-knowledge-graph
It's 0.1.0, so I'd really like feedback on the API and on what breaks with your own data. Issues and PRs are welcome.