IPFS implementation in JavaScript
See the code⛔️ DEPRECATED: js-IPFS has been superseded by Helia
📚 Learn more about this deprecation or how to migrate
⚠️ If you continue using this repo, please note that security fixes will not be provided
Installing ipfs globally will give you the jsipfs command which you can use to start a daemon running:
$ npm install -g ipfs
$ jsipfs daemon
Initializing IPFS daemon...
js-ipfs version: x.x.x
System version: x64/darwin
Node.js version: x.x.x
Swarm listening on /ip4/127.0
.... more output
You can then add a file:
$ jsipfs add ./hello-world.txt
added QmXXY5ZxbtuYj6DnfApLiGstzPN7fvSyigrRee3hDWPCaf hello-world.txt
If you do not need to run a command line daemon, use the ipfs-core package - it has all the features of ipfs but in a lighter package:
$ npm install ipfs-core
Then start a node in your app:
import * as IPFS from 'ipfs-core'
const ipfs = await IPFS.create()
const { cid } = await ipfs.add('Hello world')
console.info(cid)
// QmXXY5ZxbtuYj6DnfApLiGstzPN7fvSyigrRee3hDWPCaf
This project is broken into several modules, their purposes are:
/packages/interface-ipfs-core Tests to ensure adherence of an implementation to the spec/packages/ipfs An aggregator module that bundles the core implementation, the CLI, HTTP API server and daemon/packages/ipfs-cli A CLI to the core implementation/packages/ipfs-core The core implementation/packages/ipfs-core-types Typescript definitions for the core API/packages/ipfs-core-utils Helpers and utilities common to core and the HTTP RPC API client/packages/ipfs-daemon Run js-IPFS as a background daemon/packages/ipfs-grpc-client A gRPC client for js-IPFS/packages/ipfs-grpc-protocol Shared module between the gRPC client and server/packages/ipfs-grpc-server A gRPC-over-websockets server for js-IPFS/packages/ipfs-http-client A client for the RPC-over-HTTP API presented by both js-ipfs and go-ipfs/packages/ipfs-http-server JS implementation of the Kubo RPC HTTP API/packages/ipfs-http-gateway JS implementation of the IPFS HTTP Gateway/packages/ipfs-http-response Creates a HTTP response for a given IPFS Path/packages/ipfs-message-port-client A client for the RPC-over-message-port API presented by js-ipfs running in a shared worker/packages/ipfs-message-port-protocol Code shared by the message port client & server/packages/ipfs-message-port-server The server that receives requests from ipfs-message-port-clientList of the main packages that make up the IPFS ecosystem.
This table is generated using the module
package-tablewithpackage-table --data=package-list.json.
The IPFS implementation in JavaScript needs your help! There are a few things you can do right now to help out:
Read the Code of Conduct and JavaScript Contributing Guidelines.
Overall
Maintained
Code review
npm
Latest release
Releases this year
(top 24 of 50)
1,801 followers · starred Mar 2019
1,828 followers · starred Sep 2014
2,277 followers · starred Jul 2018
238 followers · starred Jul 2016
IPFS implementation in JavaScript
See the code⛔️ DEPRECATED: js-IPFS has been superseded by Helia
📚 Learn more about this deprecation or how to migrate
⚠️ If you continue using this repo, please note that security fixes will not be provided
Installing ipfs globally will give you the jsipfs command which you can use to start a daemon running:
$ npm install -g ipfs
$ jsipfs daemon
Initializing IPFS daemon...
js-ipfs version: x.x.x
System version: x64/darwin
Node.js version: x.x.x
Swarm listening on /ip4/127.0
.... more output
You can then add a file:
$ jsipfs add ./hello-world.txt
added QmXXY5ZxbtuYj6DnfApLiGstzPN7fvSyigrRee3hDWPCaf hello-world.txt
If you do not need to run a command line daemon, use the ipfs-core package - it has all the features of ipfs but in a lighter package:
$ npm install ipfs-core
Then start a node in your app:
import * as IPFS from 'ipfs-core'
const ipfs = await IPFS.create()
const { cid } = await ipfs.add('Hello world')
console.info(cid)
// QmXXY5ZxbtuYj6DnfApLiGstzPN7fvSyigrRee3hDWPCaf
This project is broken into several modules, their purposes are:
/packages/interface-ipfs-core Tests to ensure adherence of an implementation to the spec/packages/ipfs An aggregator module that bundles the core implementation, the CLI, HTTP API server and daemon/packages/ipfs-cli A CLI to the core implementation/packages/ipfs-core The core implementation/packages/ipfs-core-types Typescript definitions for the core API/packages/ipfs-core-utils Helpers and utilities common to core and the HTTP RPC API client/packages/ipfs-daemon Run js-IPFS as a background daemon/packages/ipfs-grpc-client A gRPC client for js-IPFS/packages/ipfs-grpc-protocol Shared module between the gRPC client and server/packages/ipfs-grpc-server A gRPC-over-websockets server for js-IPFS/packages/ipfs-http-client A client for the RPC-over-HTTP API presented by both js-ipfs and go-ipfs/packages/ipfs-http-server JS implementation of the Kubo RPC HTTP API/packages/ipfs-http-gateway JS implementation of the IPFS HTTP Gateway/packages/ipfs-http-response Creates a HTTP response for a given IPFS Path/packages/ipfs-message-port-client A client for the RPC-over-message-port API presented by js-ipfs running in a shared worker/packages/ipfs-message-port-protocol Code shared by the message port client & server/packages/ipfs-message-port-server The server that receives requests from ipfs-message-port-clientList of the main packages that make up the IPFS ecosystem.
This table is generated using the module
package-tablewithpackage-table --data=package-list.json.
The IPFS implementation in JavaScript needs your help! There are a few things you can do right now to help out:
Read the Code of Conduct and JavaScript Contributing Guidelines.
Overall
Maintained
Code review
npm
Latest release
Releases this year
(top 24 of 50)
1,801 followers · starred Mar 2019
1,828 followers · starred Sep 2014
2,277 followers · starred Jul 2018
238 followers · starred Jul 2016