Skip to content

docs(iroh): improve readme#4329

Merged
Frando merged 9 commits into
mainfrom
Frando/readme
Jun 11, 2026
Merged

docs(iroh): improve readme#4329
Frando merged 9 commits into
mainfrom
Frando/readme

Conversation

@Frando

@Frando Frando commented Jun 11, 2026

Copy link
Copy Markdown
Member

Description

The README of the iroh crate is the first thing people see on https://crates.io/crates/iroh or https://lib.rs/iroh, and we should improve it.

Right now it mostly talks about structured events, which is a very minor thing in the grand scheme of things. And it has no code example.

This PR improves the README. Happy to discuss or iterate.

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/4329/docs/iroh/

Last updated: 2026-06-11T14:03:00Z

Comment thread iroh/README.md Outdated
@@ -1,87 +1,149 @@
# iroh

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while we are at it, maybe we should replicate the logo and our badges from the main readme?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: e89baa4

@n0bot n0bot Bot added this to iroh Jun 11, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Jun 11, 2026

@flub flub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! thanks for giving this some attention!

Comment thread iroh/README.md Outdated
Comment thread iroh/README.md Outdated
Comment thread iroh/README.md Outdated
A connection is usually established with the help of a *relay server*. When an
endpoint is created it connects to the closest relay and designates it as its
*home relay*. Other endpoints reach it first through this relay, then both
sides attempt a direct connection using [QUIC Address Discovery][QAD] and hole

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both sides use QUIC Nat Traversal to establish a direct connection.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 changed

Comment thread iroh/README.md Outdated
Comment thread iroh/README.md Outdated
const ALPN: &[u8] = b"iroh-example/echo/0";

#[tokio::main]
async fn main() -> n0_error::Result<()> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to write the example using anyhow here to not scare people away from thinking they have to buy into a weird error lib?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to anyhow

Comment thread iroh/README.md Outdated
Comment thread iroh/README.md
@Frando Frando merged commit 710d03a into main Jun 11, 2026
37 checks passed
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants