Gå til hovedinnhold

KLF conformance suite

The Kapi Localization Format has two reference implementations: the canonical Go engine (core/klf) and a TypeScript mirror (@neokapi/kapi-format). The spec promises they are kept byte-for-byte equivalent. This page makes that promise executable: it runs the conformance suite in your browser against both engines — the Go one compiled to WebAssembly, the TypeScript one natively — and checks that, for every operation both implement, they agree.

Each row reports the result from each engine and whether they agree. Serialization, HTML preview, annotation anchor resolution, and required-placeholder target validation run on both engines. The structural and envelope checks run on the canonical Go engine only — the TypeScript mirror does not expose an identical API for those, so those rows are marked canonical only.

Loading the KLF conformance runner…

Curious how a document flows through these operations? Open the KLF Lab and edit one live, or read the specification.