DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to compress JSON event files smaller than zstd -3 with Glyd

Use the Glyd CLI to shrink a large JSON file and restore it exactly.

Short answer: Install the CLI with brew install surya-koritala/glyd/glyd, or download a release tarball; then run glyd --max events.json -o events.glyd to compress the file; run glyd -d events.glyd -o events.json to restore it. All steps.

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

  1. Install the CLI with brew install surya-koritala/glyd/glyd, or download a release tarball.
  2. Run glyd --max events.json -o events.glyd to compress the file.
  3. Run glyd -d events.glyd -o events.json to restore it.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer