---
title: 友链图谱 - 汇聚千丝万缕的联系
abbrlink: ceec80f8
date: "2025-12-05 19:58:57"
updated: "2025-12-05 20:27:22"
desc: 这两天闲着没事，看了看友链，以及友链的友链，还有友链的友链的友链....
categories:
    - 技术
tags:
    - 友链
    - 图谱
    - 联系
cover: /links/图谱.webp
---

## 前言

这两天闲着没事，看了看友链，以及友链的友链，还有友链的友链的友链....

发现兜兜转转发现能够回到我自己的博客，这让我不禁想到了 **[六度理论](https://baike.baidu.com/item/%E5%85%AD%E5%BA%A6%E5%88%86%E9%9A%94%E7%90%86%E8%AE%BA/1086996)** ，为了直观地展示友链的关系，也为了展现web的 **本意** ，我**vibe code**了一个网站，来展现友链的关系

### 友链图谱

友链图谱网址: [https://links.needhelp.icu/](https://links.needhelp.icu/)

Github: [https://github.com/xingwangzhe/FriendLinks](https://github.com/xingwangzhe/FriendLinks)

![友链图谱](/links/图谱.webp)

### 加入网络

很简单，fork仓库，在`links`文件夹下用你的域名作为文件名创建`yml`文件,标准格式如下

```yml
site:
    name: 我的博客
    description: 分享编程和技术相关的文章
    url: https://example.com
    friends:
        - name: 编程小站
          url: https://codehub.example.com
        - name: 技术前沿
          url: https://techfrontier.example.com
```

举个例子，我的网站域名是`xingwangzhe.fun`,那么我的文件名自然就是`xingwangzhe.fun.yml`

![文件结构](/links/结构.webp)

### 找到自己

如果你已经在网络中，可以通过**左上角的搜索**，或者直接以**查询参数**来自动聚焦并**放大高亮**指定站点节点，支持以下格式：

- 使用完整 URL：

    `https://links.needhelp.icu/?local=https://example.com`

- 使用域名（hostname）匹配：

    `https://links.needhelp.icu/?local=example.com`

比如搜索我自己的

[https://links.needhelp.icu/?local=xingwangzhe.fun](https://links.needhelp.icu/?local=xingwangzhe.fun)

[https://links.needhelp.icu/?local=https://xingwangzhe.fun](https://links.needhelp.icu/?local=https://xingwangzhe.fun)

![查询](/links/查询.webp)


---

**作者：**xingwangzhe

**本文链接：**[https://xingwangzhe.fun/posts/ceec80f8/](https://xingwangzhe.fun/posts/ceec80f8/)

本文采用[知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议](https://creativecommons.org/licenses/by-nc-sa/4.0/)进行许可。