Show HN: React library to upload files directly to S3

better-upload.js.org

4 points by nic13gamer 4 days ago

Hey HN,

In past few weeks I have been developing Better Upload, a library that makes file uploads very simple for React. It uploads directly to your bucket in any S3-compatible service, like AWS S3 and Cloudflare R2. Multipart uploads work out of the box! Fully open-source.

It also comes with copy-and-paste shadcn/ui components. If you want more control, there are also hooks available for the client.

You can run code in your server before uploading, so adding auth and rate limiting is very easy. Files do not consume bandwidth of your server, it uses pre-signed URLs.

It is compatible with any framework that uses standard Request / Response objects, like Next.js and Remix. You can even use a separate backend server, like Hono.

Docs: https://better-upload.js.org/

GitHub: https://github.com/Nic13Gamer/better-upload

zhaoy6 17 hours ago

It would be better if you can attach a screenshot or demo in the doc.

  • nic13gamer 17 hours ago

    There is a demo for the components in their pages.