Skip to content

Instantly share code, notes, and snippets.

@budiantoip
budiantoip / Claude_Code_JSON-to-TOON_Hook.md
Last active January 28, 2026 08:06 — forked from maman/README.md
Claude Code JSON-to-TOON Hook

Claude Code JSON-to-TOON Hook

Automatically converts JSON in your Claude Code prompts to TOON format for 30-60% token savings.

What is TOON?

TOON (Token-Oriented Object Notation) is a compact data format optimized for LLMs. Instead of repeating field names in every object, TOON declares them once and streams values as rows.

Example:

@budiantoip
budiantoip / deploy.sh
Created May 4, 2021 00:54 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin master