Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Auth and security libraries for projects built with AI agents

Sessions, tokens, hashing, auth frameworks. 141 tools ranked by how many of 6,258 public projects built with AI coding agents use them, with downloads and GitHub stars. Downloads and stars checked Nov 24, 2026; project counts updated Nov 26, 2026.

How agent projects choose

Among JavaScript/TypeScript projects set up for AI coding agents, bcryptjs leads with 4.0%, ahead of NextAuth.js (3.1%) and jsonwebtoken (3.1%). Projects with bcryptjs most often also use Next.js (70.9%). Among Python projects set up for AI coding agents, cryptography leads with 9.1%, ahead of PyJWT (7.3%) and python-jose (3.6%). Projects with cryptography most often also use python-dotenv (66.2%).

Share of 4,867 JS / TS and 1,623 Python projects in our scan that list each tool.

Head to head: jsonwebtoken vs joseNextAuth.js vs Better Authbcryptjs vs bcrypt (JavaScript)Better Auth vs ClerkNextAuth.js vs ClerkPyJWT vs python-josepasslib vs bcrypt (Python)

Tool Gid Score Used in agent projectsDownloads / wk GitHub starsLicense
bcryptjs npm
Pure JavaScript bcrypt implementation for secure password hashing without dependencies.
69 196 (4.0%) 19.9M 3,795 BSD-3-Clause
NextAuth.js npm
Complete open-source authentication solution designed for Next.js applications.
75 150 (3.1%) 9.4M 28.4K ISC
jsonwebtoken npm
Create, verify and decode JSON Web Tokens for authentication and secure data transmission.
79 149 (3.1%) 84.5M 18.2K MIT
cryptography pypi
Python library providing cryptographic recipes and primitives for secure applications.
77 148 (9.1%) 316M 7,859 Apache-2.0 OR BSD-3-Clause
PyJWT pypi
Python library for encoding and decoding JSON Web Tokens.
74 118 (7.3%) 176M 5,729 MIT
jose npm
Comprehensive JWT and JWK handling for Node.js and web runtimes.
75 108 (2.2%) 244M 7,894 MIT
Better Auth npm
Comprehensive authentication framework for TypeScript with multiple strategies.
79 103 (2.1%) 21.1M 30.9K MIT
DOMPurify npm
Fast XSS sanitizer for HTML, MathML and SVG protecting against injection attacks.
77 101 (2.1%) 107M 17.5K (MPL-2.0 OR Apache-2.0)
Helmet npm
Express middleware that sets HTTP security headers to prevent vulnerabilities.
72 93 (1.9%) 23.6M 10.7K MIT
bcrypt (JavaScript) npm
Password hashing library for secure credential storage in Node.js applications.
66 64 (1.3%) 8.3M 7,808 MIT
Clerk npm
Modern authentication and user management SDK for Next.js and React.
62 58 (1.2%) 4.1M 1,784 MIT
python-jose pypi
JOSE (JSON Object Signing and Encryption) implementation for Python.
58 58 (3.6%) 7.1M 1,756 MIT
passlib pypi
Comprehensive password hashing framework supporting 30+ algorithms and schemes.
64 58 (3.6%) 7.9M — BSD
bcrypt (Python) pypi
Modern password hashing library with secure bcrypt algorithm implementation.
66 55 (3.4%) 41M 1,509 Apache-2.0
MarkupSafe pypi
Utility for safely escaping and marking HTML/XML strings to prevent injection attacks.
67 45 (2.8%) 198M 702 BSD-3-Clause
google-auth-oauthlib pypi
OAuth library for Google authentication flows in Python applications.
69 45 (2.8%) 28M 5,422 Apache-2.0
azure-identity pypi
Microsoft Azure identity authentication library for Python.
69 43 (2.6%) 34.1M 5,625 MIT
Auth.js Prisma Adapter npm
Prisma ORM adapter for Auth.js enabling session and account storage integration.
61 42 (0.9%) 948K 28.4K ISC
Passport.js npm
Modular authentication middleware for Node.js supporting OAuth, JWT and local strategies.
69 33 (0.7%) 10.5M 23.5K MIT
crypto-js npm · no longer maintained
JavaScript library implementing cryptographic standards for encryption and hashing.
73 32 (0.7%) 28.1M 16.4K MIT
SlowAPI pypi
Rate limiting extension for FastAPI and Starlette to protect APIs from abuse.
54 32 (2.0%) 5.7M 2,071 MIT
keyring pypi
Python library for securely storing and retrieving passwords and secrets.
61 28 (1.7%) 37.7M 1,520 MIT
itsdangerous pypi
Cryptographic signing utilities for safely passing data to untrusted environments.
70 26 (1.6%) 49.2M 3,144 BSD
Authlib pypi
Ultimate Python library for building OAuth and OpenID Connect servers and clients.
70 26 (1.6%) 38.2M 5,462 BSD
isomorphic-dompurify npm
Server and client-side HTML sanitization using DOMPurify.
52 26 (0.5%) 8.9M 609 MIT
pyasn1 pypi
Pure Python implementation of ASN.1 types and DER/BER/CER codecs.
64 24 (1.5%) 117M 54 BSD-2-Clause
argon2-cffi pypi
Python binding for Argon2 password hashing algorithm.
58 24 (1.5%) 20M 743 MIT
Azure Identity npm
Credential implementations for Azure SDK to authenticate with Microsoft Entra ID.
62 24 (0.5%) 25.2M 2,301 MIT
express-session npm
Session middleware for Express enabling user authentication and state management.
62 22 (0.5%) 6.1M 6,356 MIT
@auth/core npm
Flexible authentication library for web applications with built-in provider integrations.
69 20 (0.4%) 7.7M 28.4K ISC
jwt-decode npm
Decode JWT tokens in the browser without server verification for inspection.
62 18 (0.4%) 26.9M 3,398 MIT
SimpleWebAuthn Server npm
Server-side WebAuthn implementation for passwordless authentication using FIDO2 standards.
59 18 (0.4%) 12.4M 2,398 MIT
passport-local npm
Passport strategy for local username and password authentication.
54 17 (0.3%) 2.8M 2,753 MIT
defusedxml pypi
Protects Python XML parsing from billion laughs and other XML bomb attacks.
63 16 (1.0%) 68.6M 560 PSF-2.0
@noble/hashes npm
Audited zero-dependency JavaScript implementation of SHA, BLAKE, HMAC, HKDF, PBKDF.
62 15 (0.3%) 156M 945 MIT
Forge npm · new in the catalog
TLS, PKI, ciphers and message digests implemented in pure JavaScript.
65 15 (0.3%) 55.5M 5,355 (BSD-3-Clause OR GPL-2.0)
SimpleWebAuthn npm
Browser library for implementing passwordless authentication using WebAuthn standards.
57 15 (0.3%) 11.6M 2,398 MIT
xss npm
Sanitizes untrusted HTML to prevent XSS attacks using whitelist configuration.
60 14 (0.3%) 7.9M 5,311 MIT
React Turnstile npm · new in the catalog
Cloudflare Turnstile CAPTCHA for React.
48 14 (0.3%) 3.9M 872 MIT
oauthlib pypi
Comprehensive OAuth request-signing implementation for Python, handling authentication flows securely.
69 13 (0.8%) 62.8M 2,989 BSD-3-Clause
@auth/drizzle-adapter npm
Adapter enabling Auth.js authentication to work with Drizzle ORM databases.
55 13 (0.3%) 458K 28.4K ISC
Passport JWT npm
Passport strategy for authenticating API requests using JSON Web Tokens.
53 13 (0.3%) 5.7M 1,978 MIT
NextAuth Prisma Adapter npm
Prisma database adapter for NextAuth authentication framework.
52 13 (0.3%) 349K 28.4K ISC
requests-oauthlib pypi
OAuth authentication support for the Requests HTTP library.
66 12 (0.7%) 63.2M 1,772 BSD
PyCryptodome pypi
Self-contained cryptography library for Python with encryption, hashing and signing.
63 12 (0.7%) 19.9M 3,295 BSD-2-Clause AND Unlicense AND MIT
MSAL for Python pypi
Microsoft Authentication Library for Azure AD and Microsoft account auth.
58 12 (0.7%) 42.2M 981 MIT
otplib npm
TypeScript library for generating and verifying TOTP and HOTP one-time passwords.
53 12 (0.2%) 5.5M 2,310 MIT
CycloneDX for npm npm · new in the catalog
Creates a CycloneDX software bill of materials (SBOM) for npm projects.
40 11 (0.2%) 697K 154 Apache-2.0
openid-client npm · new in the catalog
OAuth 2.0 and OpenID Connect client for JavaScript runtimes.
59 11 (0.2%) 26M 2,452 MIT
secretlint npm · new in the catalog
Finds secrets (API keys, tokens) committed to code.
51 11 (0.2%) 3.1M 1,509 MIT
MSAL Node npm · new in the catalog
Microsoft Authentication Library for Node.js: sign users in with Microsoft Entra ID.
60 11 (0.2%) 32.2M 4,155 MIT
rsa pypi · no longer maintained
Pure Python RSA encryption and decryption implementation for secure communication.
62 10 (0.6%) 44.3M 487 Apache-2.0
React Native Google Sign-In npm · new in the catalog
Google sign-in for React Native apps.
50 10 (0.2%) 1.9M 3,553 MIT
bcrypt-ts npm · new in the catalog
bcrypt password hashing in TypeScript, no native build.
36 9 (0.2%) 244K 48 MIT
@node-rs/argon2 npm · new in the catalog
Fast Argon2 password hashing for Node.js, in Rust.
48 9 (0.2%) 3.2M 1,489 MIT
Laravel Passkeys npm · new in the catalog
Passkey client for Laravel apps.
35 9 (0.2%) 375K 64 MIT
PyOTP pypi
Generate and validate one-time passwords (OTP) for two-factor authentication.
59 8 (0.5%) 11M 3,348 MIT
CASL npm · new in the catalog
Isomorphic authorization: define what each user may do, check it anywhere.
54 8 (0.2%) 2.9M 7,121 MIT
@noble/ed25519 npm
Fast, compact JavaScript implementation of Ed25519 signatures for cryptographic operations.
48 7 (0.1%) 4.3M 525 MIT
node-argon2 npm · new in the catalog
Argon2 password hashing for Node.js.
50 7 (0.1%) 3.6M 2,194 MIT
Auth0 Next.js SDK npm · new in the catalog
Auth0 sign-in for Next.js apps.
46 7 (0.1%) 1.3M 2,313 MIT
zxcvbn-ts npm · new in the catalog
Realistic password strength estimation in TypeScript.
47 7 (0.1%) 3M 1,246 MIT
Nuxt Auth Utils npm · new in the catalog
Sealed-cookie sessions and OAuth sign-in for Nuxt.
36 7 (0.1%) 188K 1,609 MIT
sigstore-js npm · new in the catalog
Signs and verifies software artifacts with Sigstore.
45 7 (0.1%) 14.9M 188 Apache-2.0
PyNaCl pypi
Python binding to NaCl cryptography library for secure encryption and signing.
60 6 (0.4%) 40.2M 1,212 Apache-2.0
rate-limiter-flexible npm
Node.js rate limiting and DDoS/brute-force protection at scale with atomic counters.
59 6 (0.1%) 4.9M 3,607 ISC
@noble/curves npm
Audited minimal JavaScript implementation of elliptic curve cryptography.
60 6 (0.1%) 51.9M 973 MIT
Polar better-auth npm
Polar integration for better-auth authentication framework.
46 6 (0.1%) 53.1K 10.5K Apache-2.0
Convex Auth npm · new in the catalog
Authentication for Convex apps.
46 6 (0.1%) 814K 191 Apache-2.0
cookies-next npm · new in the catalog
Reads and writes cookies on the client and server in Next.js.
43 6 (0.1%) 1.3M 764 MIT
Iron Session npm · new in the catalog
Secure, stateless cookie-based session library with encryption.
53 6 (0.1%) 3.9M 4,156 MIT
OTPAuth npm · new in the catalog
One-time passwords (HOTP and TOTP) for Node.js, Deno, Bun and browsers.
48 6 (0.1%) 4.5M 1,493 MIT
React Google reCAPTCHA npm
React component wrapper for Google reCAPTCHA bot protection.
45 5 (0.1%) 1.9M 1,081 MIT
lockfile-lint npm · new in the catalog
Lints lockfiles against security policies.
39 5 (0.1%) 497K 871 Apache-2.0
react-cookie npm · new in the catalog
Reads and writes cookies in React, on the client and server.
41 5 (0.1%) 1.5M 214 MIT
Auth0 React SDK npm · new in the catalog
Auth0 sign-in for React single-page apps.
47 5 (0.1%) 2.6M 992 MIT
py_webauthn pypi · new in the catalog
WebAuthn and passkeys for Python servers, from Duo Labs.
43 5 (0.3%) 3.2M 1,076 BSD-3-Clause
react-turnstile npm · new in the catalog
Cloudflare Turnstile for React.
32 5 (0.1%) 342K 159 MIT
jwks-rsa npm · new in the catalog
Fetches RSA signing keys from a JWKS endpoint to verify JWTs (Auth0, Okta, Cognito).
48 5 (0.1%) 23.4M 875 MIT
Nuxt Security npm · new in the catalog
Security headers and middleware for Nuxt.
33 5 (0.1%) 245K 986 MIT
Privy Auth npm
React authentication SDK enabling Web2 and Web3 logins with embedded wallets.
56 4 (0.1%) 778K — Apache-2.0
js-sha256 npm
Pure JavaScript implementation of SHA-256 hashing with UTF-8 encoding support for browsers and Node.js.
53 4 (0.1%) 7.9M 977 MIT
React OAuth Google npm
React component for integrating Google OAuth2 authentication with Identity Services.
46 4 (0.1%) 1.7M 1,339 MIT
Keytar npm · no longer maintained
Native bindings to macOS, Linux and Windows password managers for secure credential storage.
49 4 (0.1%) 4M 1,424 MIT
noble-ciphers npm · new in the catalog
Audited, minimal JavaScript implementation of AES, ChaCha20 and Salsa20.
53 4 (0.1%) 62.9M 438 MIT
libsodium.js npm · new in the catalog
The Sodium crypto library compiled to JavaScript and WebAssembly.
49 4 (0.1%) 7.7M 1,167 ISC
@napi-rs/keyring npm · new in the catalog
Node.js binding to native OS keyrings for secure credential storage.
46 4 (0.1%) 8.6M 109 MIT
connect-redis npm · new in the catalog
Redis session store for Express.
46 4 (0.1%) 2.1M 2,820 MIT
MSAL Extensions pypi
Persistence layer for MSAL with encrypted disk storage across platforms.
54 3 (0.2%) 32.6M 43 MIT
SafeHTTPX pypi
HTTP client wrapper preventing Server-Side Request Forgery (SSRF) attacks.
41 3 (0.2%) 1.1M 72 MIT
Groovy pypi · no longer maintained
SSRF protection library for securing HTTP requests in Python applications.
41 3 (0.2%) 1M 103 MIT
joserfc pypi · new in the catalog
Python implementation of the JOSE standards: JWS, JWE, JWK and JWT.
52 3 (0.2%) 34.7M 184 BSD
Simple JWT pypi · new in the catalog
JWT authentication for Django REST framework.
49 3 (0.2%) 1.9M 4,336 MIT
Safety pypi · new in the catalog
Scans Python dependencies for known vulnerabilities.
38 3 (0.2%) 612K 1,999 MIT
pip-audit pypi · new in the catalog
Scans Python environments and requirements for known vulnerabilities.
48 3 (0.2%) 10.1M 1,412 Apache-2.0
hCaptcha React npm · new in the catalog
hCaptcha bot protection component for React.
42 3 (0.1%) 2M 674 MIT
node-oidc-provider npm · new in the catalog
OAuth 2.0 authorization server with OpenID Connect for Node.js.
49 3 (0.1%) 1.7M 3,861 MIT
Standard Webhooks npm · new in the catalog
Signs and verifies webhooks following the Standard Webhooks spec.
57 3 (0.1%) 62.3M 1,814 MIT
react-google-recaptcha-v3 npm · new in the catalog
Google reCAPTCHA v3 for React.
36 3 (0.1%) 812K 466 MIT
FingerprintJS npm · new in the catalog
Browser fingerprinting library for device identification and fraud prevention.
57 3 (0.1%) 2.8M 28.8K MIT
react-native-passkeys npm · new in the catalog
Passkeys (WebAuthn) on iOS, Android and web with one API.
38 3 (0.1%) 507K 158 MIT
oauth-cli-kit pypi · new in the catalog
Reusable OAuth 2.0 and PKCE helpers for building CLI applications.
30 3 (0.2%) 50.7K — MIT
py-vapid pypi · new in the catalog
Generate VAPID headers for Web Push Protocol authentication.
40 3 (0.2%) 3.8M 97 MPL-2.0
oidc-client-ts npm · new in the catalog
OpenID Connect and OAuth2 client library for secure authentication flows.
45 3 (0.1%) 3.5M 1,968 Apache-2.0
asn1crypto pypi
ASN.1 parser and serializer for cryptographic keys, certificates and protocols.
51 2 (0.1%) 33M 364 MIT
blake3-py pypi · new in the catalog
Python bindings for the fast BLAKE3 hash function.
46 2 (0.1%) 5.1M 209 CC0-1.0 OR Apache-2.0
nh3 pypi · new in the catalog
Fast HTML sanitizer for Python, bindings to the Rust Ammonia crate.
47 2 (0.1%) 10.8M 410 MIT
Convex Better Auth npm · new in the catalog
Better Auth authentication integration for Convex backend.
40 2 (0.0%) 502K 765 Apache-2.0
node-saml npm · new in the catalog
SAML 2.0 authentication implementation for Node.js applications.
44 2 (0.0%) 2.2M 135 MIT
@peculiar/webcrypto npm · new in the catalog
WebCrypto API for Node.js.
48 2 (0.0%) 12.7M 202 MIT
@fastify/helmet npm · new in the catalog
Sets important security headers in Fastify.
43 2 (0.0%) 4M 465 MIT
harden-react-markdown npm · new in the catalog
react-markdown wrapper that only allows trusted link and image URLs.
36 2 (0.0%) 315K 131 MIT
pwdlib pypi · new in the catalog
Modern password hashing library with multiple algorithm support.
36 2 (0.1%) 1.1M 187 MIT
WorkOS Node SDK npm · new in the catalog
Node.js SDK for WorkOS: SSO, directory sync and user management.
44 2 (0.0%) 6M 229 MIT
hash-wasm npm · new in the catalog
Fast hash functions (SHA, BLAKE3, Argon2, bcrypt) in WebAssembly.
46 2 (0.0%) 3.3M 1,177 MIT
react-native-keychain npm · new in the catalog
Secure credential storage via keychain/keystore for React Native apps.
43 2 (0.0%) 694K 3,489 MIT
Noble Post-Quantum npm · new in the catalog
Auditable JavaScript implementation of FIPS post-quantum cryptography standards.
42 2 (0.0%) 1.7M 375 MIT
Fastify Session npm · new in the catalog
Session management plugin for Fastify server framework.
30 2 (0.0%) 288K 130 MIT
Snyk npm · new in the catalog
CLI and library for finding and fixing security vulnerabilities.
43 2 (0.0%) 782K 5,719 Apache-2.0
pip-system-certs pypi · new in the catalog
Configure Python to use system certificates via truststore.
37 2 (0.1%) 905K — BSD-3-Clause
ecdsa pypi
Pure Python ECDSA cryptographic signature library.
54 1 (0.1%) 9.9M 975 MIT
Dynamic Labs React SDK npm · new in the catalog
React SDK for web3 wallet authentication and authorization.
41 1 (0.0%) 119K — MIT
js-sha3 npm · new in the catalog
SHA-3 and Keccak hash functions in JavaScript.
43 1 (0.0%) 5.2M 369 MIT
Kerberos npm · new in the catalog
Kerberos authentication support for Node.js applications.
36 1 (0.0%) 622K 179 Apache-2.0
hvac pypi · new in the catalog
Python client for HashiCorp Vault.
44 1 (0.1%) 5.3M 1,324 Apache-2.0
elliptic npm · new in the catalog
Elliptic-curve cryptography (ECDSA, ECDH) in pure JavaScript.
50 1 (0.0%) 17.2M 1,765 MIT
pwntools pypi · new in the catalog
CTF framework and exploit development library for security research and testing.
48 1 (0.1%) 231K 13.9K MIT
Auth0 Python SDK pypi
Official Auth0 SDK for authentication and user management.
45 0 (0.0%) 2M 578 MIT
Sanic JWT pypi
JWT authentication and OAuth flow implementation for Sanic web framework.
24 0 (0.0%) 34.3K 246 MIT
docker-pycreds pypi
Python bindings for Docker credential store enabling secure credential management.
41 0 (0.0%) 1.5M 7 Apache-2.0
tarsafe pypi · new in the catalog
Safe drop-in TarFile that blocks path traversal on extract.
26 0 (0.0%) 70.1K 24 MIT License
conda-content-trust pypi
Signing and verification tools for ensuring conda package integrity.
8 0 (0.0%) 73 10 BSD
Microsoft Presidio pypi · new in the catalog
Detects personal data (PII) in text so you can redact it.
53 0 (0.0%) 1.6M 12K MIT
Presidio Anonymizer pypi
Library for anonymizing sensitive data by replacing identified PII.
50 0 (0.0%) 862K 12K MIT
coincurve pypi · new in the catalog
Fast, safe secp256k1 elliptic curve operations for Python.
36 0 (0.0%) 722K 184 MIT OR Apache-2.0
Farcaster Quick Auth npm · new in the catalog
Sign in with Farcaster for mini apps.
32 0 (0.0%) 116K 14 MIT
JWCrypto pypi · new in the catalog
Python implementation of JOSE: JWK, JWS, JWE and JWT.
40 0 (0.0%) 4.4M 480 LGPL-3.0-or-later
LavaMoat allow-scripts npm · new in the catalog
Runs only allow-listed install scripts of dependencies.
38 0 (0.0%) 301K 1,249 MIT
python-gnupg pypi · new in the catalog
Wrapper around GNU Privacy Guard (GPG) for encryption and signing.
37 0 (0.0%) 3.2M 147 BSD
@cloudflare/workers-oauth-provider npm · new in the catalog
OAuth provider implementation for Cloudflare Workers serverless platform.
41 0 (0.0%) 1.2M 1,901 MIT
micro-key-producer npm · new in the catalog
Generate secure passwords and cryptographic keys for WebCrypto, SSH, PGP, OTP.
24 0 (0.0%) 52.3K 82 MIT

Other categories

Web frameworks UI components and icons Styling and CSS Animation and motion 3D and graphics Charts and data visualisation Forms, validation and schemas State and data fetching Markdown, editors and content Desktop and mobile apps Utilities Model SDKs Agent, MCP and tool libraries Prompts, structured output and evals ML and data science Databases, ORMs and clients SDKs for hosted services Jobs, queues and workflows Files, images and media Scraping, browsers and parsing HTTP servers and APIs HTTP clients and networking Testing Linting and formatting Languages, types and runtimes Build tools and bundlers Dev workflow and config Logging, monitoring and analytics Crypto and web3 Game development