A tiny library (~3.5 kB gz) 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