Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

IPFS Repo JavaScript Implementation #36

Closed
daviddias opened this issue Nov 13, 2015 · 4 comments
Closed

IPFS Repo JavaScript Implementation #36

daviddias opened this issue Nov 13, 2015 · 4 comments
Labels
exp/novice Someone with a little familiarity can pick up

Comments

@daviddias
Copy link
Member

ipfs-repo is the module that implements and offers the functionality offer in repo spec

git repo: https://github.com/ipfs/js-ipfs-repo

It should work natively using the fs or in the browser using local storage

js-ipfs-repo should be able to grab an ipfs repo generated by go-ipfs and manipulate it without breaking interopability.

@RichardLitt
Copy link
Member

Thanks for this issue: added the repository to the project directory in ipfs/ipfs in ipfs/ipfs#116.

@daviddias
Copy link
Member Author

@daviddias daviddias changed the title js-ipfs-repo IPFS Repo Dec 13, 2015
@daviddias
Copy link
Member Author

Update:

Currently we have a working IPFS Repo implementation and @xicombd has helped getting that working on the browser as well. There is a bug however, which is that values being stored in localStorage are being converted to utf8 strings, adding a lot of information that is not required, making the buffer bigger (breaking the hash, size and so on).

We changed local-storage-blob-store to use hex strings, so that we could encode/decode that binary data, but that made some js-ipfs tests fail in the browser (although it passes all the abstract-blob-store tests). See https://github.com/xicombd/local-storage-blob-store/blob/master/index.js#L28 and run the browser tests in this repo by npm run test:browser

@daviddias daviddias changed the title IPFS Repo IPFS Repo JavaScript Implementation Jan 25, 2016
@daviddias daviddias added the exp/novice Someone with a little familiarity can pick up label Jan 26, 2016
@daviddias
Copy link
Member Author

Update: ways you can help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
exp/novice Someone with a little familiarity can pick up
Projects
None yet
Development

No branches or pull requests

2 participants