{"id":16923319,"url":"https://github.com/sanichkotikov/relatives-tree","last_synced_at":"2025-04-10T00:16:36.035Z","repository":{"id":45783097,"uuid":"163211741","full_name":"SanichKotikov/relatives-tree","owner":"SanichKotikov","description":"A tiny library for calculating specific JSON data to family tree nodes and connectors 🌳","archived":false,"fork":false,"pushed_at":"2025-03-23T20:39:25.000Z","size":1072,"stargazers_count":50,"open_issues_count":4,"forks_count":22,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T03:36:05.558Z","etag":null,"topics":["es6-modules","family-tree","familytree","graph-algorithms","no-dependencies","npm-module","npm-package","vanillajs"],"latest_commit_sha":null,"homepage":"https://sanichkotikov.github.io/react-family-tree-example/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SanichKotikov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-26T19:36:14.000Z","updated_at":"2025-04-01T10:03:04.000Z","dependencies_parsed_at":"2024-06-19T01:49:00.346Z","dependency_job_id":"c85bce69-6739-4a48-9bad-cd63a7b84bb9","html_url":"https://github.com/SanichKotikov/relatives-tree","commit_stats":{"total_commits":114,"total_committers":2,"mean_commits":57.0,"dds":0.00877192982456143,"last_synced_commit":"e7b043cd7914e8632a2dff73e8288b7942bb31e4"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Frelatives-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Frelatives-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Frelatives-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanichKotikov%2Frelatives-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SanichKotikov","download_url":"https://codeload.github.com/SanichKotikov/relatives-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131315,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es6-modules","family-tree","familytree","graph-algorithms","no-dependencies","npm-module","npm-package","vanillajs"],"created_at":"2024-10-13T19:58:39.528Z","updated_at":"2025-04-10T00:16:36.027Z","avatar_url":"https://github.com/SanichKotikov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# relatives-tree\n\nA tiny library (~3.23 kB) for calculating JSON data to family tree nodes and connectors.\n\n🖥 [DEMO APP](https://sanichkotikov.github.io/react-family-tree-example/)\n\n## Installation\n\n```bash\nnpm i relatives-tree\n```\n\n## Usage\n\n```typescript\nimport calcTree, { type Node } from 'relatives-tree';\n\nconst nodes: Node[] = [\n  {\n    id: \"1\",\n    gender: \"male\",\n    spouses: [],\n    siblings: [],\n    parents: [],\n    children: [\n      { id: \"2\", type: \"blood\" },\n      { id: \"3\", type: \"blood\" }\n    ]\n  },\n  {\n    id: \"2\",\n    gender: \"female\",\n    spouses: [],\n    siblings: [],\n    parents: [{ id: \"1\", type: \"blood\" }],\n    children: []\n  },\n  {\n    id: \"3\",\n    gender: \"male\",\n    spouses: [],\n    siblings: [],\n    parents: [{ id: \"1\", type: \"blood\" }],\n    children: []\n  }\n];\n\nconst tree = calcTree(nodes, { rootId: \"1\" });\n\nrender(tree);\n```\n\n## Rendering Examples\n\n🛠 [Canvas example](/docs)  \n🛠️ [React example](https://github.com/SanichKotikov/react-family-tree)  \n🛠️ [Solid example](https://github.com/SanichKotikov/solid-family-tree-example)\n\n## Input Data Structure\n\n📝 [JSON EXAMPLES](/samples)\n\n## Contributing\n\nPlease read [this documentation](https://github.com/SanichKotikov/contributing) before contributing.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanichkotikov%2Frelatives-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanichkotikov%2Frelatives-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanichkotikov%2Frelatives-tree/lists"}