36D
36Dimensional Coordinate Compressor
Lossless text compression and encoding with a custom Base-76 representation split into 36 deterministic dimensions.
Features
- Lossless UTF-8 text compression
- Automatic codec selection
- DEFLATE, Brotli, and Zstandard when available
- Custom Base-76 encoding
- Exactly 36 deterministic dimensions
- Unicode and emoji support
- Built-in integrity verification
- Node.js and browser support
Installation
From GitHub
npm install github:Yzedeka/36d
From a release
Download the latest .tgz release and install it with:
npm install ./36d-26.9.1.tgz
Usage
import { encode, decode } from "36d";
const original = "Hello world! 🌍";
const compressed = await encode(original);
const decoded = await decode(compressed);
console.log(compressed);
console.log(decoded);
Output:
Hello world! 🌍
36 Dimensions
36D takes the final Base-76 encoded representation and deterministically divides it into exactly 36 dimensions.
import { encode, dimensions, fromDimensions } from "36d";
const encoded = await encode("Hello world!");
const dims = dimensions(encoded);
console.log(dims.length); // 36
const reconstructed = fromDimensions(dims);
console.log(reconstructed === encoded); // true
The dimensions are simply a deterministic representation of the encoded data. They do not change or discard any information.
Verification
import { encode, verify } from "36d";
const encoded = await encode("Hello world!");
console.log(await verify(encoded)); // true
License
36D is licensed under the GNU General Public License v2.0.
Website: https://yzedeka.org/36d-26.9.1.tgz
GitHub: https://github.com/Yzedeka/36d
Project Updates
No project updates yet.
Related Posts
bad
yes