Who it is forA data engineer who stores large JSON event dumps and wants smaller files that still decompress to the original.
The problemLarge JSON event files take up storage and are slow to move, and the team wants a lossless format with faster reads.
The outcomeA .glyd file that is smaller than a zstd -3 copy and restores to the original JSON.
What you need first
- Linux (x86_64 or aarch64) with an NVIDIA GPU: Ampere, Ada, Hopper or Blackwell, driver 580 or newer
- For the Python and vLLM steps: Python with pip, and vLLM for serving
- For the codec: Homebrew or a release tarball from the Glyd releases
- A Glyd license from suryakoritala@getglyd.com if the work is commercial, since the README says commercial use needs one
Steps
- Install the CLI with
brew install surya-koritala/glyd/glyd, or download a release tarball. - Run
glyd --max events.json -o events.glydto compress the file. - Run
glyd -d events.glyd -o events.jsonto restore it. - Compare the restored events.json with the original before deleting the source file.
Prompt for your agent
Using the repo surya-koritala/Glyd, install the glyd CLI and compress <input file> to <output file>.glyd with `glyd --max <input file> -o <output file>.glyd`. Restore it with `glyd -d <output file>.glyd -o <restored file>`, then report both file sizes and whether the restored file matches the original. Verify that the restored file is byte-identical to the input.
Caveat. The README's smaller-than-zstd claim comes from its own example, so test the size and speed on your own files before relying on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for surya-koritala/Glyd and "Compress JSON event files smaller than zstd -3"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer