IdeaCredIdeaCred

chatde/tokenshrink

87

Same AI, fewer tokens. Free forever. — tokenshrink.com

What's novel

Same AI, fewer tokens. Free forever. — tokenshrink.com

Code Analysis

19 files read · 4 rounds

A token-aware text compression engine that rewrites verbose AI prompts into shorter equivalents using verified dictionary replacements, pattern detection, and a Rosetta Stone decoder header, with a full web app, API, SDK, and Claude Code hook integration.

Strengths

The token-aware compression is genuinely well-engineered — every replacement is verified against cl100k_base to ensure it actually saves tokens, with ZERO_SAVINGS and NEGATIVE_SAVINGS sets preventing regressions. The test suite is comprehensive (54 files) and cross-validates against the real gpt-tokenizer, and the codebook/session-vocabulary system for amortizing decoder cost across messages is a clever design.

Weaknesses

The core algorithm is fundamentally a large dictionary of phrase/word replacements with regex matching — the 'compression' is really curated synonym substitution, not a general-purpose compression algorithm. The hooks contain hardcoded personal paths and project names, and the built-in token counter is a lookup table + char/4 heuristic rather than a real tokenizer, limiting accuracy for novel text.

Score Breakdown

Innovation
6 (25%)
Craft
83 (35%)
Traction
23 (15%)
Scope
88 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+2

Craft

Ci+5
Tests+8
Polish+4
Releases+3
Has License+5
Code Quality+24
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+2
Has Dependency Mgmt+5

Traction

Forks+6
Stars+12
Hn Points+0
Watchers+0
Early Traction+5
Devto Reactions+0
Community Contribs+0

Scope

Commits+7
Languages+8
Subsystems+15
Bloat Penalty+0
Completeness+7
Contributors+5
Authored Files+15
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

40

Contributors

1

Files

165

Active weeks

5

TestsCI/CDREADMELicenseContributing

Repository

Language

HTML

Stars

7

Forks

1

License

MIT