COMPARISON · AUTHENTICATION

@auth/core vs. @supabase/supabase-js

Side-by-side comparison · 9 metrics · 14 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
@supabase/supabase-js v2.119.2 · MIT
Weekly Downloads
66.4M
Stars
4.6K
Gzip Size
61.1 kB
License
MIT
Last Updated
9mo ago
Open Issues
198
Forks
815
Unpacked Size
676.9 kB
Dependencies
9
DOWNLOAD TRENDS

@auth/core vs @supabase/supabase-js downloads · last 12 months

Download trends for @auth/core and @supabase/supabase-js2 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.042.1M84.2M126.3M168.4MNov 2025FebMayAugOct 2026
@auth/core
@supabase/supabase-js
FEATURE COMPARISON

Criteria · @auth/core vs @supabase/supabase-js

Learning Scope
@auth/core
Concentrated on authentication concepts and flows
@supabase/supabase-js
Broader platform surface to learn when using backend features
Protocol Scope
@auth/core ✓
Topics include OAuth, OAuth2, OIDC, and JWT
@supabase/supabase-js
Topics emphasize Supabase and database access
Framework Reach
@auth/core ✓
Topics span multiple web frameworks and runtimes
@supabase/supabase-js
JavaScript client with an isomorphic design
Bundle Footprint
@auth/core ✓
Smaller reported gzip bundle at 47.9 kB
@supabase/supabase-js
Larger reported gzip bundle at 61.1 kB
Platform Coupling
@auth/core ✓
Authentication-focused scope leaves data services separate
@supabase/supabase-js
Designed around the Supabase backend service
Unpacked Footprint
@auth/core
Larger reported unpacked package at 1.9 MB
@supabase/supabase-js ✓
Smaller reported unpacked package at 676.9 kB
Backend Data Access
@auth/core
Authentication scope; not presented as a database client
@supabase/supabase-js ✓
Database and PostgreSQL-oriented backend client scope
Integration Breadth
@auth/core
Narrower identity integration responsibility
@supabase/supabase-js ✓
Combines backend client scope with authentication
Authentication Focus
@auth/core ✓
Dedicated focus on authentication for the web
@supabase/supabase-js
Authentication within a broader backend SDK
Data-Service Migration
@auth/core ✓
Does not define a Supabase data-client dependency
@supabase/supabase-js
Application data access can depend on the Supabase client model
Primary Responsibility
@auth/core
Authentication-focused foundation for web identity flows
@supabase/supabase-js
Isomorphic client for Supabase backend services, including authentication
Authentication-Only Use
@auth/core ✓
Purpose-built around authentication needs
@supabase/supabase-js
Broader SDK may exceed an authentication-only requirement
Environment Consistency
@auth/core
Web authentication foundation; environment behavior not specified
@supabase/supabase-js ✓
Isomorphic client intended for JavaScript across environments
Backend-Centered Applications
@auth/core
Requires a separate choice for backend data access
@supabase/supabase-js ✓
Fits applications using Supabase backend capabilities
VERDICT

@auth/core is focused on authentication as a distinct web capability: it handles sign-in flows and identity concerns rather than providing an application’s general data layer. Its audience is developers who want authentication across web frameworks and protocols, reflected in its stated OAuth, OAuth2, OIDC, JWT, and framework-related topics. Choose it when identity is the requirement and you want an authentication-centered foundation rather than a full backend client.

@supabase/supabase-js is an isomorphic JavaScript SDK for Supabase, with a broader role as a client for a backend service. Its database and PostgreSQL-related topics, alongside its Authentication and Backend as a Service categories, indicate a fit for applications that need to connect identity with backend capabilities. It is a more natural choice when the application is organized around Supabase services, not solely around authentication.

The central architectural distinction is the boundary each package exposes: @auth/core is centered on authentication flows, while @supabase/supabase-js is centered on interacting with a backend platform. That affects data flow as well as scope. With @auth/core, the integration problem is primarily how a user authenticates; with @supabase/supabase-js, authentication is one part of a wider client relationship that can also involve database access.

Their extension decisions follow those different boundaries. @auth/core’s listed protocol and framework topics point toward adapting authentication to different web environments and identity flows, whereas @supabase/supabase-js’s isomorphic design points toward using a consistent JavaScript client across environments. These are not interchangeable extension models: framework flexibility does not make @auth/core a database SDK, and an isomorphic backend client does not make @supabase/supabase-js a dedicated authentication core.

The learning curve therefore depends on what the application needs to explain. A developer adopting @auth/core can keep attention on identity concepts and the authentication integration, but must use other capabilities for data services when needed. @supabase/supabase-js introduces a broader platform-oriented surface; that can simplify an application already using Supabase, while requiring a developer seeking only authentication to engage with more than an auth-specific package. The supplied details do not establish comparative TypeScript ergonomics or debugging tools, so those should be evaluated against the application’s actual integration requirements.

For bundle-sensitive deployments, @auth/core has the smaller reported gzip bundle at 47.9 kB, compared with 61.1 kB for @supabase/supabase-js. That is a concrete advantage when the package itself is included in a constrained client bundle, though the difference alone does not determine total application performance. The unpacked figures also differ, with @supabase/supabase-js smaller at 676.9 kB versus 1.9 MB; unpacked size and shipped gzip bundle measure different aspects, so deployment decisions should use the relevant one rather than treating them as the same measure.

Pick @auth/core for a web application that needs an authentication-focused foundation, especially when its OAuth, OIDC, JWT, or framework-oriented scope matches the sign-in design and another system supplies data services. Pick @supabase/supabase-js when the application is built around Supabase and needs its JavaScript client for backend access in addition to authentication. If the requirement is only sign-in, the broader SDK may be unnecessary; if the requirement includes Supabase data access, @auth/core alone does not cover that role.

The ecosystem choice also shapes future migration. Using @supabase/supabase-js ties application data access to the Supabase client and backend model, so replacing that platform would involve more than changing authentication code. Using @auth/core keeps the package’s stated responsibility narrower, which can make it a clearer boundary when data services are selected separately; however, moving between authentication approaches still requires reviewing sign-in flows and application integration rather than assuming a drop-in replacement.

A useful edge-case distinction is whether the application needs authentication to stand alone or as part of a backend service. @auth/core’s protocol and framework breadth is relevant when the identity flow is the main design constraint, while @supabase/supabase-js’s isomorphic client and database-oriented scope are relevant when consistent access to Supabase services matters across environments. The reported figures show substantially more weekly downloads for @supabase/supabase-js, but adoption volume does not resolve that architectural choice: select by the package boundary the application intends to depend on.

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 lucia ★ 38.8K · 8.2M/wk @auth/core vs next-auth ★ 56.8K · 16.4M/wk @auth/core vs @clerk/nextjs ★ 30.2K · 11.2M/wk @auth/core vs @auth0/nextjs-auth0 ★ 30.7K · 8.6M/wk @auth/core vs jose ★ 36.3K · 246.1M/wk @supabase/supabase-js vs next-auth ★ 33.0K · 75.5M/wk @supabase/supabase-js vs jwt-decode ★ 8.0K · 92.9M/wk