AMAZINGINDEX.COM 日报快照
49.7
VOL. 2026.05
2026.05.07
← 返回 2026.05.07 日报
日报快照 · Daily Snapshot
NO. 016

Val Town 三迁认证方案终选 Better Auth

#ARTICLE HackerNews 2026.05.07
推荐指数 52.0 NO. 016 · 2026.05.07
发布2026/05/06Score84Comments28

Val Town 从 Supabase 迁移到 Clerk 后,因成本、控制权和灵活性问题,最终落地开源方案 Better Auth。这对需要自建认证又不想从零开发的团队有直接参考价值。

Val Town 的迁移路径很有代表性:Supabase 绑死全家桶 → Clerk 成本失控 → Better Auth 拿回主权。Clerk 按 MAU 计费的模式对开发者工具类产品是毒药,用户增长直接转化为账单膨胀。Better Auth 的杀手锏不是功能多,而是 schema 完全开放、不锁数据库、不强制托管,这和 NextAuth 的 black box 设计形成鲜明对比。如果你现在用 Clerk 且月活过 1 万,建议跑一下 Better Auth 的迁移成本测算,通常 3-6 个月就能收回自建投入。

意见分歧 28 条评论

核心争论:自建开源认证 vs 托管SaaS:成本灵活性与维护负担之争

zuzululu

what do you get from Better Auth btw? When I used it last year, I still found it lacking and it seemed to be run by one guy.

azyc

Lol wut? you get all of your auth data in your own db in 1 cli command. You are not tied to any on db provider. On top of that you get hundreds of auth features like oauth providers (I use it to allow users to log in via google, apple, github) and the best part it's free. Not saying Supabase and Cle

giancarlostoro

Or I could use a web framework that offers that out of the box, and its free and lives in my database, wherever I want.

替代方案: SupabaseClerkAuth0Passport.jsFirebasePhoenix/Elixirweb framework OOTB
查看原文 →