w3up-cli
w3up-cli copied to clipboard
Move unixfs chunking logic to `ipfs-car`, `carbites`, and `w3up-client`
The code for creating a CAR for an upload should be in a re-usable library that folks can build on in there own apps.
The existing web3.storage client library uses ipfs-car and carbites to handle car creation and car splitting, so any improvements that are needed in those libs to make it possible for w3up-client to defer most of the work to them should be prioritised.
TL:DR
- at least move all the CAR creation logic to
w3up-clientwhere it can be imported and built on in users apps. No one wants to depend on a cli module from an app. - better move the generic parts to
ipfs-carfor car creation andcarbitesfor car splitting, then consume those functions fromw3up-client.
Possible duplicate of https://github.com/web3-storage/w3up-client/issues/27 I left a note there to confirm it is a duplicate, and if yes then close that one out in favor of this one.