Skip to content

A tiny library for calculating specific JSON data to family tree nodes and connectors 🌳

License

Notifications You must be signed in to change notification settings

SanichKotikov/relatives-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

90af932 Β· Mar 16, 2025
Oct 9, 2023
Mar 16, 2025
Mar 16, 2025
Oct 9, 2023
Mar 16, 2025
Mar 16, 2025
Mar 16, 2025
Jul 18, 2022
Mar 16, 2025
Mar 16, 2025
May 10, 2020
Jul 10, 2024
Mar 16, 2025
Mar 16, 2025
Mar 16, 2025
Mar 16, 2025
Mar 16, 2025

Repository files navigation

relatives-tree

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.

Usage

πŸ›  Canvas example
πŸ› οΈ React example (react-family-tree source code)
πŸ› οΈ Solid example

πŸ“ JSON data examples.

Contributing

Please read this documentation before contributing.