登录 注册
其他 does-anyone-read-theseholepunchingmemesmultipathp2pquic
12,973
Stars
765
Forks
100
Watchers
202
Open Issues
Apache-2.0
许可证
Rust
语言
2022-03-14
创建时间
2026-11-10
最近更新

项目能做什么

通过公钥寻址为应用程序提供 QUIC 协议和 NAT 穿透功能的网络库。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<h1 align="center"><a href="https://iroh.computer"><img alt="iroh" src="./.img/iroh_wordmark.svg" width="100" /></a></h1>

<h3 align="center">
less net work for networks
</h3>

[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square)](https://docs.rs/iroh/)
[![Crates.io](https://img.shields.io/crates/v/iroh.svg?style=flat-square)](https://crates.io/crates/iroh)
[![downloads](https://img.shields.io/crates/d/iroh.svg?style=flat-square)](https://crates.io/crates/iroh)
[![Chat](https://img.shields.io/discord/1161119546170687619?logo=discord&style=flat-square)](https://discord.com/invite/DpmJgtU7cW)
[![Youtube](https://img.shields.io/badge/YouTube-red?logo=youtube&logoColor=white&style=flat-square)](https://www.youtube.com/@n0computer)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](LICENSE-MIT)
[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](LICENSE-APACHE)
[![CI](https://img.shields.io/github/actions/workflow/status/n0-computer/iroh/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/n0-computer/iroh/actions/workflows/ci.yml)

<div align="center">
  <h3>
    <a href="https://iroh.computer/docs">
      Docs Site
    </a>
    <span> | </span>
    <a href="https://docs.rs/iroh">
      Rust Docs
    </a>
  </h3>
</div>
<br/>

## What is iroh?

Iroh gives you an API for dialing by public key.
You say “connect to that phone”, iroh will find & maintain the fastest connection for you, regardless of where it is.

### Hole-punching

The fastest route is a direct connection, so if necessary, iroh tries to hole-punch.
Should this fail, it can fall back to an open ecosystem of public relay servers.
To ensure these connections are as fast as possible, we [continuously measure iroh][iroh-perf].

### Built on [QUIC]

Iroh uses [noq] to establish [QUIC] connections between endpoints.
This way you get authenticated encryption, concurrent streams with stream priorities, a datagram transport and avoid head-of-line-blocking out of the box.

## Compose Protocols

Use pre-existing protocols built on iroh instead of writing your own:
- [iroh-blobs] for [BLAKE3]-based content-addressed blob transfer scaling from kilobytes to terabytes
- [iroh-gossip] for establishing publish-subscribe overlay networks that scale, requiring only resources that your average phone can handle
- [iroh-docs] for an eventually-consistent key-value store of [iroh-blobs] blobs

## Getting Started

### Rust Library

It's easiest to use iroh from rust.
Install it using `cargo add iroh`, then on the connecting side:

```rs
const ALPN: &[u8] = b"iroh-example/echo/0";

let endpoint = Endpoint::bind().await?;

// Open a connection to the accepting endpoint
let conn = endpoint.connect(addr, ALPN).await?;

// Open a bidirectional QUIC stream
let (mut send, mut recv) = conn.open_bi().await?;

// Send some data to be echoed
send.write_all(b"Hello, world!").await?;
send.fin
阅读完整原文

项目深度分析 AI 生成

商业化托管型 Iroh Relay 与穿透加速服务

产品构想基于 iroh-relay 部署全球分布式多区域中继与打洞辅助节点,为商业 App 提供打洞失败保底的高速带宽转发与连通率监控 SLA。
核心功能全球Anycast Relay网络、穿透率分析看板、带宽用量计费与超额控制、企业级SLA保障。
目标用户使用 iroh 构建商业客户端产品、需要稳定连接率且不想自建维护 relay 节点的开发团队。
难度/周期中等 · 1-2个月 · 成本:全球基础VPS节点与出网带宽成本(约 $200-$500/月)。
收费模式免费额度 + 阶梯流量包月/按用量计费(如每月包含 50GB 免费中继流量,超出按每 GB 计费)。
竞争风险Relay 消耗高带宽成本,若直连打洞失败率高可能导致流量成本倒挂;需防范滥用。
依据 已验证事实

跨设备 Local-first 同步与备份桌面/移动工具

产品构想利用 iroh-blobs 和 iroh-docs 构建免配置、端到端加密的点对点个人/小团队文件传输与同步盘工具。
核心功能设备公钥配对、无公网IP双端同步、增量文件传输、大文件断点续传。
目标用户注重隐私的个人、极客开发者、分布式小型办公团队。
难度/周期较高 · 3-4个月 · 成本:开发环境、应用签名证书费用(约 $100-$300/年)。
收费模式买断制(桌面端许可证)或高级增值功能(多设备组同步、云端常驻冷备节点)。
竞争风险桌面/移动端生态存在 Syncthing、Tailscale 等成熟竞品,客户端易用性打磨工作量大。
依据 AI推测

轻量级远程 IoT / 边缘设备访问与管理网关

产品构想将 iroh 封装为极简的嵌入式守护进程与 Web 控制台,为工业/边缘硬件提供免公网 IP 的反向 Shell、日志抓取及固件 P2P 分发服务。
核心功能设备端单二进制快速接入、Web端终端直连、基于iroh-blobs的固件P2P推送、多租户鉴权管理。
目标用户IoT 方案提供商、边缘计算运维人员、树莓派/嵌入式设备玩家。
难度/周期中等 · 2-3个月 · 成本:管理控制台云服务器成本(约 $50/月)。
收费模式按受控设备数量订阅收费(如免费支持5台设备,超出按台/月付费)。
竞争风险需与成熟的远程维护软件竞争(如 Tailscale, Remote.it),需要聚焦在低开销与P2P大文件分发差异化点。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建于 2022-03-14,近 30 天仍在推送,发布过 74 个 Release
社区活跃Star 12,973 / Fork 765 / Issue 202(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。