Editorial take
Why it stands out
Compare Auth.js when Next.js ecosystem defaults matter; compare Clerk when you want hosted components and org billing without writing session tables.
Tool profile
TypeScript session and user-id helper—not a hosted IdP. You keep the database schema and plug in passwords, OAuth, or passkeys yourself.
Teams outgrowing ad-hoc session cookies who still want code ownership
Lucia sits in the space between rolling crypto from scratch and buying a full auth SaaS: it helps you model users and sessions in your database with framework adapters for Astro, SvelteKit, Next.js, and more. You still choose credential strategies, email providers, and threat handling, which keeps flexibility high and vendor lock-in low. Skip it if you want a turnkey login UI and compliance packet next Monday.
Quick fit
Editorial take
Compare Auth.js when Next.js ecosystem defaults matter; compare Clerk when you want hosted components and org billing without writing session tables.
What it does well
Primary use cases
Fit notes
Pricing snapshot
Lucia is open source and free; budget for your database, hosting, email delivery, OAuth app registrations, and your own engineering time—not a vendor subscription.