SMRTR ProgrammingAug 25, 2026Hacker News

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

SMRTR summary

slash-tokens is a lightweight JavaScript/TypeScript library that intercepts LLM API calls to Anthropic, OpenAI, xAI, and Google, estimating token costs before requests leave your machine. Powered by a 4.8 KB Zig-compiled WASM tokenizer, it delivers sub-millisecond, non-blocking preflight checks. An optional hosted dashboard tracks savings for $39/month, with zero dependencies and support across Node, Bun, Deno, and edge runtimes.

SMRTR provides this summary for quick context. The original article belongs to Hacker News.

Read the original article
SMRTR Programming

Get the next batch of curated stories in your inbox.

This archive is built from SMRTR newsletter stories. Subscribe for hand-picked stories without the extra noise.

Related Stories

Browse Programming
ProgrammingAug 25, 2026

The End of Programming

AI rewrote Bun's entire JavaScript runtime—one million lines of code in eleven days—for ~$165,000, with minimal human involvement. As AI-generated code surges exponentially,...