Skip to content

About

Ruby toolkit for exploring, visualising, and analysing genealogy data.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Treecreeper

Treecreeper logo

Introduction

Treecreeper is a Ruby toolkit for exploring and visualising genealogy data.

It can import GEDCOM files, browse family trees, query their data, and generate visual representations of genealogical relationships and structures.

Requirements

  • Ruby 3.4.8

Try it now!

First, clone the repository:

git clone https://github.com/bloa/treecreeper.git
cd treecreeper

To use Treecreeper, you can either use the Ruby interpreter (ruby treecreeper) or call it directly (./treecreeper) by making the script executable:

chmod +x treecreeper

If you have a GEDCOM file, you can import it:

ruby treecreeper import family.ged > family.yaml

By default, Treecreeper uses the first individual in the file as the root. To specify a different root, provide one or more query terms:

ruby treecreeper import family.ged [YOUR NAME] > family.yaml

Treecreeper comes with two example files:

Here are some examples of flowchart outputs:

ruby treecreeper flowchart data/lagrange.yaml --max-depth 3 --format mermaid
flowchart
classDef root stroke:#0f0
  lagrange_1["Joseph Louis Lagrange"]
  lagrange_1:::root
  click lagrange_1 "https://en.wikipedia.org/wiki/Joseph-Louis_Lagrange" _blank
  lagrange_10["Leonhard Euler"]
  click lagrange_10 "https://en.wikipedia.org/wiki/Leonhard_Euler" _blank
  lagrange_100["Johann Bernoulli"]
  click lagrange_100 "https://en.wikipedia.org/wiki/Johann_Bernoulli" _blank
  lagrange_1 --> lagrange_10
  lagrange_10 --> lagrange_100
Loading
ruby treecreeper flowchart data/lagrange.yaml --roots poisson,lagrange,laplace --max-nodes 10 --format mermaid
flowchart
classDef root stroke:#0f0
  poisson_1["Siméon Denis Poisson"]
  poisson_1:::root
  click poisson_1 "https://en.wikipedia.org/wiki/Sim%C3%A9on_Denis_Poisson" _blank
  lagrange_1["Joseph Louis Lagrange"]
  lagrange_1:::root
  click lagrange_1 "https://en.wikipedia.org/wiki/Joseph-Louis_Lagrange" _blank
  laplace_1["Pierre-Simon Laplace"]
  laplace_1:::root
  click laplace_1 "https://en.wikipedia.org/wiki/Pierre-Simon_Laplace" _blank
  lagrange_10["Leonhard Euler"]
  click lagrange_10 "https://en.wikipedia.org/wiki/Leonhard_Euler" _blank
  lagrange_100010["Gottfried Wilhelm Leibniz"]
  click lagrange_100010 "https://en.wikipedia.org/wiki/Gottfried_Wilhelm_Leibniz" _blank
  lagrange_100010100001["Nicolaus Copernicus"]
  click lagrange_100010100001 "https://en.wikipedia.org/wiki/Nicolaus_Copernicus" _blank
  lagrange_1000103["Christiaan Huygens"]
  click lagrange_1000103 "https://en.wikipedia.org/wiki/Christiaan_Huygens" _blank
  lagrange_1000000001000000000000010["Omar Khayyam"]
  click lagrange_1000000001000000000000010 "https://en.wikipedia.org/wiki/Omar_Khayyam" _blank
  lagrange_10000000001["Desiderius Erasmus"]
  click lagrange_10000000001 "https://en.wikipedia.org/wiki/Erasmus" _blank
  lagrange_100000000100000000000001000["Avicenna"]
  click lagrange_100000000100000000000001000 "https://en.wikipedia.org/wiki/Avicenna" _blank
  poisson_1 --> lagrange_1
  poisson_1 --> laplace_1
  lagrange_1 --> lagrange_10
  laplace_1 -.->|+4| lagrange_100010
  lagrange_10 -.->|+3| lagrange_100010
  lagrange_100010 -.->|+5| lagrange_100010100001
  lagrange_100010 --> lagrange_1000103
  lagrange_100010100001 -.->|+14| lagrange_1000000001000000000000010
  lagrange_1000103 -.->|+7| lagrange_10000000001
  lagrange_1000000001000000000000010 -.->|+1| lagrange_100000000100000000000001000
  lagrange_10000000001 -.->|+16| lagrange_1000000001000000000000010
