This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 35 files changed +297
-121
lines changed
browser-add-readable-stream
browser-sharing-node-across-tabs
http-client-browser-pubsub
http-client-bundle-webpack
types-use-ipfs-from-typed-js Expand file tree Collapse file tree 35 files changed +297
-121
lines changed Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 18
18
·
19
19
<a href="https://codesandbox.io/">View Demo</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
22
22
·
23
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
23
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
24
24
</p >
25
25
26
26
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
36
36
- [ A word on circuit relay addresses] ( #a-word-on-circuit-relay-addresses )
37
37
- [ Step-by-Step example] ( #step-by-step-example )
38
38
- [ 1. Configure and run the js or go ipfs node] ( #1-configure-and-run-the-js-or-go-ipfs-node )
39
- - [ Setting up a ` go-ipfs ` node] ( #setting-up-a-go-ipfs-node )
40
- - [ Setting up a ` js-ipfs ` node] ( #setting-up-a-js-ipfs-node )
41
- - [ Starting the relay node] ( #starting-the-relay-node )
39
+ - [ Setting up a ` go-ipfs ` node] ( #setting-up-a-go-ipfs-node )
40
+ - [ Setting up a ` js-ipfs ` node] ( #setting-up-a-js-ipfs-node )
41
+ - [ Starting the relay node] ( #starting-the-relay-node )
42
42
- [ 2. Configure and run the bundled example] ( #2-configure-and-run-the-bundled-example )
43
43
- [ 3. Connect the two browser nodes to the circuit relay] ( #3-connect-the-two-browser-nodes-to-the-circuit-relay )
44
44
- [ 4. Dial the two browser nodes using a ` /p2p-circuit ` address] ( #4-dial-the-two-browser-nodes-using-a-p2p-circuit-address )
@@ -86,7 +86,6 @@ In p2p networks there are many cases where two nodes can't talk to each other di
86
86
87
87
#### How does circuit relay work?
88
88
89
-
90
89
Here is a simple diagram depicting how a typical circuit-relay connection might look:
91
90
92
91
```
@@ -367,12 +366,12 @@ const ipfs = await IPFS.create({
367
366
relay: {
368
367
enabled: true ,
369
368
hop: {
370
- enabled: true
371
- }
369
+ enabled: true ,
370
+ },
372
371
},
373
372
config: {
374
- Bootstrap: []
375
- }
373
+ Bootstrap: [],
374
+ },
376
375
});
377
376
```
378
377
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 33
33
"devDependencies" : {
34
34
"@playwright/test" : " ^1.12.3" ,
35
35
"playwright" : " ^1.12.3" ,
36
- "parcel" : " 2.0.0-beta.2 " ,
36
+ "parcel" : " latest " ,
37
37
"rimraf" : " ^3.0.2" ,
38
38
"ipfs" : " ^0.55.4" ,
39
39
"test-util-ipfs-example" : " ^1.0.2"
Original file line number Diff line number Diff line change 4
4
</a >
5
5
</p >
6
6
7
- <h3 align =" center " ><b >Custom IPFS repo </b ></h3 >
7
+ <h3 align =" center " ><b >Tutorial 101 </b ></h3 >
8
8
9
9
<p align =" center " >
10
- <b><i>How to customize a IPFS repository </i></b>
10
+ <b><i>Demo of "Using go-ipfs as a library" with js-ipfs </i></b>
11
11
<br />
12
12
<br />
13
13
<img src="https://raw.githubusercontent.com/jlord/forkngo/gh-pages/badges/cobalt.png" width="200">
16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
@@ -124,7 +124,7 @@ async function main() {
124
124
125
125
const fileAdded = await node .add ({
126
126
path: " hello.txt" ,
127
- content: " Hello World 101"
127
+ content: " Hello World 101" ,
128
128
});
129
129
130
130
console .log (" Added file:" , fileAdded .path , fileAdded .cid );
@@ -158,7 +158,7 @@ async function main() {
158
158
159
159
const fileAdded = await node .add ({
160
160
path: " hello.txt" ,
161
- content: " Hello World 101"
161
+ content: " Hello World 101" ,
162
162
});
163
163
164
164
console .log (" Added file:" , fileAdded .path , fileAdded .cid );
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
Original file line number Diff line number Diff line change 16
16
·
17
17
<a href="https://codesandbox.io/">View Demo</a>
18
18
·
19
- <a href="https://github.com/ipfs/js-ipfs/issues">Report Bug</a>
19
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Report Bug</a>
20
20
·
21
- <a href="https://github.com/ipfs/js-ipfs/issues">Request Feature</a>
21
+ <a href="https://github.com/ipfs-examples /js-ipfs-examples /issues">Request Feature/Example </a>
22
22
</p >
23
23
24
24
## Table of Contents
@@ -121,9 +121,9 @@ await IPFS.create({
121
121
Swarm: [" /ip4/0.0.0.0/tcp/4012" , " /ip4/127.0.0.1/tcp/4013/ws" ],
122
122
API : " /ip4/127.0.0.1/tcp/5012" ,
123
123
Gateway: " /ip4/127.0.0.1/tcp/9191" ,
124
- RPC : " /ip4/127.0.0.1/tcp/4839"
125
- }
126
- }
124
+ RPC : " /ip4/127.0.0.1/tcp/4839" ,
125
+ },
126
+ },
127
127
});
128
128
```
129
129
You can’t perform that action at this time.
0 commit comments