Repository navigation
Releases
GlyphPack 1.0.1
GlyphPack 1.0.1 fixes file handling in the CLI and browser workbench. All 26 browser decoder modules are byte-for-byte identical to 1.0.0.
- The CLI reports extra encode inputs, ignored options supplied with
build --all, and inject templates missing__PAYLOAD__. The injector accepts UTF-8 and UTF-16LE packets with a byte order mark. - The workbench can reopen every native packet extension. Standalone exports preserve unchecked UTF-8 input, and text previews handle multibyte characters at the display boundary.
- The npm archive includes the three runnable examples. Package installation and TypeScript declarations were checked on Node 20, 22, and 24.
The release candidate passed 70,968 decode calls against expected bytes using the candidate and 1.0.0 decoders. Chromium 109 and 156 passed the offline HTML tests.
npm install glyphpack@1.0.1The web ZIP includes modules, declarations, examples and documentation. The Linux CLI archives contain static x86_64 and aarch64 binaries. Download SHA256SUMS to verify individual files.
GlyphPack 1.0.0 — first stable production release
GlyphPack 1.0.0 is the first stable production release and a new payload/API baseline for embedding binary data in standalone HTML. The 0.1.x releases are alpha prereleases, and the 0.2.x releases are beta prereleases. Earlier experimental payload formats are unsupported.
- Five tagged codecs: UTF-16 pair, UTF-16 ANS, Windows-1252, fast UTF-8 and compact UTF-8.
- Strict format and BLAKE3 verification by default, with selectable XXH32/no-integrity policies and optional pair lookup optimization.
- Build only the codecs and policies you need, or use the full module with all 60 combinations. Matching TypeScript declarations are included.
- Native Rust encoding and HTML injection; measured JS/Wasm decode paths, owned output buffers and mandatory allocation/state bounds.
- Chrome 109+ baseline, offline file:// standalone exports, an upload-free workbench and lazy per-codec warm-up.
- Embedded Wasm uses optimized gzip/base64 with native browser decompression; no runtime downloads or npm dependencies.
The default secure pair module is 9,203 bytes, the full module 21,390 bytes, and the pair build without optional checks 3,858 bytes. Compact UTF-8 uses adaptive finite-state ANS for approximately 11.81% random-data transport overhead; fast UTF-8 is approximately 13.56%. These encodings are not general-purpose compressors. See the included measurement reports for input distributions and exact browser/artifact details.
npm install glyphpackimport {binary, warmup} from 'glyphpack/full';
warmup(['ans', 'pair'], [false, true]); // Optional.
const bytes = binary(payload); // Strict format + BLAKE3 by default.Live workbench · Configuration guide · CLI guide · npm package
The web ZIP includes modules, declarations, examples, docs, benchmark reports and notices. Linux x86_64/aarch64 CLI archives contain static binaries; encode/inject run without a source checkout. Custom decoder builds require the matching source/toolchain. Individual modules, a standalone HTML example, the raw Wasm ABI artifact and the npm tarball are also attached. Verify downloads with SHA256SUMS.
Own code: NeoX, 0BSD. Third-party notices are preserved. An unkeyed BLAKE3 digest verifies bytes; it is not an authentication signature.
Built from commit 784b886db5953cf4b4a031f9e33673ba8d89cccc. CI, release packaging and Pages deployment passed. The live workbench also passed Chromium 156 checks for all 60 combinations, six examples, offline export and mobile layout.
GlyphPack v0.2.2 — faster encoding and reusable buffers (beta)
Beta prerelease. For production, use GlyphPack 1.0.0 or later.
Faster encoding with the same format and decoder bytes.
- Borrow message, digest and sample slices instead of copying the input; retain static mask priorities and rank only the needed shortlist.
- Use 32-bit carry chains for mask scoring while preserving mask choices, tie order, candidate counts and encoded bytes.
- Add
dense16_into,encode_units_intoandencode_text_intoto reuse Rust output capacity. Validation errors leave the previous contents intact. - Reuse browser encoder output, convert UTF-16 with native
TextDecoder, and use the existing standard SIMD128 BLAKE3 implementation in the optional workbench encoder. - Add explicitly opt-in native exact-search parallelism with
--features parallel-encoder, capped at four workers. Default builds remain serial.
The decoder API, verification defaults and distribution module bytes are unchanged. Chrome 109+ and offline file:// remain supported. The optional site encoder can be built without SIMD with GLYPHPACK_ENCODER_SIMD=0.
Validation covers the frozen v0.2.1 reference, all three verification modes and native output representations, digest/sampling/extended-header boundaries, reusable buffers, official BLAKE3 vectors, all 63 decoder profiles, native ARM64/x64, Rust 1.85, Node 20/22, and actual Chrome 109/Chromium 156 site and offline tests.
Measurements use only deterministic public fixtures. Complete-call results include the chosen hash and mask search. Local Chromium 156/ARM64 and independent GitHub Chromium/x64 results are reported separately; the raw sample archive includes provenance and timing boundaries. Warm measurements on unpinned hosts are not cross-device guarantees.
For secure random 1 MiB encoding, the three-process local campaign measured 2.28× sampled (36.3 → 15.9 ms) and 1.40× exact (175.3 → 125.5 ms). The independent x64/Chromium 153 campaign measured 2.14× and 1.37×. Default native exact encoding improved 1.04×; opt-in parallel exact encoding improved 1.46× in a separate campaign. All settings, run ranges and slower cases are retained in the reports. The compact CSV has seven representative rows.
Live workbench · Performance and measurements
Start with standalone.html for an offline example, default.min.mjs for secure defaults, or full.min.mjs for all twelve runtime combinations. Native Linux CLI archives are statically linked. The web ZIP and npm tarball include notices; check SHA256SUMS after downloading.
GlyphPack v0.2.1 (beta)
Beta prerelease. For production, use GlyphPack 1.0.0 or later.
GlyphPack v0.2.1: dense UTF-16 payload encoding with Rust and a self-contained Wasm decoder.
Own code by NeoX, 0BSD. The source history and version tag are retained. Downloads contain only the generic codec, declarations, licenses and a minimal usage guide.
Use default.min.mjs for format checks and BLAKE3, full.min.mjs for all runtime options, or core.min.mjs for the minimal build. The web archive includes every profile. Verify downloads with SHA256SUMS.
GlyphPack v0.2.0 (beta)
Beta prerelease. For production, use GlyphPack 1.0.0 or later.
GlyphPack v0.2.0: dense UTF-16 payload encoding with Rust and a self-contained Wasm decoder.
Own code by NeoX, 0BSD. The source history and version tag are retained. Downloads contain only the generic codec, declarations, licenses and a minimal usage guide.
Use default.min.mjs for format checks and BLAKE3, full.min.mjs for all runtime options, or core.min.mjs for the minimal build. The web archive includes every profile. Verify downloads with SHA256SUMS.
GlyphPack v0.1.0 (alpha)
Alpha prerelease. For production, use GlyphPack 1.0.0 or later.
GlyphPack v0.1.0: dense UTF-16 payload encoding with Rust and a self-contained Wasm decoder.
Own code by NeoX, 0BSD. The source history and version tag are retained. Downloads contain only the generic codec, declarations, licenses and a minimal usage guide.
Use default.min.mjs for format checks and BLAKE3, full.min.mjs for all runtime options, or core.min.mjs for the minimal build. The web archive includes every profile. Verify downloads with SHA256SUMS.