frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

From Supabase to Clerk to Better Auth

https://blog.val.town/better-auth
78•stevekrouse•2h ago

Comments

zuzululu•1h ago
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•1h ago
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 Clerk are bad, but they cost money. With better auth you pay exactly $0 for all of this.
giancarlostoro•1h ago
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.
rozap•59m ago
this is sorta the obvious takeaway here. as a postgres/phoenix/elixir enjoyer i am blissfully unaware of all this sort of SaaS churn.
Scarbutt•54m ago
What framework offers all those auth features OOTB?
dsagent•35m ago
Laravel

https://laravel.com/docs/13.x/authentication

https://laravel.com/docs/13.x/socialite

https://laravel.com/docs/13.x/sanctum

giancarlostoro•17m ago
ASP .NET Core, Ruby on Rails, Django, .... the list goes on and on... The ones that don't usually someone built a package that lets it happen.
mchusma•29m ago
I’ve looked at these auth providers many times over the years and I just don’t get the value. It takes me a couple of minutes to set up auth. Why would I want a dependency? It doesn’t help me with the hardest part which is configuring Google and Apple sign in stuff on Google and Apple. I just don’t get it.
lanyard-textile•1h ago
It must have come a long way then -- I'm integrating it into a new product and it is absolutely fantastic. It just works.
cyberax•1h ago
> Some important context is that Clerk is a major success. They just raised 50 million dollars and they have lots of satisfied users.

And even more users who are looking to escape. Clerk is just a mess. They are trying to cram EVERYTHING into their libraries: Web3 crap, Stripe, etc. Clerk's JS blob is now triggering the browser inspectors for being slow to load.

Every time when we upgraded React, Clerk libraries were the biggest pain with their transitive dependencies. We had issues with Stripe libraries with conflicting versions, etc.

And forget about debugging it. The libraries are obfuscated, and the TS code is impenetrable mess of abstractions to support "isomorphic" code that can run transparently on the frontend and backend.

And their platform itself is lacking important functionality, like freaking audit logs and versioning. Somebody (probably) accidentally changed a setting in their console, and we couldn't trace back when it happened or who did it.

Edit: oh yeah, and don't forget their unreliability. I had to wake up on Sunday to deal with Clerk failing the API calls for token refreshes last week.

notbekacru•5m ago
> And even more users who are looking to escape.

Uhm, companies like Replit and several other large startups are actually adopting Clerk. I guess if your world mainly revolves around X (formerly Twitter), it can seem like everyone is moving away from Clerk.

Also, Better Auth’s X presence is pretty much centered around criticizing every auth provider out there, so the discourse there tends to skew heavily negative.

supermdguy•58m ago
Better auth is great! I love how it's way more hackable than using a something like Clerk. We were able to add a plugin to allow auth via iframe postMessage (embedded in a CRM) and everything worked seamlessly.
wxw•55m ago
I enjoyed the Supabase migration article from a while ago (https://blog.val.town/blog/migrating-from-supabase) as well. There's a shortage of good, honest writing on long-term engineering decisions, please keep up the blog!
kandros•45m ago
Does Better Auth still have the weird design to be everything “request header based”? I remember running admin scripts and tests to be very hacky due to it cause if you skipped that plugins wouldn’t run
moomoo11•36m ago
I've just stuck with Auth0 for years now.

Easy to use and high reliability. Some of these other providers are not the best at reliability.

rbbydotdev•35m ago
Tom's articles are always a good read.

Anyone remember Auth0 and passportjs?

The churn of auth services is never ending, but I suppose so are the standards.

clintonb•27m ago
OAuth 2.x and OIDC haven’t changed much. I still use Passport.js with Firebase.
cpursley•32m ago
If you're in Elixir-land, I've put together a few packages to help migrating from Supabase (or other stacks):

- https://github.com/agoodway/introspex (generate Ecto Schemas from postgres tables)

- https://github.com/agoodway/pgrest (Supabase/PostgREST compatible query engine)

I also found this helpful in the migration: https://github.com/supabase-community/supabase-ex

Nothing for auth, I basically did a one-off script for that. Phoenix auth stuff that comes out of the box is great.

cpursley•29m ago
Oh, and http://github.com/agoodway/walex if you need the realtime database change stuff.
bekacru•31m ago
Hey, Bereket from Better Auth here. I started Better Auth to solve this exact issue for myself, and it later turned into a company. It always give me joy to just see others getting the same value from it :) There is a lot to work on, would love to know what we can improve
rbbydotdev•28m ago
Do you think the complexity of auth in the browser, is because browsers don't do enough?
bekacru•19m ago
I think auth is complicated outside of browsers too. But browsers do make some things uniquely confusing, especially cookies and general security primitives are full of footguns
WilcoKruijer•22m ago
You could almost call the comparison between Clerk and Better Auth unfair. One is a service and one is a library, apples to oranges. Any third-party service integrated into a stack is a liability, libraries as well, but to a lesser degree. It’s about time for more services to be replaced by libraries. Better Auth really shows how to do that imo, it’s a library that integrates on the frontend, backend, and database. This is why it’s so good.
snide•20m ago
This is why I'm so thankful I went with Lucia early. They sort of sunset their library and replaced it with documentation (and some small utilities) for how to manage and host authentication for yourself. It's always presented as some big, scary thing you can't manage yourself, but I found that taking the week to learn how security and basic salting works, I was able to feel more confident about how everything worked.
dakolli•15m ago
The homepage of val.town says "Zapier for know-code engineers".. Is KNOW-code engineer a term?

