logoalt Hacker News

Better Auth, by a self-taught Ethiopian dev, raises $5M from Peak XV, YC

274 pointsby bundielast Wednesday at 6:07 PM170 commentsview on HN

Comments

chrisldgkyesterday at 7:55 AM

At our company we use better auth for every product that has any kind of user account logic. It’s great since it’s drop-in, the plugins give so much functionality that you’d have to roll on your own in so little time and the integrations with ORMs like drizzle and prisma mean that your schemas stay the SSOT that they should be, even for auth. It’s extensible where it needs to be and brings defaults that are more than sane. Also the RPC-like TypeScript client that you also get for free is so good I don’t know how I could live without that.

Glazing over, I just wanted to give props and say that whatever good happens to better-auth, it deserves it.

danglast Wednesday at 9:55 PM

Related:

Launch HN: Better Auth (YC X25) – Authentication Framework for TypeScript - https://news.ycombinator.com/item?id=44030492 - May 2025 (106 comments)

Better Auth – Authentication library for TypeScript - https://news.ycombinator.com/item?id=42272707 - Nov 2024 (32 comments)

Show HN: Comprehensive authentication library for TypeScript - https://news.ycombinator.com/item?id=41678652 - Sept 2024 (44 comments)

show 1 reply
b0a04glyesterday at 5:24 AM

supertokens did the same thing from bengaluru. didn’t start loud. just showed up with clean abstractions that didn’t leak. you could tell someone had wrestled with real auth mess before touching a single line. it worked, across teams, stacks, workflows

better auth gives off the same shape. that gets well adopted because it survives scaling without needing a rewrite

same pattern and diff origin place. someone holding the whole stack in their head long enough to ship something

show 1 reply
blackhaj7last Wednesday at 10:04 PM

So pumped for Bereket. Better Auth is awesome.

I am also interested on how they plan to monetise it. I love the library and the success story but hope that the weight of this VC money doesn’t impact its awesomeness

show 3 replies
arnavsahu336yesterday at 8:44 PM

This is Arnav Sahu from PeakXV. I used to work at YC. Really excited for them and Bereket, the founder. He is an outlier founder.

show 1 reply
koakuma-chanyesterday at 2:19 AM

Why does a JavaScript auth library have to raise five million?

show 3 replies
arend321last Wednesday at 11:51 PM

Will this be monetized with the classic SSO enterprise subscription play? Would be nice if they are transparent on how they plan to make money.

The DX is quite nice, even though not well suited for existing projects as it is hard to migrate existing users. There is no easy way to keep existing sessions or do a legacy login, then migrate a user to the new better-auth supplied hashing function.

nickzeleiyesterday at 1:04 PM

For folks that are using better-auth: are you using anything to build your frontend with? Or just writing it from scratch? I was interested in trying this out but was kinda surprised to find this is just an sdk with no components.

I found this https://better-auth-ui.com/

Imustaskforhelpyesterday at 9:19 AM

I remember how basically better auth got a huge lead because lucia was shutdown by its dev for their own reasons which I admittedly have forgotten but they made sense and the community had accepted it.

But those who hadn't started using better auth more. And now I guess its crazy how I felt as if this would be just a small project like lucia in the sense of its just created for the passion and the art, but now it has raised 5 mill$ , I wonder if the community wanted this to be an artisanal like project like lucia before its end or what the community thinks of this move. Since VC and open source have some inherent compromises with each other and I guess I just wanted to write this to hear more about people who are using better auth in prod and what they think of what this VC funding.

show 3 replies
arvindparekhyesterday at 11:45 PM

This is awesome! I literally gave better-auth a spin 2 days ago and I was able to get it up and running within 15 minutes. I'm yet to try the plugins, but looks really easy to set up and work with, safe to say I'll be using it for future projects.

I didn't like the fact that it doesn't have a built-in sign-in ui components, but glady https://github.com/daveyplate/better-auth-ui solves it.

socketclusteryesterday at 5:12 AM

This is a nice set of tools. Very useful.

I hope they will also develop a self-hosted standalone service/node which hosts accounts and can support JWTs which I could verify on my own servers so the BetterAuth node would issue JWTs signed with a secret key I provided as an ENV var, then I could verify the JWTs on my own servers. This would be a neat decoupling. Could be offered as a SaaS service as well.

