prompt-minifier
JSON →Token-aware prompt minifier with explainable diff, version 0.1.1. Shrinks LLM prompts by replacing verbose phrases with shorter equivalents, providing a detailed diff of changes. Supports multiple optimization levels (safe, balanced, aggressive) and custom tokenizers. Zero runtime dependencies, ESM/CJS, TypeScript types included. Released under MIT license.
Resources
packageprompt-minifier ↗