qmetrics.net

PKI.js

TypeScript PKI library using Web Crypto in browsers and Node

PKI.js screenshot

PKI.js implements common public-key infrastructure formats and workflows in JavaScript. Cryptography is delegated to the Web Crypto API with no browser plugins.

Overview

PKI.js is a TypeScript library for building applications that use X.509 certificates and related standards. It covers the data structures and protocols typically found in signing, encryption, enrollment, and validation flows.

You can create, parse, sign, and verify X.509 certificates and PKCS#10 certificate requests. Chain validation can check revocation using certificate revocation lists and OCSP. The library also handles Cryptographic Message Syntax for signing and encryption, including S/MIME-style use cases and signed PDF verification described in its examples.

Time-stamp protocol requests and responses let you prove data existed before a given time. PKCS#12 and PKCS#8 support covers password- or certificate-protected key containers. PKI objects are built on asn1js, and the design intentionally avoids shipping its own cryptographic primitives.

The project targets native web applications and Node.js environments that already expose Web Crypto. Documentation and examples walk through certificates, CRLs, OCSP, CMS, timestamps, and PKCS#12 handling.

Key features

  • X.509 certificate create, parse, sign, and verify
  • PKCS#10 certificate request handling
  • Certificate chain validation with CRL and OCSP
  • CMS signing and encryption
  • RFC 3161 timestamp requests and responses
  • PKCS#12 and PKCS#8 key containers
  • Web Crypto API for all cryptography
  • TypeScript-oriented PKI object model

Use cases

  • Browser-based certificate tooling without plugins
  • S/MIME message signing and verification
  • OCSP and CRL processing in custom apps
  • CMS encryption and signature workflows

Tags

Similar software

Auth.js

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

  • OAuth 2.0 and OIDC providers
  • Email and passwordless sign-in
  • WebAuthn passkey support
TypeScriptDetails →
★ 28.4k⟳ 4 months agoISC
Open Source Alternative to:Amazon CognitoAuth0+4

Devise

Modular authentication engine for Ruby on Rails

Devise adds sign-in, registration, and related account flows to Rails apps through a Warden-backed engine. Teams enable only the authentication modules they need for each user model.

  • Rack and Warden integration
  • Pluggable authentication modules
  • Rails engine MVC stack
RubyDetails →
★ 24.3k⟳ 1 month agoMIT

Sa-Token

Java lightweight permission and session framework

Sa-Token adds login, permission checks, SSO, OAuth2, and microservice gateway auth to Java web projects with minimal boilerplate.

  • Login and permission annotations
  • Distributed session with Redis
  • Built-in SSO mode variants
JavaDetails →
★ 19.1k⟳ 16 days agoApache-2.0

jsonwebtoken

Node.js library for signing and verifying JSON Web Tokens

jsonwebtoken implements JWT creation and verification for Node.js using HMAC, RSA, ECDSA, and related algorithms. It exposes sign, verify, and decode helpers built on node-jws.

  • JWT sign and verify APIs
  • HMAC and asymmetric algorithms
  • Standard claim options
JavaScriptDetails →
★ 18.2k⟳ 5 months agoMIT

JustAuth

Java library for third-party OAuth login

JustAuth is a Java component that wires social and enterprise OAuth providers into applications without vendor-specific SDKs. It exposes a small API with builder-style configuration.

  • Dozens of built-in OAuth providers
  • Builder and plain API styles
  • Custom OAuth platform adapters
JavaDetails →
★ 17.6k⟳ 1 year agoMIT
Identity & Access Management (IAM)No commits in 18+ months

laravel-permission

Laravel roles and permissions management package

A Laravel package that stores roles and permissions in your database and wires them to users, with helpers to assign capabilities and check access through Laravel's gate and Blade.

  • Database-backed roles and permissions
  • Assign permissions and roles to users
  • Permissions registered on Laravel gate
PHPDetails →
★ 13k⟳ 4 days agoMIT