Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to the new web3 storage API #126

Closed
salieflewis opened this issue Nov 22, 2023 · 4 comments · Fixed by #291
Closed

Move to the new web3 storage API #126

salieflewis opened this issue Nov 22, 2023 · 4 comments · Fixed by #291
Assignees
Labels
A: IPFS Area: IPFS uploading, fetching

Comments

@salieflewis
Copy link
Contributor

We're using the old API currently to handle IPFS storage via uploadBlob and uploadFile, this API is being deprecated in January so we need to move to the new one. I imagine it is quite similar.

@salieflewis
Copy link
Contributor Author

salieflewis commented Nov 25, 2023

The legacy web3.storage upload API, pinning service API, and w3name will sunset on January 9, 2024.

All uploads to the legacy web3.storage prior to January 9, 2024 will continue to be stored until further notice, though over time latency and availability may degrade.

https://blog.web3.storage/posts/the-data-layer-is-here-with-the-new-web3-storage

@salieflewis salieflewis self-assigned this Dec 1, 2023
@salieflewis
Copy link
Contributor Author

Here is the first pass at integrating with the new API.

https://gist.github.com/salieflewis/bbba37daba7acd0edff39ff32e32a72d

I'm not sure the library is setup to work seamlessly in a React environment, currently running into this error which has been noted by another developer.

@salieflewis
Copy link
Contributor Author

Currently waiting for more documentation around the new API to make this change. This includes frontend examples and potentially helper packages that will give us more flexibility in a React environment.

@salieflewis
Copy link
Contributor Author

Closing in favor of #281

Ultimately we have until January 9th to make this migration, but that is right around the corner. Having spent a lot of time toying around with multiple implementations and attempts to move to the new web3.storage API I think it makes more sense to use Pinata.

List of reasons are:

The docs are dense, introduce a lot of new terminology that is used inconsistently, ultimately making it hard to understand what is going on
There aren't enough examples of using the new API across a range of development environments
The console (website) isn't complete
Using UCANs feels like overkill for what we currently need

@salieflewis salieflewis reopened this Jan 2, 2024
@salieflewis salieflewis added the A: IPFS Area: IPFS uploading, fetching label Jan 2, 2024
@salieflewis salieflewis linked a pull request Jan 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: IPFS Area: IPFS uploading, fetching
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant