loxc

An experimental trainable text codec for developers who already know their data — MQTT payloads, telemetry, logs, JSON-like records, protocol text.

C99ExperimentalTable-driven
Overview

Train it on your data, ship the table

Instead of trying to be a universal compressor, loxc lets you train a codec table from representative sample data, export that table, transfer it, and load it later in an application, tool or embedded runtime.

Frequency-based selection

Symbols chosen by frequency in your training data.

Matrix layout

Matrix-based symbol layout with nested submatrices for less frequent data.

Binary output

Binary encoded output with trained lookup tables.

Predictable decoding

Predictable table-driven decoding.

Small surface

A small C99 integration surface, consistent with the rest of the LOX family.

Portable tables

Train on the host, export, load on the device.

What loxc is not

loxc is not intended to compete with gzip, zstd, brotli or lz4 — those are mature general-purpose compressors. It is also not encryption and not a universal archive format. Its value is narrower: a compact table-driven encoding path for specific text payloads.

Next in the family micro-toolkit — modular C99 libraries →