d3 Force Directed Graph example (d3-force) implemented in sveltejs. REPL:
Svelte and D3-force with rectangular collision forces