A Go-based authentication and user management server that issues JWTs, powering Supabase Auth.
clerk/javascript
Official JavaScript SDKs for Clerk, a hosted service for user sign-up, sign-in and profile management in web apps.
Open-source alternative to:Auth0
Firebase Authentication
- Stars
- 1,777
- Forks
- 485
- Open issues
- 124
- Last commit
- 16 hours ago
What is it?
This repository holds the official Clerk JavaScript SDKs, published under the @clerk npm namespace. Clerk is a hosted authentication and user management service, and these packages let developers add sign-up, sign-in and profile management to their applications without building that flow from scratch.
The repo covers the core browser client (@clerk/clerk-js) along with framework-specific packages for Next.js, React, Vue, Nuxt, Astro, Expo, React Router, TanStack and Express, Fastify and other Node.js backends. Each integration exposes components and helpers suited to its framework, and the organizations feature supports grouping users, managing roles and permissions, and controlling access for multi-tenant applications.
Developers typically install a single framework package, such as @clerk/nextjs, and follow the quickstart guides on the Clerk documentation site to connect it to an application created in the Clerk Dashboard.
Key features
- 01Provides sign-up, sign-in and profile management components for web apps.
- 02Ships framework-specific packages for Next.js, React, Vue, Nuxt, Astro, Expo and more.
- 03Includes Node.js backend integrations for Express and Fastify.
- 04Offers an organizations feature for roles, permissions and multi-tenant access control.
- 05Published as MIT-licensed packages under the @clerk npm namespace.
Use cases
- Adding user authentication to a Next.js or React application without building login from scratch.
- Protecting routes and API endpoints in an Express or Fastify backend using Clerk sessions.
- Building B2B or multi-tenant software that needs organizations, roles and permissions.
Quick start
- 1
Sign up and create an application in the Clerk Dashboard
- 2
Spin up a codebase with a Clerk quickstart guide
- 3
Install the SDK for your framework, for example Next.js
npm install @clerk/nextjs
Things to know
- Clerk is a hosted service, so using it requires a Clerk account and API keys.
- This repository holds SDKs for supported platforms, so you install a framework-specific package rather than this repo itself.
In collections
Topics
FAQ
- What is javascript?
- Official JavaScript SDKs for Clerk, a hosted service for user sign-up, sign-in and profile management in web apps. This repository holds the official Clerk JavaScript SDKs, published under the @clerk npm namespace. Clerk is a hosted authentication and user management service, and these packages let developers add sign-up, sign-in and profile management to their applications without building that flow from scratch.
- Is javascript free to use? What license does it have?
- javascript is open source under the MIT license. Check the license terms before using it in commercial products.
- Is javascript still maintained?
- Actively maintained. The last commit to javascript was on Nov 7, 2026.
- What can I use javascript for?
- Adding user authentication to a Next.js or React application without building login from scratch. Protecting routes and API endpoints in an Express or Fastify backend using Clerk sessions. Building B2B or multi-tenant software that needs organizations, roles and permissions.
- How do I install javascript?
- Sign up and create an application in the Clerk Dashboard Spin up a codebase with a Clerk quickstart guide Install the SDK for your framework, for example Next.js: npm install @clerk/nextjs
- Where can I get javascript?
- The source code and installation instructions are on GitHub: https://github.com/clerk/javascript
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A Python library that adds user registration, login, password reset and email verification to FastAPI applications.
Headless, API-first identity and user management service in Go covering login, registration, recovery, verification and profile flows.
Open-source authentication and authorization infrastructure built on OIDC and OAuth 2.1, with multi-tenancy, enterprise SSO and RBAC for SaaS and AI apps.
A framework for building documentation websites with React.js, supporting Next.js, Astro, and Vite-based React frameworks.