What's New
ctxfold --profile— analyze any input: where the characters go
(keys/syntax/values/whitespace, affixes/constants, template boilerplate)
and what folding would save, without transforming anything- Programmatic API:
profile(text, opts)returns structured data;
renderProfile()produces the text report - When nothing folds, the profiler explains why (quoted CSV, nested JSON,
too few records, prose) instead of silently no-opping examples/profile-demo.js— zero-setup demo, no API key required- 14 new invariant tests (42 total): composition sums exactly to input size,
profiler ratios always equalcompress()'s, honesty flags enforced per format
Details
The profiler makes the same claims the benchmark table does, enforced by
tests: composition is character-exact, foldable figures come from actually
running the encoder, and readability claims mirror measured results — JSON
and logs validated direct-readable, CSV flagged pipeline-only.
First minor version: new capability, no changes to the existing
compress/decompress/validate API.