COMPARISON · AUTHENTICATION

@auth/core vs. lucia

Side-by-side comparison · 9 metrics · 12 criteria

@auth/core v0.41.3 · ISC
Weekly Downloads
7.4M
Stars
28.4K
Gzip Size
47.9 kB
License
ISC
Last Updated
8mo ago
Open Issues
608
Forks
4.0K
Unpacked Size
1.9 MB
Dependencies
N/A
lucia v3.2.2 · MIT · DEPRECATED
Weekly Downloads
867.6K
Stars
10.4K
Gzip Size
4.2 kB
License
MIT
Last Updated
1y ago
Open Issues
24
Forks
514
Unpacked Size
46.0 kB
Dependencies
4
DOWNLOAD TRENDS

@auth/core vs lucia downloads · last 12 months

Download trends for @auth/core and lucia2 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.05.7M11.5M17.2M22.9MNov 2025FebMayAugOct 2026
@auth/core
lucia
FEATURE COMPARISON

Criteria · @auth/core vs lucia

Protocol Scope
@auth/core ✓
Topics explicitly cover OAuth, OAuth2, OIDC, JWT, and CSRF
lucia
Authentication library; protocol-specific scope is not detailed in the supplied data
Adoption Signal
@auth/core ✓
Higher weekly downloads and GitHub stars
lucia
Lower weekly downloads and GitHub stars
Framework Context
@auth/core ✓
Topics identify several web-framework environments
lucia
No framework integrations are specified in the supplied data
Issue Triage Load
@auth/core
More open issues in the supplied snapshot
lucia ✓
Fewer open issues in the supplied snapshot
Integration Breadth
@auth/core ✓
Topics indicate a wider range of web contexts
lucia
Integration breadth is not specified
Migration Certainty
@auth/core
No migration compatibility details supplied
lucia
No migration compatibility details supplied
Dependency Footprint
@auth/core
Larger unpacked and gzip package figures
lucia ✓
Smaller unpacked and gzip package figures
TypeScript Signaling
@auth/core
TypeScript support is not specified in the supplied data
lucia ✓
TypeScript is included among its topics
Ecosystem Familiarity
@auth/core ✓
Larger download and star counts suggest broader developer exposure
lucia
Smaller download and star counts indicate less exposure in these figures
Simplicity Orientation
@auth/core
Broad web authentication positioning
lucia ✓
Explicitly described as simple and flexible
Flexibility Positioning
@auth/core
Broad protocol and framework scope is stated
lucia ✓
Flexibility is an explicit part of its description
Authentication Foundation Scope
@auth/core ✓
Positioned as authentication for the web with multiple protocol topics
lucia
Positioned as a simple, flexible authentication library
VERDICT

@auth/core is best suited to teams seeking a web authentication foundation that can fit into several application environments. Its stated focus and topic coverage span OAuth, OAuth2, OIDC, JWT, CSRF, and integrations associated with multiple web frameworks, making it a broad option for projects where authentication needs extend beyond a single narrowly defined setup. Its substantially higher download and star counts also indicate that developers encounter and adopt it more often, though those figures alone do not establish fit for a particular application.

lucia is best suited to developers who want a smaller, simple, and flexible authentication library and are prepared to shape their application around its approach. Its description emphasizes simplicity and flexibility rather than a framework-spanning authentication foundation, and its TypeScript topic points to a typed development context. The available information does not specify a particular session model or storage design, so those details should be checked against the package documentation before choosing lucia for requirements that depend on them.

The architectural distinction suggested by the package positioning is breadth versus a deliberately compact authentication library. @auth/core identifies a wide range of authentication protocols and web-framework contexts, giving it a broader stated scope; lucia presents itself as a simple and flexible library without comparable protocol or framework detail in the supplied data. This is a useful selection distinction, but the provided facts do not document concrete request flows, APIs, or persistence mechanisms, so a team should validate those against its own implementation needs rather than infer them from names or topics.

Their extension and integration expectations also appear different in scope. @auth/core’s topics name multiple framework environments and several authentication standards, which makes it the more apparent candidate when a project needs to evaluate support across different web contexts; the data does not, however, establish a specific adapter or plugin API. lucia’s stated flexibility may suit an application that wants to keep its authentication layer small and application-shaped, but no extension mechanism is specified here, so do not assume it offers a particular plugin system or framework integration without confirming the documented interface.

For developer experience, @auth/core offers more visible ecosystem signposts: the supplied topics identify a range of protocols and framework settings, and its usage figures show a much larger installed audience. That can help teams researching examples and integration choices, but it does not prove documentation quality or make the learning process simpler. lucia’s simplicity-oriented description and much smaller distribution footprint may appeal to developers who want a compact dependency; its TypeScript topic is a useful signal, not evidence of specific type guarantees, debugging facilities, or tooling.

The measurable size difference is meaningful for dependency budgets. lucia is 4.2 kB gzip compared with 47.9 kB for @auth/core, and its unpacked package is 46.0 kB rather than 1.9 MB, so lucia is the clearer choice when minimizing the authentication package’s shipped or installed footprint is a priority. These package figures do not by themselves predict runtime latency, total application bundle impact, or the size of surrounding integrations; evaluate the full application build before treating them as performance results.

Choose @auth/core when the project needs the broader stated protocol and framework scope, or when familiarity with a more widely adopted package is important to the team’s evaluation. Choose lucia when a compact package and a simplicity-oriented authentication library better match the design, and when its documented interfaces satisfy the application’s specific requirements. In either case, verify the exact protocol flows, framework compatibility, and operational needs before committing; the supplied metadata cannot settle those implementation questions.

Migration and maintenance decisions deserve particular care because the packages are not presented as interchangeable wrappers. A move from @auth/core to lucia, or in the reverse direction, should be treated as a reassessment of authentication integration rather than a drop-in package swap; the available information does not describe compatible APIs or a migration path. @auth/core has far more open issues in the supplied snapshot, while lucia has fewer, but issue counts are not a direct measure of resolution quality, support guarantees, or future maintenance, and the stated update dates alone cannot establish a long-term roadmap.

For edge cases, @auth/core’s named OAuth, OIDC, JWT, and CSRF topics make it the more clearly documented candidate in this comparison for teams whose evaluation centers on those areas or on varied web-framework contexts. lucia may be attractive where a lean authentication dependency and a flexible application-level fit matter more, but the supplied facts do not confirm specialized protocol behavior or deployment-specific support. Treat those as verification points: compare the actual documented capabilities with the application’s security, integration, and deployment constraints before adoption.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

RELATED COMPARISONS 8
@auth/core vs jwt-decode ★ 31.8K · 33.8M/wk @auth/core vs next-auth ★ 56.8K · 16.4M/wk @auth/core vs @clerk/nextjs ★ 30.2K · 11.2M/wk @auth/core vs @supabase/supabase-js ★ 33.0K · 73.8M/wk @auth/core vs @auth0/nextjs-auth0 ★ 30.7K · 8.6M/wk @auth/core vs jose ★ 36.3K · 246.1M/wk jose vs lucia ★ 18.3K · 239.6M/wk lucia vs next-auth ★ 38.8K · 9.9M/wk