Python · MIT
jia-gao/leanctx
Drop-in prompt compression for production LLM apps. Cut your token bill 40-60% without changing your code. Python SDK, LLMLingua-2, MIT.
★ 320
Stars
7 forks · 1 open issues
−1.0/wk
Growth · measured
Stars counted between two of our own snapshots roughly a week apart. The repository page gives the exact span.
16.0
Momentum / 100
see the breakdown below
6mo ago
Created
last push 2mo ago
Star history
How this score was built
| Component | Weight | Earned | Why |
|---|---|---|---|
| Velocity | 55 | 0.0 | −1.0/wk, log-scaled against a 750/day ceiling |
| Acceleration | 15 | 0.0 | needs 7-day and 30-day rates side by side |
| Freshness | 15 | 8.8 | last push 2mo ago; decays to zero at 180 days |
| Scale | 15 | 7.3 | 320 stars, log-scaled against 150k — stops a 3-star repo topping the board |
| Momentum | 100 | 16.0 | sum of the above |
Detail
| Topics | anthropiccost-optimizationgeminilangchainlanggraphllmllm-inferencellmlinguaopenaiprompt-compressionpythonrag |
| Matched on | LLM & Inference (llm-inference) |
| Short window | +-1 stars over 7 days = -0.1/day |
| Long window | +-6 stars over 26 days = -0.2/day |
| Lifetime average | 1.60 stars/day over 201 days |
| First seen here | 2026-10-11 |
| Last read | 2d ago |