# Lucia: 1.6 out of 10

Do not start with it. 10th of 10 in [Authentication libraries](https://elestia.ai/opensource/auth/index.md).

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.

## Scores

- **Overall: 1.6** (likely 0.8 to 2.5)
  - Claude Opus 5.5 (1.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): 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 many: 5.8** (likely 4.5 to 7.0)
  - Claude Opus 5.5 (6.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.
  - GPT-6.2 Sol (5.5): 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 lot: 4.4** (likely 3.3 to 6.2)
  - Claude Opus 5.5 (3.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): 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 time: 0.8** (likely 0.0 to 1.7)
  - Claude Opus 5.5 (1.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.
  - GPT-6.2 Sol (0.6): 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.
- **Used widely: 3.2** (likely 1.8 to 4.6)
  - Claude Opus 5.5 (3.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.
  - GPT-6.2 Sol (3.4): 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 for: 2.4** (likely 1.2 to 3.6)
  - Claude Opus 5.5 (2.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): 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.
- **Safe: 4.1** (likely 2.8 to 5.9)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (4.1): 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.

## 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

- Downloads, 4 weeks: 2.9M
- In a year: ×9.8
- GitHub stars: 10k
- Commits, 12 months: 9
- Last npm release: Oct 2024
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/lucia-auth/lucia
- npm: https://www.npmjs.com/package/lucia

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
