Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@pq-jwt/core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pq-jwt/core - npm Package Compare versions

Comparing version
1.0.3
to
1.0.4
+11
-0
CHANGELOG.md
# Changelog
## 1.0.4 — 2026-05-16
### Fixed
- Add `types` to `package.json` `exports` for TypeScript 5+ (`NodeNext` / `Bundler` resolution)
- Ship `src/index.d.ts` explicitly in the npm package
## 1.0.3 — 2026-05-16
- Published under `@pq-jwt/core` org scope
## 1.0.0 — 2025-05-16

@@ -4,0 +15,0 @@

+12
-6
{
"name": "@pq-jwt/core",
"version": "1.0.3",
"version": "1.0.4",
"description": "Post-quantum JWT library using NIST-standardized ML-DSA and SLH-DSA. Drop-in successor to RS256/ES256.",

@@ -10,2 +10,3 @@ "type": "module",

".": {
"types": "./src/index.d.ts",
"import": "./src/index.mjs",

@@ -40,3 +41,4 @@ "default": "./src/index.mjs"

"files": [
"src/",
"src/index.mjs",
"src/index.d.ts",
"README.md",

@@ -47,13 +49,17 @@ "LICENSE",

"types": "./src/index.d.ts",
"scripts": {
"test": "node test/test.mjs",
"test:ecosystem": "node test/ecosystem/run.mjs"
},
"engines": {
"node": ">=16.0.0"
"node": ">=20.19.0"
},
"repository": {
"type": "git",
"url": "https://github.com/ruhil6789/pq-jwt.git"
"url": "https://github.com/pq-jwt/PQ-JWT.git"
},
"bugs": {
"url": "https://github.com/ruhil6789/pq-jwt/issues"
"url": "https://github.com/pq-jwt/PQ-JWT/issues"
},
"homepage": "https://github.com/ruhil6789/pq-jwt#readme"
"homepage": "https://github.com/pq-jwt/PQ-JWT#readme"
}

@@ -1,4 +0,7 @@

# PQ-JWT - Post-Quantum JWT Node.js Library
# PQ-JWT - Universal Post-Quantum JWT Library
[![CI](https://github.com/ruhil6789/pq-jwt/actions/workflows/ci.yml/badge.svg)](https://github.com/ruhil6789/pq-jwt/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/@pq-jwt/core?color=blue)](https://npmjs.com/package/@pq-jwt/core)
[![CI](https://github.com/pq-jwt/PQ-JWT/actions/workflows/ci.yml/badge.svg)](https://github.com/pq-jwt/PQ-JWT/actions)
[![npm downloads](https://img.shields.io/npm/dm/@pq-jwt/core)](https://npmjs.com/package/@pq-jwt/core)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

@@ -9,2 +12,14 @@ A comprehensive, production-ready JavaScript/Node.js library for generating, managing, signing, and verifying **Post-Quantum Cryptography (PQC) JSON Web Tokens (JWTs)**. It acts as a drop-in successor to broken RS256/ES256 libraries.

## Ecosystem
| Package | Description |
| --------------------------------------------------------- | -------------------------------------------- |
| [`@pq-jwt/core`](https://npmjs.com/package/@pq-jwt/core) | This library — sign, verify, ML-DSA, SLH-DSA |
| [`PQ-JWT-Demo`](https://github.com/pq-jwt/PQ-JWT-Demo) | Full demo — Express, MongoDB, TypeScript, UI |
## Author
**Sachin Ruhil** · [github.com/ruhil6789](https://github.com/ruhil6789)
npm: [npmjs.com/~ruhil6789](https://www.npmjs.com/~ruhil6789)
---

@@ -14,3 +29,3 @@

- **Zero Native Dependencies**: Uses pure JS math, running seamlessly in Node.js >= 16 without complex C++ bindings.
- **Zero Native Dependencies**: Uses pure JS math, running seamlessly in Node.js >= 20.19 without complex C++ bindings.
- **Post-Quantum Ready**: Implements NIST-standardized ML-DSA (Dilithium) and SLH‑DSA (SPHINCS+) signature algorithms.

@@ -27,3 +42,3 @@ - **Familiar API**: Syntax identical to classic JWT libraries (`sign()`, `verify()`, `decode()`, `refresh()`).

- Node.js 16.0.0 or higher
- Node.js 20.19.0 or higher

@@ -30,0 +45,0 @@ ---

/**
* @package @pq-jwt/core
* @author Sachin Ruhil <sachinruhil11@gmail.com>
* @version 1.0.2
* @version 1.0.4
* @license MIT
* @description Post-quantum JWT library — NIST FIPS 204 (ML-DSA) + FIPS 205 (SLH-DSA)
* @copyright 2025 Sachin Ruhil. All rights reserved.
* @see https://github.com/ruhil6789/PQ-JWT
* @see https://github.com/pq-jwt/PQ-JWT
*/

@@ -10,0 +10,0 @@

/**
* @package @pq-jwt/core
* @author Sachin Ruhil <sachinruhil11@gmail.com>
* @version 1.0.2
* @version 1.0.4
* @license MIT
* @description Post-quantum JWT library — NIST FIPS 204 (ML-DSA) + FIPS 205 (SLH-DSA)
* @copyright 2025 Sachin Ruhil. All rights reserved.
* @see https://github.com/ruhil6789/PQ-JWT
* @see https://github.com/pq-jwt/PQ-JWT
*/

@@ -10,0 +10,0 @@