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
This provides a well defined interface for creating and interacting with an IPFS
73
-
Repo backed by a group of abstract backends for keys, configuration, logs, and
74
-
more. Each of the individual repos has an interface defined by
75
-
[interface-pull-blob-store](https://github.com/ipfs/interface-pull-blob-store): this
76
-
enables us to make IPFS Repo portable (running on Node.js vs the browser) and
77
-
accept different types of storage mechanisms for each repo (fs, levelDB, etc).
78
-
79
-
### Good to know (historical context)
80
-
81
-
- The datastore folder holds the legacy version of datastore, still built in levelDB, there is a current endeavour of pushing it to fs completely.
82
-
- The blocks folder is the current version of datastore.
83
-
- The keys repo doesn't exist yet, as the private key is simply stored inside config
72
+
This provides a well defined interface for creating and interacting with an IPFS repo.
84
73
85
74
## Install
86
75
87
76
### npm
88
77
89
78
```sh
90
-
> npm i ipfs-repo
79
+
> npm install ipfs-repo
91
80
```
92
81
93
82
### Use in Node.js
94
83
95
-
```JavaScript
84
+
```js
96
85
var IPFSRepo =require('ipfs-repo')
97
86
```
98
87
99
88
### Use in a browser with browserify, webpack or any other bundler
100
89
101
-
The code published to npm that gets loaded on require is in fact a ES5 transpiled version with the right shims added. This means that you can require it and use with your favourite bundler without having to adjust asset management process.
102
-
103
-
```JavaScript
90
+
```js
104
91
var IPFSRepo =require('ipfs-repo')
105
92
```
106
93
@@ -119,77 +106,42 @@ Loading this module through a script tag will make the `IpfsRepo` obj available
119
106
Example:
120
107
121
108
```js
122
-
var inMemoryBS =require('interface-pull-blob-store')
123
-
// inMemoryBS is an "in memory" blob store, you can find others at:
0 commit comments