Relationship

A web tool for quickly generating character relationship diagrams from text input, using D3.js and Mermaid to visualize complex relationships in novels.

Check out Relationship on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

读小说时,有时候人物关系比较复杂,需要绘制人物关系图。手动绘制比较麻烦,如果能 “仅输入人物关系的文本,即可出图” 就方便很快。所以开发了Relationship网站,基于D3.js和Mermaid,可以绘制两种人物关系图。### 输入文本举例:李雷和韩梅梅是夫妻李雷和李杰是父子韩梅梅和李杰是母子李杰和李鹏是父子李雷和李鹏是爷孙韩梅梅和李鹏是奶孙李雷和徐婷是公公韩梅梅和徐婷是婆媳李杰和徐婷是夫妻### 输出结果如下图:<img width="1617" alt="Image" src="https://github.com/user-attachments/assets/dcecd9f7-236b-45c7-adb3-568c0e47b761" />网址:https://cunzaizhuyi.github.io/relationship-ai/index.html