Elestia Open Source Ratings
1.6

Lucia

Do not start with it. 10th of 10 authentication libraries.

Lucia was a popular session-based auth library, but its maintainer deprecated the npm package in March 2025. The package has had no release since October 2024 (v3.2.2), and the project is now a guide to writing auth yourself. Do not start a new project on the lucia package. Use Better Auth for a full library, or follow the Lucia guides with Oslo and Arctic if you want to own your auth code.

Best for: Existing Lucia v3 codebases planning a migration, and developers reading the Lucia guides to write their own session code.

WebsiteGitHubnpm

Scores

Overall1.6

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 1.5, likely 1.0 to 2.5

The package is officially deprecated and unmaintained, so it should not be used for new work. Its value today lies in the guides, which teach you to write sessions yourself with Oslo and Arctic. Better Auth is the active replacement for most people.

GPT-6.2 Sol: 1.6, likely 0.6 to 2.4

Lucia still handles database-backed sessions in existing apps, but its confirmed deprecation makes it a poor choice for a new dependency. Better Auth is actively released and covers both sign-in and sessions. The support decision is explicit, so uncertainty about Lucia's current usage has little effect on the recommendation.

Needed by many5.8

How many developers need a tool for this job?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Most web apps need sign-in and sessions, so the category is broad. Lucia works on any framework and runtime. Its take is narrower than full libraries: it manages sessions that you wire up yourself, and OAuth lives in the separate Arctic package.

  • category.job: Sign-in and sessions are needed in most web apps.
  • lucia-auth.com: Session-focused and framework-agnostic.

GPT-6.2 Sol: 5.5, likely 4.0 to 7.0

Sign-in and sessions are common needs for web apps. Lucia runs across frameworks and runtimes, but its narrower API fits teams that want to build their own sign-in flows. The survey covers React developers, so the size of that group across JavaScript and TypeScript is uncertain.

Helps a lot4.4

How well does it do the job for those who need it?

Claude Opus 5.5: 3.0, likely 2.0 to 5.0

The v3 package works, and its session API is clean and well typed. It has no built-in OAuth, 2FA or passkeys, and its adapters are deprecated. Better Auth does the same job with far more features and current support. AI agents may still produce outdated v2 or v3 code for it.

GPT-6.2 Sol: 5.8, likely 4.5 to 7.3

Lucia 3.2.2 has a compact typed API for session creation, validation, revocation, and cookies. Better Auth covers more of the job by including password and social sign-in. The API and user reports establish that the session core works, though comparative performance and coding-agent integration quality remain uncertain.

Holds up over time0.8

Will it still be a good choice in two years?

Claude Opus 5.5: 1.0, likely 0.0 to 2.0

npm marks the package deprecated, and the maintainer ended library support in March 2025. There were 0 releases and only 9 commits in the last year, all to the learning content. Its successor is a set of guides, not a package.

  • npm deprecated: Deprecation notice points to the v3 migration page.
  • github releasesLastYear / commitsLastYear: 0 releases and 9 commits.
  • lucia-auth.com/lucia-v3/migrate: Says v3 is no longer maintained.

GPT-6.2 Sol: 0.6, likely 0.0 to 1.3

Lucia last published to npm in October 2024 and was formally deprecated in March 2025. The repository now houses replacement code and documentation, and the maintainer archived the example projects. That explicit change in direction makes continued package maintenance unlikely.

  • npm latestPublishedAt, versionsLastYear, deprecated: October 2024 last publication, zero new versions in the last year
  • lucia-auth.com: Confirms March 2025 deprecation and links to the replacement
  • pilcrowonpaper.com/blog/18: Repository repurposed and example projects archived
Used widely3.2

How many use it, and is that growing?

Claude Opus 5.5: 3.0, likely 2.0 to 4.0

Downloads went from 294K to 2.9M in four weeks year over year, a ratio well above the 4.1 median. For a deprecated package with 9 dependent repos and 28 dependent packages, that rise most likely comes from automation or transitive installs, not people choosing it. Real new adoption is close to zero, and the projects that still use it are older ones.

  • npm downloadsLast4Weeks: 2.89M, against 294K a year before.
  • dependents: 9 repos and 28 packages, far below peers.
  • bluesky posts: 2 posts with no engagement.

GPT-6.2 Sol: 3.4, likely 1.6 to 5.1

Four-week downloads rose from 294,011 to 2.89 million, up 9.8× against the catalog median of 4.1×. The share of installs rose, while the share reporting past use in the State of React survey fell from 6.8% to 4.9%. Ecosyste.ms found only 9 dependent repositories, far fewer than for Auth.js or Passport. Automated installs and incomplete repository coverage leave the number of active projects uncertain.

Vouched for2.4

Who stands behind it being good?

Claude Opus 5.5: 2.0, likely 1.0 to 3.0

It used to be well regarded, and starters such as supastarter shipped it. Those starters have since moved off it. Current independent sources describe it as dead and recommend Better Auth or Auth.js instead.

GPT-6.2 Sol: 2.7, likely 1.3 to 4.2

Developers report successful use in Next.js, but recent evidence of production use and satisfaction is sparse. Svelte's CLI replaced its Lucia add-on with Better Auth. In Armature's coding-agent study, Lucia came up in 69 sessions and was adopted in zero, which measures selection in that sample.

Safe4.1

How safe is it to depend on?

Claude Opus 5.5: 4.0, likely 3.0 to 6.0

There are no advisories, only 2 dependencies, and an MIT licence. But a deprecated auth library will not get security fixes if a flaw is found, and there is no Scorecard data. The risk lies in that lack of future fixes, not in any known issue.

  • advisories total: 0 advisories.
  • npm dependencies: 2 dependencies.
  • scorecard: No Scorecard data.

GPT-6.2 Sol: 4.1, likely 2.5 to 5.8

Lucia has two direct dependencies, a permissive MIT license, and zero recorded OSV advisories. The deprecated package lacks an active patch path for newly discovered flaws. The repository publishes no security policy, and the bundle has no OpenSSF Scorecard, leaving release controls uncertain.

  • npm dependencies, license, deprecated: Two direct dependencies, MIT license, and formal deprecation
  • advisories.total, scorecard: Zero OSV advisories and no Scorecard result
  • github.com/lucia-auth/lucia/security: GitHub lists no security policy or published advisories

Good

  • The v3 API is small and clear, built on database-backed sessions with no hidden magic.
  • The docs and the new guides teach session handling well and are widely praised.
  • Only 2 dependencies, an MIT licence and no known advisories.
  • The migration guide shows how to replace the package with a small amount of your own code.

Bad

  • The npm package is officially deprecated and gets no releases or security fixes.
  • The database adapters were deprecated too, so integrations will drift as ORMs and drivers change.
  • Ecosyste.ms finds only 9 dependent repos, a tiny base next to its peers.
  • Better Auth now covers the same job with active maintenance and far more features.

The numbers

npm downloads, 4 weeks
2.9M ×9.8 in a year
GitHub stars
10k
Commits, 12 months
9
npm version
3.2.2 Oct 2024
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (lucia-auth/lucia), npm (lucia), OSV and the OpenSSF Scorecard.

Authentication libraries

  1. 8.5Better Auth
  2. 8.3jose
  3. 7.9openid-client
  4. 6.8iron-session
  5. 6.3SuperTokens
  6. 5.2jsonwebtoken
  7. 4.9Passport
  8. 4.0Auth.js
  9. 1.6Arctic
  10. 1.6Lucia
Compare all 10 on six scores