1. IPFS点滴资讯首页
  2. 官方更新
  3. IPFS

js-ipfs 0.23.0 released

Today we’re happy to announce that we have released js-ipfs version 0.23.0.


  • DAG API (IPLD Support)
  • Interoperability with go-ipfs
  • Bootstrap nodes
  • Easier initialization
  • Datastore
  • New tutorials
  • jsipfs add --wrap-with-directory feature
  • Support for unixfs sharding


npm install --save ipfs@0.23.0 

Full Details

✨ A new way API is born, welcome to .dag

The new DAG API (available through ipfs.dag) offers a new way to create and operate over any MerkleGraph, today it has support for the IPFS MerkleDAG (referenced as dag-cbor), the new dag-cbor (which lets you drop json into IPFS seamlessly) and a preview of Ethereum.

You can learn how to use it through: – docsexamplesvideo running through the demos

If you are new to the Merkle Forest, make sure to watch @jbenet’s talk “Enter the Merkle Forest”

🙌🏽 Interoperability with go-ipfs is here!

This took us more time than what we had initially expected, however, now it is a thing of the past, you can dial to a go-ipfs node and exchange files without going through complicated set ups, it just works™

If you would like to know more about the issue we faced, you can find more info here: “Stream Muxing issues between go-ipfs and js-ipfs are a thing of the past”

Note: Interop is only fully available with go-ipfs 0.4.7 and onwards, if you haven’t updated yet, please do so by visiting http://dist.ipfs.io/.

🌍 js-ipfs will now also bootstrap with bootstrap nodes as well

Same way that go-ipfs does, now your jsipfs daemon will bootstrap itself with the bootstraper nodes. This was easy once we had the Stream Muxing figured out.

> jsipfs swarm peers /ip4/ /ip4/ /ip4/ /ip4/ /ip4/ /ip4/ /ip4/ /ip4/ /ip4/ 

⚡️ Starting an IPFS instance is easier than ever

We’ve heard you, starting an ipfs instance was cumbersome 3 step process, but not anymore!

Now, all you need to do to start an instance is:

const IPFS = require('ipfs') const node = new IPFS()  node.on('start', () => {   // Your node is now ready to use /o/ }) 

That’s it! See more Usage examples in the README

💾 Datastore is here!

We’ve migrated away from pull-blob-store/blob-store to datastore, the storage interface that is used in go-ipfs. This was a requirement towards implementing the DHT on js-ipfs.

👩🏽‍🏫 New tutorial! Transfer files between browser and desktop nodes

We’ve build a new Tutorial in how to use js-ipfs that explain how to interact with other nodes, from connecting, discovering and exchanging files. The tutorial is the most bare bones possible (i.e no frameworks) so that it focus on IPFS.

Find this tutorial at our examples folder

👏🏽 jsipfs add –wrap-with-directory is now a feature!

Thanks to @harshjv, now you can add files wrapped in a directory just like go-ipfs. Example:

> jsipfs add <filename> --wrap-with-directory > jsipfs add <filename -w # alias 

Exciting future (soon™)

Here is a quick list of things that we will be heads down after this release

  • Circuit Relay – We are building Circuit Relay in order to let browser nodes to connect to any node in the network (e.g when two nodes do not have a common transport). Track the development and spec here – https://github.com/libp2p/specs/tree/master/relay, https://github.com/libp2p/js-libp2p-circuit/pull/1.
  • DHT – The DHT is the second last piece that needs to be built (the first being relay) in order to give browser nodes the ability to discover the location of content by themselves. Track dev at the repo https://github.com/libp2p/js-libp2p-dht
  • Parity to IPFS – We want IPFS to access the Ethereum blockchain on demand (i.e: Without having to constantly transferring the blocks over), for that, the EthereumJS team had a brilliant idea of building a storage backend for js-ipfs that uses Parity, so that we can ‘read’ blocks from the blockchain. Track at: https://github.com/ipfs/js-ipfs/issues/763
  • Torrent support – We started working in getting Torrent files supported in js-ipfs (same way we do for Ethereum). This will give the ability to fetch data from the BitTorrent network through js-ipfs as well. Track progress here: https://github.com/ipfs/js-ipfs/issues/779



点对点科技深耘IPFS与Filecoin技术,坚持区块链技术改变未来的信念。点对点 IPFS 数据中心是目前国内技术领先,性价比高、保障优的投资标的。自建杭州数据中心,合作数据中心分布于上海、宁波、河北、香港、斯德哥尔摩(瑞典)等地。点对点数据中心具有优秀的硬件配置与目前国内优质的网络节点资源。点对点科技力求将IPFS爱好者升级为IPFS领军者与受益者,让IPFS颠覆传统互联网,共同开启 WEB 3.0时代。


Filecoin测试网二阶段昨日重启,点对点出块第一! | 点滴资讯



电子邮件地址不会被公开。 必填项已用*标注