Loading
ruby treecreeper flowchart data/harcourt.yaml --min-weight -1 --max-depth 4 --format mermaid
flowchart
classDef root stroke:#0f0
classDef father stroke:#00f
classDef mother stroke:#f00
  1["Philippe d'Harcourt"]
  1:::root
  click 1 "https://fr.wikipedia.org/wiki/Philippe_d'Harcourt" _blank
  2["Jean V d'Harcourt"]
  2:::father
  click 2 "https://fr.wikipedia.org/wiki/Jean_V_d'Harcourt" _blank
  3["Blanche de Ponthieu"]
  3:::mother
  click 3 "https://en.wikipedia.org/wiki/Blanche_of_Ponthieu" _blank
  4["Jean IV d'Harcourt"]
  4:::father
  click 4 "https://fr.wikipedia.org/wiki/Jean_IV_d'Harcourt" _blank
  5["Isabeau Larchevêque"]
  5:::mother
  6["Jean II d'Aumale"]
  6:::father
  7["Catherine d'Artois"]
  7:::mother
  8["Jean III d'Harcourt"]
  8:::father
  click 8 "https://fr.wikipedia.org/wiki/Jean_III_d'Harcourt" _blank
  9["Alix de Brabant"]
  9:::mother
  click 9 "https://fr.wikipedia.org/wiki/Alix_de_Brabant" _blank
  10["Jean Ier Larchevêque"]
  10:::father
  11["Marguerite de Meslay"]
  11:::mother
  12["Jean Ier d'Aumale"]
  12:::father
  click 12 "https://en.wikipedia.org/wiki/John_I,_Count_of_Aumale" _blank
  13["Ide de Meulan"]
  13:::mother
  14["Philippe d'Artois"]
  14:::father
  click 14 "https://en.wikipedia.org/wiki/Philip_of_Artois" _blank
  15["Blanche de Bretagne"]
  15:::mother
  click 15 "https://en.wikipedia.org/wiki/Blanche_of_Brittany" _blank
  1 --> 2
  1 --> 3
  2 --> 4
  2 --> 5
  3 --> 6
  3 --> 7
  4 --> 8
  4 --> 9
  5 --> 10
  5 --> 11
  6 --> 12
  6 --> 13
  7 --> 14
  7 --> 15
Loading
ruby treecreeper flowchart data/harcourt.yaml --max-nodes 15 --format mermaid
flowchart
classDef root stroke:#0f0
classDef father stroke:#00f
classDef mother stroke:#f00
classDef saint stroke:#ffd700
  1["Philippe d'Harcourt"]
  1:::root
  click 1 "https://fr.wikipedia.org/wiki/Philippe_d'Harcourt" _blank
  72["Henri II de Brabant"]
  72:::father
  click 72 "https://en.wikipedia.org/wiki/Henry_II_of_Brabant" _blank
  48["Ferdinand III of Castile <br>(the Saint)"]
  48:::saint
  click 48 "https://en.wikipedia.org/wiki/Ferdinand_III_of_Castile" _blank
  100["Simon IV de Montfort"]
  100:::father
  click 100 "https://en.wikipedia.org/wiki/Simon_de_Montfort,_5th_Earl_of_Leicester" _blank
  56["Robert Ier d'Artois <br>(le Bon)"]
  56:::father
  click 56 "https://en.wikipedia.org/wiki/Robert_I_of_Artois" _blank
  122["Thibaut Ier <br>(le Chansonnier)"]
  122:::father
  click 122 "https://en.wikipedia.org/wiki/Theobald_I_of_Navarre" _blank
  62["Henry III of England"]
  62:::father
  click 62 "https://en.wikipedia.org/wiki/Henry_III_of_England" _blank
  63["Éléonore de Provence"]
  63:::saint
  click 63 "https://en.wikipedia.org/wiki/Eleanor_of_Provence" _blank
  96["Alfonso IX of León"]
  96:::father
  click 96 "https://en.wikipedia.org/wiki/Alfonso_IX_of_Le%C3%B3n" _blank
  97["Berengaria of Castile"]
  97:::mother
  click 97 "https://en.wikipedia.org/wiki/Berengaria_of_Castile" _blank
  112["Louis VIII <br>(le Lion)"]
  112:::father
  click 112 "https://en.wikipedia.org/wiki/Louis_VIII_of_France" _blank
  113["Blanche de Castile"]
  113:::mother
  click 113 "https://en.wikipedia.org/wiki/Blanche_of_Castile" _blank
  124["John <br>(LackLand)"]
  124:::father
  click 124 "https://en.wikipedia.org/wiki/John,_King_of_England" _blank
  125["Isabelle d'Angoulême"]
  125:::mother
  click 125 "https://en.wikipedia.org/wiki/Isabella_of_Angoul%C3%AAme" _blank
  126["Raimond-Bérenger V de Provence"]
  126:::father
  click 126 "https://en.wikipedia.org/wiki/Ramon_Berenguer_V,_Count_of_Provence" _blank
  1 -.->|+5| 72
  1 -.->|+4| 48
  1 -.->|+5| 100
  1 -.->|+4| 56
  1 -.->|+5| 122
  1 -.->|+4| 62
  1 -.->|+4| 63
  48 --> 96
  48 --> 97
  56 --> 112
  56 --> 113
  62 --> 124
  62 --> 125
  63 --> 126
