
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@hookwarden/canonical-json
Advanced tools
In-house RFC 8785 JSON Canonicalization Scheme (JCS) encoder. Zero runtime dependencies, pure ECMAScript, no Node built-ins. The byte-equality anchor for hookwarden's audit-log signing + evidence-pack verification — vendorable into cross-language auditor
An in-house RFC 8785 JSON Canonicalization Scheme (JCS) encoder. Zero runtime dependencies. Pure ECMAScript, no Node built-ins — vendorable into auditor tooling.
Hookwarden's audit log signs canonical bytes (Phase 7) and exports
evidence packs (Phase 12) that auditors verify with non-JS tooling
(Python cryptography, Go crypto/ecdsa, Java). The encoding MUST
be deterministic and cross-language re-derivable. JCS (RFC 8785) is
the only ratified standard meeting that bar. JSON.stringify does
not — its key order is engine-defined and it silently coerces NaN/
Infinity to "null".
The reference implementation @cyberphone/json-canonicalization is
unmaintained since 2020, so we re-implement in-house with a
property-based test against the RFC §B vectors (decision D-06).
import { canonicalize } from "@hookwarden/canonical-json";
canonicalize({ b: 1, a: 2 }); // '{"a":2,"b":1}'
canonicalize([1, 2, 3]); // '[1,2,3]'
canonicalize(1e21); // '1e+21'
canonicalize(NaN); // throws RangeError
canonicalize(undefined); // throws TypeError
The function throws on values JSON cannot represent (NaN, ±Infinity, bigint, symbol, undefined, function) rather than silently coercing. This is the D-06 correctness invariant that makes evidence packs cross-language verifiable.
FAQs
In-house RFC 8785 JSON Canonicalization Scheme (JCS) encoder. Zero runtime dependencies, pure ECMAScript, no Node built-ins. The byte-equality anchor for hookwarden's audit-log signing + evidence-pack verification — vendorable into cross-language auditor
We found that @hookwarden/canonical-json demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.