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

itsrsy/relatives-tree

 
 

Repository files navigation

relatives-tree

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.

Usage

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

📝 JSON data examples

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.6%
  • JavaScript 1.4%