All Projects → ipfs → js-ipfs-utils

ipfs / js-ipfs-utils

Licence: MIT license
IPFS utils

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to js-ipfs-utils

typescript-eth-starter
🔌 Ethereum Dapp Basic Typescript Starter
Stars: ✭ 125 (+635.29%)
Mutual labels:  ipfs
Starlog
Starlog: Metadata Blockchain based on Substrate
Stars: ✭ 32 (+88.24%)
Mutual labels:  ipfs
filecoin-box
Filecoin flavored Ganache Truffle box
Stars: ✭ 23 (+35.29%)
Mutual labels:  ipfs
tevere
🏞 Decentralized DB over IPFS
Stars: ✭ 57 (+235.29%)
Mutual labels:  ipfs
likecoin-wordpress
The WordPress plugin to integrate LikeCoin - Decentralized Publishing Infrastructure.
Stars: ✭ 19 (+11.76%)
Mutual labels:  ipfs
dtinyurl
Dcentralized url shortening service base on ipfs
Stars: ✭ 19 (+11.76%)
Mutual labels:  ipfs
ipfs-haskell
IPFS wrapper for Haskell
Stars: ✭ 37 (+117.65%)
Mutual labels:  ipfs
ipfs-browser-gateway
An IPFS gateway without server, by utilizing service worker.
Stars: ✭ 31 (+82.35%)
Mutual labels:  ipfs
ipfs-companion
Browser extension that simplifies access to IPFS resources on the web
Stars: ✭ 1,745 (+10164.71%)
Mutual labels:  ipfs
go-multiverse
Decentralized Version Control System
Stars: ✭ 76 (+347.06%)
Mutual labels:  ipfs
demo-ipfs-id-qr-codes
Generates a QR Code of your IPNS URL and Public Key
Stars: ✭ 21 (+23.53%)
Mutual labels:  ipfs
drive
Fission Drive 🗄
Stars: ✭ 21 (+23.53%)
Mutual labels:  ipfs
lucky
Proof of luck Intel SGX and IPFS based blockchain.
Stars: ✭ 70 (+311.76%)
Mutual labels:  ipfs
rsync2ipfs-cluster
No description or website provided.
Stars: ✭ 16 (-5.88%)
Mutual labels:  ipfs
pop
Run a point-of-presence within Myel, the community powered content delivery network.
Stars: ✭ 28 (+64.71%)
Mutual labels:  ipfs
deplayer
Decentralized mediaplayer which runs entirely in the browser.
Stars: ✭ 14 (-17.65%)
Mutual labels:  ipfs
ipfs-md-wiki
a decentered wiki system by ipfs and markdown
Stars: ✭ 99 (+482.35%)
Mutual labels:  ipfs
advanced-react-native-boilerplate
[DEPRECATED] React Native boilerplate including react-navigation, redux, and sagas with example Textile management.
Stars: ✭ 20 (+17.65%)
Mutual labels:  ipfs
vocdoni-node
A set of libraries and tools for the Vocdoni decentralized backend infrastructure, the main ground of our universally verifiable, privacy-centric and scalable digital voting protocol
Stars: ✭ 58 (+241.18%)
Mutual labels:  ipfs
js-ipfs-mfs
[ARCHIVED] now part of the https://github.com/ipfs/js-ipfs repo
Stars: ✭ 27 (+58.82%)
Mutual labels:  ipfs

js-ipfs-utils

Build Status Codecov branch Dependency Status js-standard-style

This package serves as a central repository for shared logic and dependencies for all IPFS packages, using ipfs-utils helps to easily re-use small scoped blocks of logic across all the js core interface implementations and also as a dependency proxy (think aegir for domain logic dependencies).

ipfs-utils aims to provide single function default export per file (with a few exceptions) scoped in 3 general categories:

  • General use
  • Data structs wrangling (arrays, objects, streams, etc)
  • IPFS core subsystems

General use and Data structs wrangling should try to be just re-exports of community packages.

The IPFS ecosystem has lots of repos with it comes several problems like:

  • Domain logic dedupe - all interface-core implementations shared a lot of logic like validation, streams handling, etc.
  • Dependencies management - it's really easy with so many repos for dependencies to go out of control, they become outdated, different repos use different modules to do the same thing (like merging defaults options), browser bundles ends up with multiple versions of the same package, bumping versions is cumbersome to do because we need to go through several repos, etc.

These problems are the motivation for this package, having shared logic in this package avoids creating cyclic dependencies, centralizes common use modules/functions (exactly like aegir does for the tooling), semantic versioning for 3rd party dependencies is handled in one single place (a good example is going from streams 2 to 3) and maintainers should only care about having ipfs-utils updated.

Table of Contents

Install

$ npm install --save ipfs-utils

Usage

Each function should be imported directly.

const validateAddInput = require('ipfs-utils/src/files/add-input-validation')

validateAddInput(Buffer.from('test'))
// true

Functions

General Use

TODO

Data Struct Wrangling

TODO

Core API

TODO

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to this repo are subject to the IPFS Code of Conduct.

License

MIT © Protocol Labs Inc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].