档案库 · 开发与企业工具 · 产品决策 · 2026
Locker:开源版“Dropbox”,运行在你自己的 S3 上,一周建成——Show HN 252 分
Zach Meyer 在 X 上被“技术诱惑”后,大约一周就做出了 Locker:MIT 许可,自托管文件存储,支持自己的 S3/R2/本地后端;Show HN 获得 252 分。
Locker
做的是什么生意
Locker is an MIT-licensed, self-hosted file storage platform: a Dockerized Next.js 16 app on PostgreSQL (tRPC, Drizzle, BetterAuth, Tailwind, Turborepo) with file/folder management, share links with password/expiry/download limits, upload links, per-user quotas, workspace teams, API keys, an optional virtual bash shell, and semantic or full-text search plugins. Storage is provider-agnostic — local disk, AWS S3, Cloudflare R2 or Vercel Blob — chosen with one BLOB_STORAGE_PROVIDER environment variable, and Locker also speaks the S3 protocol so other apps can write to it. A hosted version runs at locker.dev.
起因
Days before the 2026-04-07 launch, @swyx nerd-sniped @zachmeyer on X into building an open-source Dropbox; Meyer took the dare seriously and shipped Locker in about a week, posting 'Stop paying for Dropbox/Google Drive, use your own S3 bucket instead' to Hacker News.
经过
The Show HN drew 252 points and 208 comments, with pushback that Dropbox's real value is OS-level sync, not storage; the dev.to write-up (2026-04-20) walked through a Railway deployment, praised the single-environment-variable storage switch, and published a one-click template. The project covers share and upload links, quotas, workspace teams, search plugins and S3-compatible API keys.
结果
Still live as of 2026-09-04 as an open-source project with a hosted demo at locker.dev; the dev.to review judged it ready for personal use and small teams, but said large organizations should wait for more production mileage before trusting it as primary infrastructure.
背景
Locker 是一个 MIT 许可的自托管文件存储平台:一个 Docker 化的 Next.js 16 应用,使用 PostgreSQL(tRPC、Drizzle、BetterAuth、Tailwind、Turborepo),提供文件管理、带密码/过期保护分享链接、上传链接、每用户配额、工作区团队、API 键、可选虚拟 bash shell,以及语义或全文搜索插件。
其关键设计是提供商无关的存储:本地磁盘、AWS S3、Cloudflare R2 或 Vercel Blob,通过一个 BLOB_STORAGE_PROVIDER 环境变量选择——并且 Locker 本身支持 S3 协议,因此其他应用可以通过生成的 API 键写入。
在 2026-04-07 发布前几天,@swyx 在 X 上“技术诱惑”@zachmeyer 构建开源 Dropbox;Meyer 大约一周就发布了。Show HN 获得 252 分和 208 条评论,dev.to 的 alphasec 在 2026-04-20 发布了一篇自托管文章,并附带一键 Railway 模板。
截至 2026-09-04,该项目活跃,托管演示在 locker.dev;评论者认为它适合个人使用和小团队,大型组织在其作为主要基础设施前需要更多生产环境验证。
这件事要成立,得有什么
- 一周内由挑战驱动的起源本身就值得注意:一个尖锐的楔子可以快速发布,而不是等待与 Dropbox 的功能对等。
- 通过单个环境变量实现提供商无关的存储,直接回答了自托管工具的主要反对意见——锁定到单一后端。
- S3 兼容端点将 Locker 从 Dropbox 克隆转变为其他应用可以写入的基础设施。
- 208 条评论中关于操作系统级同步的争论标志着这个赌注的诚实边界:它赢得的是重视控制权的用户,而非所有人。
可借鉴之处
一个受挑战而生的 MVP 在架构楔子上找到了吸引力:将存储与应用分离,让每个拥有 S3 存储桶的开发者都成为潜在用户,没有锁定论点可输。
后续进展
截至 2026-09-04,Locker 作为开源项目活跃,托管演示在 locker.dev。dev.to 在 2026-04-20 的文章评论认为它适合个人使用和小团队,但建议大型组织在将其作为主要基础设施之前等待更多生产环境验证。Show HN 帖子中的主要反对意见——Dropbox 和 Google Drive 销售的是操作系统级同步集成,而不是原始存储——标志着这个赌注的边界:Locker 吸引的是已经拥有存储桶并想要控制权的开发者,而非主流同步用户。
资料来源
- Show HN: Stop paying for Dropbox/Google Drive, use your own S3 bucket instead
- A Developer Built an Open-Source Dropbox on a Dare. Here's How to Self-Host It.
发现哪里写错了?告诉我们。
轮到你了
你刚读完一家。说说你在做什么,看看谁在赌同一件事。
免费账号 · 3 次免费提问 · 不用绑卡