Repolode
clerk

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:Auth0Firebase 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. 1

    Sign up and create an application in the Clerk Dashboard

  2. 2

    Spin up a codebase with a Clerk quickstart guide

  3. 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

Open-source cookie consent manager and GDPR cookie banner for React, Next.js, Vue, Svelte, Astro and plain HTML, with Google Consent Mode v2 and IAB TCF support.

Security#cookie-consent#gdpr#consent-management
2K+3 this week269TypeScriptApache-2.0Updated yesterday