Switch from AWS S3 to Load Network with a single import change. Your existing code will work without any other modifications.
Load S3 acts as a hot cache with optional Arweave permanence
const { S3Client, PutObjectCommand } = require("@aws-sdk/client-s3");
const s3 = new S3Client({
region: "eu-west-2",
endpoint: "https://s3-node-0.load.network/~s3@1.0",
credentials: { accessKeyId: "your-access-key", secretAccessKey: "your-secret-key" },
forcePathStyle: true
});
s3.send(new PutObjectCommand({
Bucket: "your-bucket-name",
Key: "example.txt",
Body: file,
ContentType: "text/plain"
}));
I've been wanting this for ages... kudos @useload
Can't overstate how big that is. All Arweave bundlers should have this drop in compatibility layer with web2 services like @useload does
go from 0-1 - install, migrate, get your data onchain.
check which features of the AWS SDK are implemented on Load
copypasta & feed to LLM to achieve greatness