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
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
The primary goal of this module is to define and ensure that both IPFS core implementations and their respective HTTP client libraries offer the same interface, so that developers can quickly change between a local and a remote node without having to change their applications. In addition to the definition of the expected interface, this module offers a suite of tests that can be run in order to check if the interface is used as described.
10
43
11
44
The API is presented with both Node.js and Go primitives. However, there are no actual limitations keeping it from being extended for any other language, pushing forward cross compatibility and interoperability through different stacks.
- Soon, go-ipfs, go-ipfs-api, java-ipfs-api, python-ipfs-api and others will implement it as well.
18
51
19
52
Send in a PR if you find or write one!
20
53
21
-
# Badge
54
+
###Badge
22
55
23
56
Include this badge in your readme if you make a new module that implements
24
57
interface-ipfs-core API.
25
58
26
59

27
60
28
-
# How to use the battery of tests
61
+
## Install
62
+
63
+
```js
64
+
npm install interface-ipfs-core
65
+
```
66
+
67
+
```go
68
+
# TODO
69
+
```
70
+
71
+
## Usage
29
72
30
-
## Node.js
73
+
###Node.js
31
74
32
75
Install `interface-ipfs-core` as one of the dependencies of your project and as a test file. Then, using `mocha` (for Node.js) or a test runner with compatible API, do:
33
76
@@ -47,17 +90,17 @@ var common = {
47
90
test.all(common)
48
91
```
49
92
50
-
## Go
93
+
###Go
51
94
52
95
> WIP
53
96
54
-
# API
97
+
##API
55
98
56
99
A valid (read: that follows this interface) IPFS core implementation, must expose the following API.
57
100
58
-
## Files
101
+
###Files
59
102
60
-
### `add`
103
+
####`add`
61
104
62
105
> Add files and data to IPFS.
63
106
@@ -105,7 +148,7 @@ ipfs.files.add(files, function (err, files) {
105
148
```
106
149
107
150
108
-
### `createAddStream`
151
+
####`createAddStream`
109
152
110
153
> Add files and data to IPFS using a transform stream.
0 commit comments