kodadot / workers

Implementation of Cloudflare Workers in KodaDot
https://kodadot.xyz
9 stars 12 forks source link

R2(IPFS) worker #304

Open vikiival opened 2 weeks ago

vikiival commented 2 weeks ago

Context

nft.storage has end of life in 30/06/204 therefore nft-storage worker wont work.

Therefore as I was speaking on last dev call we need a replacement for it :)

Task

  1. Create new worker called ipos (stands for inter-planetary object storage)
  2. make same API as nft-storage worker (/pinJson, /pinFile)
  3. the content should be uploaded to R2 under the "created" CID
  4. Ideally if same response is used

Tech stack

Hono + R2 + (aaand maybe KV?)

Library wise you would probably need https://github.com/alanshaw/ipfs-only-hash or https://github.com/ipfs/js-ipfs-unixfs/tree/main/packages/ipfs-unixfs-importer

with

Routes

Screenshot 2024-06-14 at 15 50 57

Screenshot 2024-06-14 at 15 51 05

Screenshot 2024-06-14 at 15 51 11

vikiival commented 2 weeks ago

https://www.youtube.com/watch?v=q5bKjuu3kdE