Skip to content

Lucia

Lucia was an open source authentication library for JavaScript and TypeScript applications, distributed as an npm package rather than a hosted service. It was deprecated in March 2025, and the project now points developers to a single-file code example as a replacement for the npm package, along with a guide called the Auth Book.

By Lucia (Pilcrow)Open sourceSince 2022Auth

Facts checked on against the sources listed at the end of this page.

Discontinued. Lucia was deprecated in March 2025. The maintainer now recommends using a single-file code reference as a replacement for the npm package, along with guidance from the project's Auth Book, rather than continuing to depend on the library itself.

Pricing
Open sourceFree plan: Yes, was free and open source; the npm package is deprecated but source remains on GitHub
Open source
YesMIT
GitHub stars
10,441−10 in the last 30 days
npm downloads a week
744kup 7% on the week before

A good fit for

  • Developers researching Lucia's approach to code-first authentication before choosing a currently maintained library
  • Studying the single-file authentication reference the project now recommends in place of the deprecated package

Not a good fit for

  • New projects, since the npm package was deprecated in March 2025 and is no longer actively maintained
  • Teams wanting a currently supported authentication library or managed service

Lucia pricing

Lucia was free and open source under the MIT license. The npm package itself is now deprecated (as of March 2025), with the project's source remaining available on GitHub for reference.

Prices in USD, checked on 27 September 2026. Current prices on lucia-auth.com.

Main features

Code-first authentication
Gave developers direct control over authentication logic rather than a managed service.
Framework integration
Used within JavaScript/TypeScript frameworks like SvelteKit and Next.js.
Open source
Released under the MIT license, source still available on GitHub.
Single-file replacement guide (post-deprecation)
The project now points to a single-file code example as an alternative to the deprecated package.

About Lucia

Lucia was a lightweight, open source authentication library for JavaScript and TypeScript applications, distributed as an npm package rather than a hosted authentication service, giving developers direct control over their authentication logic and session handling.

It was popular among developers who wanted a minimal, code-first approach to authentication rather than a full managed service, particularly within frameworks like SvelteKit and Next.js.

The project was deprecated in March 2025, with the maintainer instead pointing developers to a single-file code example intended as a complete replacement for the npm package, along with a companion resource called the Auth Book for authentication guidance more broadly.

Made by
Lucia (Pilcrow)
Free plan
Yes, was free and open source; the npm package is deprecated but source remains on GitHub
Available on
Node.js, JavaScript/TypeScript frameworks

Usage and activity

GitHub stars, last 12 months. Updated 17 November 2026.

10.4k10.4k10.4k10.5kSepOctOctOctOctNovNovNov29 September 2026: 10,446 stars6 October 2026: 10,451 stars13 October 2026: 10,452 stars20 October 2026: 10,450 stars27 October 2026: 10,452 stars3 November 2026: 10,451 stars10 November 2026: 10,446 stars17 November 2026: 10,441 stars

Weekly npm downloads of lucia, last 12 months.

0200k400k600k800kOctDecFebAprJunAugNov19 October 2025: 67,470 downloads a week26 October 2025: 72,204 downloads a week2 November 2025: 69,651 downloads a week9 November 2025: 74,087 downloads a week16 November 2025: 74,437 downloads a week23 November 2025: 76,876 downloads a week30 November 2025: 68,641 downloads a week7 December 2025: 82,201 downloads a week14 December 2025: 79,692 downloads a week21 December 2025: 74,563 downloads a week28 December 2025: 48,842 downloads a week4 January 2026: 49,103 downloads a week11 January 2026: 77,779 downloads a week18 January 2026: 86,154 downloads a week25 January 2026: 87,423 downloads a week1 February 2026: 91,290 downloads a week8 February 2026: 101,815 downloads a week15 February 2026: 96,980 downloads a week22 February 2026: 101,570 downloads a week1 March 2026: 112,874 downloads a week8 March 2026: 112,012 downloads a week15 March 2026: 123,606 downloads a week22 March 2026: 119,078 downloads a week29 March 2026: 124,991 downloads a week5 April 2026: 126,383 downloads a week12 April 2026: 131,750 downloads a week19 April 2026: 131,569 downloads a week26 April 2026: 141,631 downloads a week3 May 2026: 157,537 downloads a week10 May 2026: 164,294 downloads a week17 May 2026: 192,022 downloads a week24 May 2026: 204,580 downloads a week31 May 2026: 214,569 downloads a week7 June 2026: 196,116 downloads a week14 June 2026: 209,542 downloads a week21 June 2026: 198,152 downloads a week28 June 2026: 214,584 downloads a week5 July 2026: 205,071 downloads a week12 July 2026: 258,374 downloads a week19 July 2026: 277,292 downloads a week26 July 2026: 287,662 downloads a week2 August 2026: 294,625 downloads a week9 August 2026: 307,949 downloads a week16 August 2026: 365,172 downloads a week23 August 2026: 335,946 downloads a week30 August 2026: 326,547 downloads a week6 September 2026: 373,983 downloads a week28 September 2026: 414,721 downloads a week5 October 2026: 458,373 downloads a week1 November 2026: 627,519 downloads a week8 November 2026: 693,536 downloads a week15 November 2026: 744,134 downloads a week

Lucia alternatives

Questions about Lucia

Is Lucia still maintained?

No, it was deprecated in March 2025. The maintainer now recommends a single-file code replacement instead of the npm package.

Was Lucia free?

Yes, it was open source and free under the MIT license.

What should I use instead of Lucia now?

The project points to a single-file code example as a direct replacement, along with its Auth Book guide for broader authentication guidance.

Sources and links

Work on Lucia? Claim this listing. Something wrong or out of date? Suggest a correction. Stats come from the public GitHub and npm APIs and update every day.

Lucia: pricing, features and alternatives (2026) | ScratchDB