# prompt-compressor

> Rule-based prompt compression — reduce LLM token usage without a model, without an API, without sending data anywhere.

Latest version **1.0.2** (published 2026-11-27) · MIT license · 0 weekly downloads

_The full health report (score, vulnerabilities, README, dependency tree, version history) is being computed; this document will grow once it lands._

## Install

```sh
npm install prompt-compressor
pnpm add prompt-compressor
yarn add prompt-compressor
bun add prompt-compressor
```

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2026-11-27 |
| First published | 2026-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Dependencies | 0 |
| Author | Tom Ketter |
| Maintainers | kettertom |
| Keywords | prompt, compression, llm, tokens, bedrock, openai, anthropic, claude, gpt, langchain, mcp, rag, nlp |

## Links

- npm: https://www.npmjs.com/package/prompt-compressor
- Repository: https://github.com/kettertom/prompt-compressor
- Homepage: https://prompt-compressor.com
- npm.io page: https://npm.io/package/prompt-compressor

---
_Source: https://npm.io/package/prompt-compressor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
