jsonschema-key-compression

JSON →
library 1.7.0 ·javascript
verified Jun 7, 2026

Compress JSON data based on its JSON Schema by replacing long attribute names with shorter ones. Version 1.7.0 is stable, actively maintained, and ships TypeScript types. Key differentiator: it preserves valid JSON structure, making it suitable for storage in NoSQL databases or browser storage where gzip is inefficient on small payloads. Provides 40% size reduction on average. Does not require a build step or schema transformation.