Repository

Wolfe-Jam/slash-tokens

slash-tokens

Token Optimization for Context Engineers. 4.8 KB WASM. Sub-millisecond. Zero dependencies.

7stars

Open github.com

Wolfe-Jam/slash-tokens

slash-tokens

4.8KB WASM tokenizer that estimates LLM token count and cost before API call, enabling pre-call cost checks, model routing, and savings tracking.

Visit project

Show me a random project

First shared
Aug 25, 2026
HN activity
45

Show HN@wolfejamAug 25, 2026

Show HN: Slash-tokens – know LLM cost before the call leaves your machine

I kept finding out what a call cost after I had already paid, so I built /Slash -- slash-tokens is a 4.8KB WASM that estimates tokens FAST and can block a wasted trip, or switch to cheaper same-provider model before the request leaves your machine. Try it MIT, no account needed: bunx slash-tokens Or install the SDK: npm install slash-tokens

Community

Hacker News discussion

Loading the thread…