I'm also keeping tabs on https://github.com/stack-auth/stack-auth

show 1 reply
voidmain0001yesterday at 9:26 AM

Why does the article’s title state the country of origin of the developer? Does it matter? Is it a surprise that there are smart, business savvy developers across the globe?

show 2 replies
h1frayesterday at 8:06 AM

Congrats, very good library. I wonder what's going to be the business model though, since the library main difference is that it's not a cloud service

show 1 reply
sebmellenlast Wednesday at 11:15 PM

Curious how this compares to something like Ory Kratos? And what would the projected revenue stream be?

show 2 replies
govindsbyesterday at 5:14 PM

Better Auth is brilliant! My only criticism is that it's too tightly coupled with Kysely.

exiguuslast Wednesday at 11:07 PM

If i get it correctly, it solves the problem, to store data on MVP/Prototype Auth providers like Superbase, Auth0 or Firebase.

How does it compare to something mature like keycloak?

And what is the difference to just self-host superbase?

show 1 reply
yewenjielast Wednesday at 10:14 PM

Can anyone compare Better Auth with something more barebones like Lucia?

show 2 replies
dancerofaranyesterday at 2:58 AM

helllll ya!

one of the best libraries in the ecosystem. it's basically open-source Clerk without the baggage of needing to trust someone else's security story

jtmsyesterday at 3:25 AM

"Better Auth’s pitch is simple: Let developers implement everything from simple authentication flows to enterprise-grade systems directly on their databases and embed it all on the back end."

Its absolutely bonkers to me that web development has gotten to a point where this is a novel pitch. Up until not that long ago ALL auth was done directly in your own database and embeded in your own backend. Am I missing something?

show 6 replies
briandearyesterday at 11:52 AM

Aren’t we all self taught? I’m not sure why that part of the story is relevant. In over 15 years of this business, I’ve directly been on a team with probably 5-10 total people with a comp-sci degree — and that includes my time at Apple. Mark Zuckerberg was self-taught.

show 1 reply
hijinksyesterday at 2:52 AM

cant wait.. i guess on the 27th they are dropping support for SAML

alephnerdlast Wednesday at 11:42 PM

Glad to hear Peak XV getting it's moment on a competitor's forum. Jokes aside, congrats Bereket.

show 1 reply
haneullast Wednesday at 10:27 PM

Love this news! Amazing by Bereket!

rubenvanwykyesterday at 6:10 AM

Also weary now of the monetisation strategy, as this probably means that enterprise SSO will be locked behind a massive paywall?

1oooqooqyesterday at 5:35 PM

yet another jswt solution for no good reason other than js based "backends" can't really handle requests properly.

seivanyesterday at 7:21 AM

What’s the monetisation strategy here? Raising 5M for what exactly?

yodonlast Wednesday at 10:32 PM

Pretty sure auth is not something I want a self-taught dev (or even most CS-graduate devs) writing.

Oauth2, JWT's, hashes, timestamps, validations, and such, are all totally simple until they're not. The black hats have way more experience and way more time invested in this space than most any normal dev.

show 7 replies
abetancortlast Wednesday at 10:31 PM

[flagged]

show 1 reply
abc123abc123yesterday at 1:58 PM

Wonderfully racist! How is it relevant in any way that the dev is ethiopian? I couldn't care less. I care about the product or service.

show 4 replies
zeroqyesterday at 10:09 AM

I'm not sold on Better Auth.

Recently I wanted to add auth to my pet project, and between (a) using better-auth, then integrating 3rd party mailer service, and rolling out my main dashboard (b) leeching off free tier of Auth0 or Clerk and getting all batteries included I've chose the latter.

The fact that better-auth doesn't come with barebone dashboard is criminal.

For pet project it doesn't matter if I have to integrate Resend or Clerk, it's still some mental overhead I have to account for, but with Clerk at least I don't have to manage my users using sql queries.

People say it's better because you can embed it in your app. I don't buy that either. If I'd have to rollout better-auth I'd do that as a separate app, just to encapsulate database, dashboard, and integrations.

Anyway, glad it's getting traction, I just don't get all the hype around it.

show 4 replies