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,451
npm downloads a week
465kup 16% 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.

0200k400k600kOctDecJanMarMayJulOct7 October 2025: 66,038 downloads a week14 October 2025: 64,419 downloads a week21 October 2025: 70,643 downloads a week28 October 2025: 73,616 downloads a week4 November 2025: 65,315 downloads a week11 November 2025: 76,427 downloads a week18 November 2025: 77,565 downloads a week25 November 2025: 74,261 downloads a week2 December 2025: 69,711 downloads a week9 December 2025: 82,527 downloads a week16 December 2025: 78,562 downloads a week23 December 2025: 68,890 downloads a week30 December 2025: 46,163 downloads a week6 January 2026: 55,372 downloads a week13 January 2026: 80,642 downloads a week20 January 2026: 88,896 downloads a week27 January 2026: 88,724 downloads a week3 February 2026: 94,050 downloads a week10 February 2026: 98,777 downloads a week17 February 2026: 97,929 downloads a week24 February 2026: 106,117 downloads a week3 March 2026: 112,447 downloads a week10 March 2026: 116,444 downloads a week17 March 2026: 120,496 downloads a week24 March 2026: 123,107 downloads a week31 March 2026: 125,671 downloads a week7 April 2026: 126,081 downloads a week14 April 2026: 133,435 downloads a week21 April 2026: 136,635 downloads a week28 April 2026: 146,100 downloads a week5 May 2026: 152,957 downloads a week12 May 2026: 174,672 downloads a week19 May 2026: 197,813 downloads a week26 May 2026: 199,781 downloads a week2 June 2026: 217,496 downloads a week16 June 2026: 213,322 downloads a week23 June 2026: 203,397 downloads a week30 June 2026: 213,998 downloads a week7 July 2026: 215,344 downloads a week21 July 2026: 276,724 downloads a week28 July 2026: 290,294 downloads a week4 August 2026: 303,591 downloads a week11 August 2026: 310,268 downloads a week25 August 2026: 343,977 downloads a week1 September 2026: 326,564 downloads a week27 September 2026: 400,094 downloads a week4 October 2026: 465,054 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