Expand description
§Marqant - Quantum-Compressed Markdown Format
Marqant (.mq) is a revolutionary compression format designed specifically for AI consumption, achieving 90% token reduction while maintaining semantic integrity.
§Features
- Token-based compression: Common markdown patterns become single tokens
- AI-optimized: Reduces token usage in LLM contexts by 70-90%
- Streaming support: Can process before full dictionary is loaded
- Multiple compression levels: From light tokenization to quantum compression
- DNS integration: Supports distributed token dictionaries via DNS
§Usage
use marqant::Marqant;
let compressor = Marqant::default();
let compressed = compressor.compress("# Hello World\n\nThis is markdown content");
let decompressed = compressor.decompress(&compressed).unwrap();
§Binary Format
The .mq format consists of:
- Header: Version, timestamp, sizes, flags
- Token dictionary with escaped patterns
- Compressed content using token substitution
- Optional metadata sections
Modules§
Structs§
Constants§
Functions§
- mq2_
uni_ decode - mq2_
uni_ encode - read_
mq_ metadata - wordcloud_
svg - Generate a deterministic SVG word cloud from input text.