Giter Site home page Giter Site logo

kevinsimper / interface-ipfs-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipfs-inactive/interface-js-ipfs-core

0.0 3.0 0.0 14.98 MB

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

License: MIT License

JavaScript 100.00%

interface-ipfs-core's Introduction

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

JavaScript

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, IPFSFactory)
  },
  teardown: function (cb) {
    cb()
  }
}

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

Go

WIP

API

In order to be considered "valid", an IPFS core implementation must expose the API described in /API. You can also use this loose spec as documentation for consuming the core APIs. Here is an outline of the contents of that directory:

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

interface-ipfs-core's People

Contributors

daviddias avatar dignifiedquire avatar greenkeeperio-bot avatar hackergrrl avatar victorb avatar pgte avatar dryajov avatar enricomarino avatar richardlitt avatar richardschneider avatar nginnever avatar haadcode avatar vith avatar kenshyx avatar nicosantangelo avatar noffle avatar kumavis avatar

Watchers

James Cloos avatar Kevin Simper avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.