Skip to main content

Family Tree UI – Library Planning

This document explores options for building the interactive family tree on the frontend.


🎯 Goal

  • Display a scrollable, zoomable family tree
  • Show member name/photo
  • On click → show basic details
  • Support spouse, parent, children relations
  • Tree should load from backend data structure

🔍 UI Library Options

LibraryProsCons
react-d3-treeMature, zoom/pan, fit to screen, huge usageComplex customization, SVG-only
family-tree.jsPurely for family trees, plug-n-playLess flexible, not maintained
react-family-treeSimple, easy to useWeak docs, needs custom styles
react-flowModern, powerful flow rendererToo generic, needs tweaking
Custom Canvas/SVGFull controlLong effort, not for v1

✅ Likely Choice: react-d3-tree

npm install react-d3-tree