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,452+6 in the last 30 days
npm downloads a week
458kup 11% 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

Weekly npm downloads of lucia, last 12 months.

0200k400k600kSepNovJanMarMayJulOct24 September 2025: 61,330 downloads a week1 October 2025: 63,229 downloads a week8 October 2025: 65,426 downloads a week15 October 2025: 65,420 downloads a week22 October 2025: 71,573 downloads a week29 October 2025: 71,595 downloads a week5 November 2025: 66,777 downloads a week12 November 2025: 76,629 downloads a week19 November 2025: 79,010 downloads a week26 November 2025: 72,908 downloads a week3 December 2025: 73,248 downloads a week10 December 2025: 79,913 downloads a week17 December 2025: 79,036 downloads a week24 December 2025: 62,017 downloads a week31 December 2025: 46,334 downloads a week7 January 2026: 61,660 downloads a week14 January 2026: 82,363 downloads a week21 January 2026: 87,659 downloads a week28 January 2026: 90,184 downloads a week4 February 2026: 94,791 downloads a week11 February 2026: 99,248 downloads a week18 February 2026: 97,492 downloads a week25 February 2026: 108,621 downloads a week4 March 2026: 112,014 downloads a week11 March 2026: 117,748 downloads a week18 March 2026: 119,947 downloads a week25 March 2026: 124,301 downloads a week1 April 2026: 126,988 downloads a week8 April 2026: 126,862 downloads a week15 April 2026: 130,316 downloads a week22 April 2026: 139,840 downloads a week29 April 2026: 149,341 downloads a week6 May 2026: 152,805 downloads a week13 May 2026: 178,672 downloads a week20 May 2026: 198,541 downloads a week27 May 2026: 203,729 downloads a week3 June 2026: 214,827 downloads a week10 June 2026: 193,775 downloads a week17 June 2026: 212,822 downloads a week24 June 2026: 203,708 downloads a week1 July 2026: 212,799 downloads a week8 July 2026: 223,325 downloads a week22 July 2026: 280,017 downloads a week29 July 2026: 289,603 downloads a week5 August 2026: 305,237 downloads a week12 August 2026: 314,534 downloads a week26 August 2026: 347,888 downloads a week2 September 2026: 327,561 downloads a week28 September 2026: 414,721 downloads a week5 October 2026: 458,373 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