Socket
Socket
Sign inDemoInstall

ipfs-core-types

Package Overview
Dependencies
Maintainers
2
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-core-types

IPFS interface definitions used by implementations for API compatibility.


Version published
Weekly downloads
60K
decreased by-7.35%
Maintainers
2
Weekly downloads
 
Created
Source

ipfs-core-types

standard-readme compliant Dependency Status

IPFS interface definitions used by implementations for API compatibility

Lead Maintainer

Alex Potsides

Table of Contents

Background

The primary goal of this module is to define and ensure that IPFS core implementations and their respective client libraries implement the same interface, so that developers can quickly change between a local and a remote node without having to change their applications.

It offers a set of typescript interface definitions that define the IPFS core API. Once your implementation implements those APIs you can use the tests found in the interface-ipfs-core module to validate your implementation.

Install

In JavaScript land:

$ npm install ipfs-core-types

Usage

Install ipfs-core-types as one of the dependencies of your project and use it to ensure your implementations API compatibility:

In JSDoc syntax

/**
 * @implements {import('ipfs-core-types').IPFS}
 */
class MyImpl {
  // your implementation goes here
}

In Typescript

import type { IPFS } from 'ipfs-core-types'
class MyImpl implements IPFS {
  // your implementation goes here
}

Validation

In order to validate API compatibility you can run typescript over your implementation which will point out all the API compatibilities if there are some.

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

FOSSA Status

Keywords

FAQs

Package last updated on 15 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc