Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

ipfs-inactive/interface-js-ipfs-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e9506ff · Dec 21, 2016
Dec 10, 2016
May 13, 2016
Dec 10, 2016
Nov 3, 2016
May 13, 2016
Nov 3, 2016
Nov 7, 2016
Dec 21, 2016
May 11, 2016
Aug 5, 2016
Sep 17, 2016
Dec 21, 2016

Repository files navigation

interface-ipfs-core

standard-readme compliant

A test suite and interface you can use to implement a IPFS core interface.

Table of Contents

Background

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.

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.

Modules that implement the interface

Send in a PR if you find or write one!

Badge

Include this badge in your readme if you make a new module that implements interface-ipfs-core API.

Install

In JavaScript land:

npm install interface-ipfs-core

In Go land:

# Not available

Usage

Node.js

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:

var test = require('interface-ipfs-core')

var common = {
  setup: function (cb) {
    cb(null, yourIPFSInstance)
  },
  teardown: function (cb) {
    cb()
  }
}

// use all of the test suits
test.all(common)

Go

WIP

API

A valid (read: that follows this interface) IPFS core implementation must expose the API described in /API.

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

Want to hack on IPFS?

License

MIT