A tiny library (~3.23 kB br) for calculating specific JSON data to family tree nodes and connectors.
π₯ Here is a demo app with React rendering.
import calcTree from 'relatives-tree';
const tree = calcTree(json, { rootId });
The nodes & the connectors are simple JS objects, so you can use any rendering layer.
π Canvas example
π οΈ React example (react-family-tree source code)
π οΈ Solid example
π JSON data examples.
Please read this documentation before contributing.