|
10 | 10 | <body> |
11 | 11 | <header> |
12 | 12 | <h1>iroh-blobs in the browser</h1> |
13 | | - <a |
14 | | - href="https://github.com/n0-computer/iroh-blobs/tree/main/examples/wasm" |
15 | | - target="_blank" |
16 | | - > |
17 | | - Source code |
18 | | - </a> |
19 | 13 | <p> |
20 | | - This example runs iroh-blobs in the browser, compiled to web |
21 | | - assembly. The example implements the most basic demo for |
22 | | - iroh-blobs: You can create a blob with text in it. We'll print a |
23 | | - ticket with which others can fetch the text. |
| 14 | + This example runs |
| 15 | + <a |
| 16 | + href="https://github.com/n0-computer/iroh-blobs" |
| 17 | + target="_blank" |
| 18 | + >iroh-blobs</a |
| 19 | + > |
| 20 | + in the browser, compiled to WebAssembly. The example implements |
| 21 | + a very basic demo for iroh-blobs: You can create a blob with |
| 22 | + text in it. We'll print a ticket with which others can fetch the |
| 23 | + text. There's also a terminal app that interoperates with this |
| 24 | + browser app. |
24 | 25 | </p> |
25 | 26 | <p> |
26 | | - The example is implemented both for the browser and for the |
27 | | - command line, and the two can interop! |
28 | | - </p> |
29 | | - <p> |
30 | | - How to test for real: Open this page in a new tab, or on another |
31 | | - device, and copy over the ticket after importing a blog. You can |
32 | | - also fetch a blob from the command line with |
33 | | - <code>cargo run --features cli</code> from the |
34 | | - <code>examples/wasm</code> folder. |
| 27 | + <strong>Usage:</strong> Open this page in a new tab, or on |
| 28 | + another device, and copy over the ticket after importing a blog. |
| 29 | + You can also fetch a blob from the command line: Clone the |
| 30 | + <a |
| 31 | + href="https://github.com/n0-computer/iroh-examples/" |
| 32 | + target="_blank" |
| 33 | + >iroh-examples</a |
| 34 | + > |
| 35 | + repo, navigate to <code>browser-blobs</code>, and run the CLI |
| 36 | + with <code>cargo run --features cli</code>. |
35 | 37 | </p> |
36 | 38 | </header> |
37 | 39 | <div class="forms"> |
|
0 commit comments