relatives-tree-cjs
TypeScript icon, indicating that this package has built-in type declarations

3.0.1-rc.0 • Public • Published

relatives-tree

A tiny library (~3.21 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.

Usage

🛠 Canvas example
🛠️ React example (react-family-tree source code)
🛠️ Solid example

📝 JSON data examples

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i relatives-tree-cjs

    Weekly Downloads

    1

    Version

    3.0.1-rc.0

    License

    MIT

    Unpacked Size

    176 kB

    Total Files

    137

    Last publish

    Collaborators

    • tanielsen