Valve releases Steam Controller CAD files under Creative Commons license

https://www.digitalfoundry.net/news/2026/05/valve-releases-steam-controller-cad-files-under-creat...
552•haunter•3h ago•180 comments

Appearing Productive in the Workplace

https://nooneshappy.com/article/appearing-productive-in-the-workplace/
228•diebillionaires•3h ago•76 comments

From Supabase to Clerk to Better Auth

https://blog.val.town/better-auth
80•stevekrouse•2h ago•25 comments

BYD overtakes Tesla and Kia as the best-selling EV brand in key overseas markets

https://electrek.co/2026/05/05/byd-overtakes-tesla-kia-best-selling-ev-brand-key-overseas-markets/
81•doener•55m ago•72 comments

A Theory of Deep Learning

https://elonlit.com/scrivings/a-theory-of-deep-learning/
22•elonlit•23h ago•4 comments

The bottleneck was never the code

https://www.thetypicalset.com/blog/thoughts-on-coding-agents
386•Anon84•2d ago•260 comments

CARA 2.0 – “I Built a Better Robot Dog”

https://www.aaedmusa.com/projects/cara2
401•hakonjdjohnsen•2d ago•48 comments

Show HN: I built an open-source email builder, alternative to Beefree/Unlayer

https://play.templatical.com
38•oahmadov•3h ago•13 comments

What makes a good smartphone camera?

https://cadence.moe/blog/2026-05-05-what-makes-a-good-smartphone-camera
39•zdw•1d ago•25 comments

Setting up a Sun Ray server on OpenIndiana Hipster 2025.10

https://catstret.ch/202605/srss-hipster202510/
108•jandeboevrie•8h ago•32 comments

Google tools for customizing searches

https://cardcatalogforlife.substack.com/p/google-has-a-secret-reference-desk
43•maxutility•14h ago•6 comments

Knitting bullshit

https://katedaviesdesigns.com/2026/04/29/knitting-bullshit/
367•ColinEberhardt•14h ago•157 comments

Colombia hosts talks on exiting fossil fuels as global energy crisis deepens

https://www.latimes.com/environment/story/2026-04-26/colombia-hosts-talks-on-exiting-fossil-fuels...
63•PaulHoule•2h ago•34 comments

Going Full Time on Open Source

https://jdx.dev/posts/2026-04-17-going-full-time-on-open-source/
62•thunderbong•1h ago•5 comments

Reverse-engineering the 1998 Ultima Online demo server

https://draxinar.github.io/articles/2026-05-01-uodemo-reverse-engineering.html
191•notsentient•12h ago•49 comments

Batteries Not Included, or Required, for These Smart Home Sensors

https://coe.gatech.edu/news/2026/04/batteries-not-included-or-required-these-smart-home-sensors
164•gnabgib•3d ago•61 comments

Multi-stroke text effect in CSS

https://yuanchuan.dev/multi-stroke-text-effect-in-css
263•cheeaun•14h ago•35 comments

CNN founder Ted Turner, a pioneer of cable TV news, dies at 87

https://www.cnn.com/2026/05/06/us/ted-turner-death
115•pseudolus•4h ago•89 comments

245TB Micron 6600 ION Data Center SSD Now Shipping

https://investors.micron.com/news-releases/news-release-details/industry-leading-245tb-micron-660...
213•neilfrndes•15h ago•157 comments

The Thinking Plant's Man (2025)

https://www.sciencehistory.org/stories/magazine/the-thinking-plants-man/
48•benbreen•2d ago•10 comments

Coverage Cat (YC S22) Seeks Fractional Engineer to build AI Growth Toolkit

https://www.coveragecat.com/careers/engineering/fractional-growth-engineer
1•botacode•7h ago

Wolfenstein 3D for Gameboy Color on custom cartridge (2016)

https://www.happydaze.se/wolf/
113•ksymph•2d ago•20 comments

YouTube, your RSS feeds are broken

https://openrss.org/blog/youtube-your-feeds-are-broken
290•veeti•18h ago•101 comments

Google Cloud fraud defense, the next evolution of reCAPTCHA

https://cloud.google.com/blog/products/identity-security/introducing-google-cloud-fraud-defense-t...
29•unforgivenpasta•1h ago•19 comments

Agents can now create Cloudflare accounts, buy domains, and deploy

https://blog.cloudflare.com/agents-stripe-projects/
588•rolph•16h ago•337 comments

Show HN: Tilde.run – Agent Sandbox with a Transactional, Versioned Filesystem

https://tilde.run/
89•ozkatz•3h ago•73 comments

Proton Meet

https://proton.me/business/blog/introducing-proton-meet
17•Einenlum•1h ago•1 comments

StarFighter 16-Inch

https://us.starlabs.systems/pages/starfighter
615•signa11•17h ago•336 comments

Vibe coding and agentic engineering are getting closer than I'd like

https://simonwillison.net/2026/May/6/vibe-coding-and-agentic-engineering/
177•e12e•4h ago•243 comments

SoundOff: Low-Cost Passive Ultrasound Tags

https://yibo-fu.com/SoundOff-Low-cost-Passive-Ultrasound-Tags-for-Non-invasive-and-Non
4•jonbaer•2h ago•0 comments