Hi, > Also, I do not get why there is a whole part on S3 in the doc? Is it just that it is the exac

Hi,

Also, I do not get why there is a whole part on S3 in the doc? Is it just that it is the exact same signature or will files actually be put on S3
R2 serves an S3-compatible API, the data will be on R2 but the signature and API are the same as S3 so any S3-compatible libraries will work

And finally, is there a Node JS SDK that would ease the use, I could not find an official one
We provide official examples for
aws-sdk-js
: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js/
aws-sdk-js-v3
: https://developers.cloudflare.com/r2/examples/aws/aws-sdk-js-v3/
aws4fetch
: https://developers.cloudflare.com/r2/examples/aws/aws4fetch/

But theoretically any library compatible with S3 and that supports changing the endpoint will work fine since the API is compatible
Was this page helpful?