Show HN: Pushduck – 基于 Cloudflare Workers 的 S3 上传,无需 AWS SDK
2 分•作者: abhay_ramesh•4 个月前
我厌倦了为多个项目设置文件上传,而且使用臃肿的 aws-sdk,于是自己构建了一个。我的第一个尝试是 next-s3-uploader,它能用,但开发者体验有待提高,而且我想充分利用类型安全的 Typescript 的所有优势,并希望拥有一个非常轻量级的工具包,可以完成开发者管理 S3 的所有需求。
感谢 `aws4fetch`,它使该工具包能够在边缘环境和 Cloudflare Workers 中运行。现在,我正努力扩展并构建对非 Reactjs 框架的支持。
设置文件上传本不应该很难,但事实并非如此。那些更简单的选项往往会造成厂商锁定。
因此,我创建了一个对开发者友好的、类型安全的文件上传库,请尽情享用。欢迎讨论任何改进和选项。
查看原文
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.<p>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.<p>Setting up file uploads shouldnt be hard, but is. the easier options have vendor lockin's.<p>So made a DX friendly, typesafe file upload library, enjoy. Happy to discuss any improvements and options.