Hacker News new | ask | show | jobs
Show HN: Pushduck – S3 uploads that run on Cloudflare Workers, no AWS SDK
12 points by abhay_ramesh 63 days ago
I was tired setting up file uploads for multiple projects with bloated aws-sdk so built my own, my first attempt was next-s3-uploader, it worked but needed much better developer experience and wanted to get all benifits of typesafe Typescript, and wanted to have a very light weight toolkit that can do all things a dev needs to manage s3.

Credits to `aws4fetch` which made it be able to run in edge enviornments and cloudflare workers, now im trying to expand and build towards non Reactjs frameworks too and have support.

Setting up file uploads shouldnt be hard, but is. the easier options have vendor lockin's.

So made a DX friendly, typesafe file upload library, enjoy. Happy to discuss any improvements and options.

Repo: https://github.com/abhay-ramesh/pushduck

4 comments

At the point I'm running in CF anyways, I'd be far more likely to just use CF's R2 over AWS S3 for storage.
Best thing is i use cloudflare R2 eeverywhere too, and the reason to ditch aws, and pushduck works with R2
aws-sdk is 2MB and doesn't run on Workers. UploadThing is great but you get locked in. Pushduck is thin wrapper over aws4fetch, runs anywhere, and your bucket stays yours.
Where can I find the latest one you published?
Github: https://github.com/abhay-ramesh/pushduck

Sorry forgot to mention the link! Thx

god job
thanks! let me know if you try it, keen to hear where it breaks.