{"versions":{"1.0.0":{"name":"@lukeburns/clatterjs","version":"1.0.0","description":"Noise protocol framework with Post-Quantum extensions for JavaScript using @noble cryptography","license":"MIT","author":{"name":"Luke Burns"},"type":"module","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"publishConfig":{"access":"restricted"},"scripts":{"build":"node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc","test":"cross-env TEST_MATRIX=fast vitest run","test:fast":"cross-env TEST_MATRIX=fast vitest run","test:ci":"cross-env TEST_MATRIX=ci vitest run --pool=threads --fileParallelism false","test:watch":"vitest"},"dependencies":{"@noble/ciphers":"^2.2.0","@noble/curves":"^2.2.0","@noble/hashes":"^2.2.0","@noble/post-quantum":"^0.6.1"},"devDependencies":{"cross-env":"^7.0.3","typescript":"^5.6.0","vitest":"^2.1.0"},"gitHead":"37c3ddd488b6d4d01aa05e5d0477e7ca7d404111","_id":"@lukeburns/clatterjs@1.0.0","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-b1uUTULv09SFJuAKKCz3+2pi5XqoyLeRCY5Xt8Ghrl8cEI6ab2gbGHB+upkQrrDx4cy8T00ShO5Sl43GQPbg3A==","shasum":"09aeb712a5a6785309113f7b3179d43bf4c7c4b8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@lukeburns/clatterjs/-/clatterjs-1.0.0.tgz","fileCount":95,"unpackedSize":267198,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID2W7hbgaV31kvHjwZbofDY+js47lnRNmhVboEkUaDT4AiBXo2vfZQzKYpVvv/MpdUyIR/YPE3sSIGBZkt1sK1fOdQ=="}],"size":37773},"_npmUser":{"name":"anonymous","email":"lukemburns@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"lukemburns@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/clatterjs_1.0.0_1776989636560_0.5304042256893691"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-24T00:13:56.738Z","publish_time":1776989636738,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"1.0.0"},"name":"@lukeburns/clatterjs","time":{"created":"2026-05-16T05:34:12.451Z","modified":"2026-05-16T05:34:13.080Z","1.0.0":"2026-04-24T00:13:56.738Z"},"readme":"# clatterjs\n\nNoise post-quantum (PQ) handshakes in TypeScript using [`@noble/ciphers`](https://github.com/paulmillr/noble-ciphers), [`@noble/hashes`](https://github.com/paulmillr/noble-hashes), and [`@noble/post-quantum`](https://github.com/paulmillr/noble-post-quantum) (ML-KEM).\n\n## Test matrix & parity (vs the clatter Rust crate)\n\n| Area | clatter (Rust) | clatterjs |\n| --- | --- | --- |\n| PQ smokes (26 patterns × 8 cipher/hash × ML-KEM sizes) | `tests/src/smoke.rs` | `tests/smoke_pq.test.ts` — set `TEST_MATRIX=ci` for the full matrix; `test` / `test:fast` use one cipher/hash and fewer KEM sizes for speed |\n| `verify_handshake` transport | `tests/src/lib.rs` | `tests/helpers/harness.ts` — `verifyHandshake` / `verifyHandshakePq` |\n| PQ pattern list (order) | `pq_handshake_patterns()` | `src/pqPatterns.ts` + `export { pqHandshakePatterns }` from package root |\n| `TransportState` API + tests | `src/transportstate.rs` + `#[cfg(test)]` | `src/transportState.ts` + `tests/transportState.test.ts` + `tests/transport_nq_oneway.test.ts` (`noise_n` one-way violations mirrored) |\n| Deterministic PQ (DummyRng) | `no_getrandom_smoke.rs` | `tests/no_getrandom_pq.test.ts`, `tests/helpers/dummyRng.ts` (optional first-message snapshot) |\n| Symmetric + cipher unit tests | `symmetricstate.rs` / `cipherstate.rs` | `tests/symmetricState.test.ts`, `tests/cipherState.test.ts` |\n| `HandshakePattern` PSK + PQ order | `handshakepattern.rs` | `tests/handshakePattern.test.ts` |\n| PQ PSK runtime (pq.rs) | `handshakestate/pq.rs` | `tests/pqHandshake.psk.test.ts` |\n| NQ smokes + no_getrandom + vectors hook | `smoke`, `no_getrandom_smoke`, `vectors` | `tests/smoke_nq.test.ts`, `tests/no_getrandom_nq.test.ts`, `tests/tier2_nq_vectors.test.ts` (optional vectors file currently parse-smoke only) |\n| Hybrid + dual-layer | `smoke` hybrid/dual-layer sections | `tests/tier3_hybrid.test.ts` (smokes + CI matrix), `tests/no_getrandom_hybrid_duallayer.test.ts` (deterministic no_getrandom parity) |\n| Hybrid PSK runtime (hybrid.rs) | `handshakestate/hybrid.rs` | `tests/hybridHandshake.psk.test.ts` |\n\n**Single-KEM vs two vendors:** clatter’s Rust tests sometimes cross-check PQClean vs `rust_crypto` ML-KEM in one run. clatterjs uses a single KEM implementation (`@noble/post-quantum`); a second KEM back end would be required for the same cross-vendor check.\n\n## Scripts\n\n- `npm test` / `npm run test:fast` — `TEST_MATRIX=fast`: one cipher/hash and reduced KEM set; suitable for local development.\n- `npm run test:ci` — `TEST_MATRIX=ci`: full PQ matrix (all ML-KEM sizes, all eight cipher/hash pairs). Allow several minutes; Vitest is configured with an extended `testTimeout` in CI.\n- `npx vitest run tests/transport_nq_oneway.test.ts` — direct run for `noise_n` one-way transport parity checks.\n- `npx vitest run tests/hybridHandshake.psk.test.ts tests/no_getrandom_hybrid_duallayer.test.ts` — targeted hybrid parity checks.\n\n## CI timeouts\n\nThe full matrix runs hundreds of KEM handshakes. Use `test:ci` only in CI (or on demand). Adjust `testTimeout` in `vitest.config.ts` if hardware is slower.","users":{}}