You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/app/page.tsx
+49-49Lines changed: 49 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -11,59 +11,59 @@ import { Button } from '@/components/Button'
11
11
12
12
exportdefaultfunctionHome(){
13
13
return(
14
-
<Layout>
15
-
<Articleid="connect"date="">
16
-
<h2>Connect A to B. Send Data.</h2>
17
-
<p>In 2023 It's hard to connect two devices directly. Dumb pipe punches through NATs, using on-the-fly node identifiers, and keeps your machines connected even as network conditions change.</p>
18
-
<p>What you actually <iclassName='italic'>do</i> with that connection is up to you. </p>
<p>get <spanclassName='font-mono'>dumbpipe</span> with a single command on two computers, connect them &pipedatafromonemachinetotheother.Noaccounts.Noconfiguration.</p>
24
-
<h2>Receiver</h2>
25
-
<Codelanguage='bash'>{`
14
+
<Layout>
15
+
<Articleid="connect"date="">
16
+
<h2>Connect A to B. Send Data.</h2>
17
+
<p>In 2023 it's hard to connect two devices directly. Dumb pipe punches through NATs, using on-the-fly node identifiers. It even keeps your machines connected as network conditions change.</p>
18
+
<p>What you actually <iclassName='italic'>do</i> with that connection is up to you. </p>
<p>get <spanclassName='font-mono'>dumbpipe</span> with a single command on two computers, connect them &pipedatafromonemachinetotheother.Noaccounts.Noconfiguration.</p>
24
+
<h2>Receiver</h2>
25
+
<Codelanguage='bash'>{`
26
26
$ dumbpipe listen
27
27
using secret key 23ryys7pgvjrr57pcrvyivdrhvqyykg2tv3leou5grm66xfd7zzq
<p>Dumb pipes are Iroh Connections. The <spanclassName='font-mono'>dumbpipe</span> tool is a <ahref="https://github.com/n0-computer/dumbpipe/blob/main/src/main.rs">200-line wrapper</a> around the <ahref="https://crates.io/crates/iroh-net"className='font-mono'>iroh-net</a> rust crate. You can use the iroh connection layer as a dumb pipe in your own app.</p>
<p>These dumb pipes use QUIC over a magic socket. It may be dumb, but it is still encrypted, and sent over UDP. You can register multiple different handlers with distinct QUIC ALPNs to separate concerns using substreams.</p>
50
-
</Article>
51
-
<Articleid="relay"date="">
52
-
<h2>Sometimes you gotta relay</h2>
53
-
<p>For somewhere around 10-20% of connections, it's simply not possible to connect two devices directly. For those cases, we use a meshed network of relay nodes to pack up UDP traffic &senditoverHTTP.Soundssilly,butitworks.</p>
<p><Linkhref="https://iroh.network">iroh.network</Link> the team behind number zero runs the default relay network, which has a capped bandwidth. High-throughput, authenticated relays are coming to iroh.network in the future.</p>
61
-
</Article>
62
-
<Articleid="need-more"date="">
63
-
<h2>Need more?</h2>
64
-
<p>Need pubsub? Data transfer? Sync? All of these are opt-in-able addons from <Linkhref="https://iroh.computer/docs/layers">iroh</Link>. But if you add these things, the pipe is no longer dumb. You decide how to feel about that.</p>
65
-
</Article>
66
-
</Layout>
35
+
`}</Code>
36
+
<p>This will work, regardless of where the two machines are. Dumb pipe finds a way.</p>
<p>Dumb pipes are Iroh Connections. The <spanclassName='font-mono'>dumbpipe</span> tool is a <ahref="https://github.com/n0-computer/dumbpipe/blob/main/src/main.rs">200-line wrapper</a> around the <ahref="https://crates.io/crates/iroh-net"className='font-mono'>iroh-net</a> rust crate. You can use the iroh connection layer as a dumb pipe in your own app.</p>
<p>These dumb pipes use QUIC over a magic socket. It may be dumb, but it still has all the features of a full QUIC connection: UDP-based, stream-multiplexing and encrypted. Besides using the multiplexed streams you can also use multiple connections each with their own ALPN.</p>
50
+
</Article>
51
+
<Articleid="relay"date="">
52
+
<h2>Sometimes you gotta relay</h2>
53
+
<p>For somewhere around 10-20% of connections, it's simply not possible to connect two devices directly. For those cases, we use a meshed network of relay nodes to pack up UDP traffic &senditoverHTTP.Soundssilly,butitworks.Andthemagicsockethandlesallthisunderthehood.</p>
<p>The team behind number0 runs the default relay network, which has a capped bandwidth. High-throughput, authenticated relays are coming to <Linkhref="https://iroh.network">iroh.network</Link> in the future.</p>
61
+
</Article>
62
+
<Articleid="need-more"date="">
63
+
<h2>Need more?</h2>
64
+
<p>Need pubsub? Data transfer? Sync? All of these are opt-in addons from <Linkhref="https://iroh.computer/docs/layers">iroh</Link>. But if you add these things, the pipe is no longer dumb. You decide how to feel about that.</p>
0 commit comments