Loading
ruby treecreeper flowchart data/harcourt.yaml --query king,queen --format mermaid
flowchart
classDef root stroke:#0f0
classDef father stroke:#00f
classDef mother stroke:#f00
classDef saint stroke:#ffd700
  1["Philippe d'Harcourt"]
  1:::root
  click 1 "https://fr.wikipedia.org/wiki/Philippe_d'Harcourt" _blank
  48["Ferdinand III of Castile <br>(the Saint)"]
  48:::saint
  click 48 "https://en.wikipedia.org/wiki/Ferdinand_III_of_Castile" _blank
  49["Jeanne de Dammartin"]
  49:::mother
  click 49 "https://en.wikipedia.org/wiki/Joan_of_Ponthieu" _blank
  112["Louis VIII <br>(le Lion)"]
  112:::father
  click 112 "https://en.wikipedia.org/wiki/Louis_VIII_of_France" _blank
  113["Blanche de Castile"]
  113:::mother
  click 113 "https://en.wikipedia.org/wiki/Blanche_of_Castile" _blank
  62["Henry III of England"]
  62:::father
  click 62 "https://en.wikipedia.org/wiki/Henry_III_of_England" _blank
  63["Éléonore de Provence"]
  63:::saint
  click 63 "https://en.wikipedia.org/wiki/Eleanor_of_Provence" _blank
  96["Alfonso IX of León"]
  96:::father
  click 96 "https://en.wikipedia.org/wiki/Alfonso_IX_of_Le%C3%B3n" _blank
  97["Berengaria of Castile"]
  97:::mother
  click 97 "https://en.wikipedia.org/wiki/Berengaria_of_Castile" _blank
  124["John <br>(LackLand)"]
  124:::father
  click 124 "https://en.wikipedia.org/wiki/John,_King_of_England" _blank
  125["Isabelle d'Angoulême"]
  125:::mother
  click 125 "https://en.wikipedia.org/wiki/Isabella_of_Angoul%C3%AAme" _blank
  1 -.->|+4| 48
  1 -.->|+4| 49
  1 -.->|+5| 112
  1 -.->|+5| 113
  1 -.->|+4| 62
  1 -.->|+4| 63
  48 --> 96
  48 --> 97
  62 --> 124
  62 --> 125
Loading

Commands

Treecreeper is a Ruby project. The command-line interface is available through the treecreeper executable at the root of the repository.

ruby treecreeper --help
Usage: treecreeper COMMAND [OPTIONS]

Available commands:
  Data:
    import       Convert a GEDCOM file into Treecreeper format
    export       Export a Treecreeper tree to another format
    validate     Check a family tree for structural inconsistencies (TODO)

  Exploration:
    browse       Interactively browse a family tree

  Visualization:
    flowchart    Visualize selected people and their relationships
    network      Visualize the overall structure of a family tree (TODO)
    stats        Compute statistics about a family tree (TODO)

  Debugging:
    debug        Debug and inspect Treecreeper data

Run `treecreeper COMMAND --help` for command-specific help.

AI Disclaimer

This project is developed by humans, for humans. Contributions are welcome, but if you intend to submit LLM-generated code, please consider maintaining your own fork instead.

About

Ruby toolkit for exploring, visualising, and analysing genealogy data.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages