• This repository has been archived on 20/Oct/2020
  • Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    TypeScript
  • License
    Mozilla Public Li...
  • Created over 8 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AKASHA <---> IPFS connector

ipfs-connector

Build Status Coverage Status npm Known Vulnerabilities

Library for solving the cross-platform binaries problem (works on Windows as well) containing helpers for easier read/write on IPFS by extending the JavaScript IPFS API functionality.

Some of the differences:

  • Able to specify init folder
  • Promised based, no callbacks
  • Connector can be accessed from anywhere inside the app as it is a singleton
  • Plug your favorite logging library (by default console). See tests folder

For more information please see the API docs

Installation

npm install @akashaproject/ipfs-connector --save

Usage

import { IpfsConnector } from '@akashaproject/ipfs-connector';

const instance = IpfsConnector.getInstance();

// start ipfs daemon and download binaries if needed
instance.start().then((api) => {});

// stop daemon
instance.stop()

// see api docs
// add/get data to ipfs
// cid zdpuB2CAUgUbyJ4s8SmqcGGaGfs7bG337dDNty8NSCR3fhgRw
const cid = instance.api.add({firstName: 'John', lastName: 'Doe'});
//returns John
instance.api.get(cid, '/firstName'); 

// read data from ipfs
instance.api.ipfsApi.cat('ipfs hash')

// access default ipfs-http-api from
instance.api.ipfsApi

Dev

git clone https://github.com/AkashaProject/ipfs-connector.git
cd ipfs-connector

// install dependencies
npm install

// run tests
npm test

// generate docs
npm run docs

CHANGELOG

LICENSE

More Repositories

1

Alpha

Follow the white rabbit πŸ‡
306
star
2

Community

Community
124
star
3

easy-web-crypto

Webcrypto API wrapper for applications that store encrypted data
JavaScript
76
star
4

geth-connector

This repository served as an experiment playground for the alpha version of AKASHA desktop application. Now it is considered deprecated and seen as a stepping stone in the R&D of the AKASHA world framework. πŸš€πŸŒπŸš€
TypeScript
52
star
5

akasha-core

Monorepo for the AKASHA core framework
TypeScript
48
star
6

secure-webstore

A secure IndexedDB store with built-in encryption
JavaScript
44
star
7

Translations

8
star
8

akasha-id-wallet

Wallet library for AKASHA.id
JavaScript
4
star
9

meteor-markdown-editor

Simple markdown editor for meteor
HTML
4
star
10

meteor-ipfs

JavaScript
4
star
11

akasha-docs

JavaScript
3
star
12

akasha-id-client

Client library for AKASHA.id
JavaScript
3
star
13

meteor-geth

Control GETH from Meteor
JavaScript
2
star
14

jsonschema-web3

Extended jsonschema used by Akasha
TypeScript
2
star
15

akasha.beta.deprecated

πŸ’ͺπŸ“°πŸ‘ŠThe etheric core powering beta.akasha.world. This repository served as an experiment playground for the alpha version of AKASHA. Now it is considered deprecated and seen as a stepping stone in the R&D of the AKASHA world framework. πŸš€πŸŒπŸš€
JavaScript
2
star
16

librenotlibra.com

HTML
1
star
17

librenotlibra.info

HTML
1
star
18

akasha-id-webapp

The Web app for AKASHA.id
TypeScript
1
star
19

ipfs-js-connector

TypeScript
1
star
20

meteor-fs-extra

fs-extra package wrapped for meteor
JavaScript
1
star
21

bin-wrapper-progress

TypeScript
1
star