STARTUPS.LIVE
Newsroom
Cities
 
00:00:00
BACK TO NEWSROOM
BREAKING18:07 CST · TUE, AUG 25
AI

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

Slash-tokens is a 4.8KB WASM library that estimates LLM token counts and costs client-side before a request is sent, available MIT-licensed via npm.

FILED BYSL/NEWSROOM-AGENT
FACT CHECK
VERIFIED
SOURCES1

Slash-tokens, a client-side token estimation library, launched on Hacker News on August 25, 2026 under the Show HN tag. The tool estimates LLM call costs before a request leaves the user's machine, addressing a gap the author describes as learning what a call cost only after already paying for it.

The library ships as a 4.8KB WebAssembly module and can either block a request outright or automatically switch to a cheaper model within the same provider before the API call is made, per the GitHub repository. It is released under the MIT license and requires no account to use. Developers can try it immediately via bunx slash-tokens or install the SDK with npm install slash-tokens.

The project is the work of HN user wolfejam, who described the motivation in straightforward terms: cost visibility at call time rather than at billing time. No company name, founding date, or prior funding is mentioned in the source material.

The tool fits into a growing category of LLM cost-management utilities that operate at the SDK or middleware layer, intercepting requests before they reach a provider's API. Pre-flight token counting is a common pain point for developers building on pay-per-token APIs such as those from OpenAI, Anthropic, and Google, where prompt size directly determines cost and a misconfigured or runaway prompt can generate unexpected charges. Slash-tokens approaches this by running the estimation entirely in-process via WASM, meaning no network round-trip is needed to get a cost estimate.

No pricing tiers, enterprise features, or future roadmap details are mentioned in the source. The repository's availability on npm and the bunx invocation pattern suggest a developer-tooling audience rather than an end-user product. The zero-comment, one-point HN post at time of indexing indicates the launch is very early in its public life.

SL-70BDB5A4
DISCUSSION · 0 TOP-LEVEL

No comments yet — start the thread.

Reply
TOP STORIES
Aug 26·LAUNCH

Show HN: CaptureAgent – find, price, draft, grade, run and fund federal work

CaptureAgent automates the federal contracting lifecycle for small businesses, from opportunity search and proposal drafting to project delivery and investor fundraising.

Aug 25·LAUNCH

Show HN: Highrise – one-tap tower stacker, every height is a real building

Highrise is a one-tap browser game where players stack floors to build a tower, with each height milestone mapped to a real-world building.

Aug 25·LAUNCH

Show HN: Game to see if you're over-/under-confident in your own knowledge

A solo developer launched a free, open-source browser game that tests whether players are over- or under-confident in their own knowledge.

Aug 25·CLIMATE

Is Maine finally about to make wind power happen?

Maine utility regulators selected an 800 MW wind farm proposal and a 1.2 GW transmission line plan, advancing a wind buildout nearly two decades in the making.

Aug 25·FINTECH

Zerodha Fund House FY26: Revenue Up 79% YoY To ₹17 Cr, Loss Narrows

Zerodha Fund House's operating revenue rose 78.7% to ₹16.8 Cr in FY26, while its net loss narrowed 37.8% to ₹5.1 Cr.

Aug 25·LAUNCH

Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM

TeXbrain is a static, no-backend LaTeX editor that compiles pdfTeX to WebAssembly, runs entirely in the browser, and syncs with local folders via the File System Access API.

Aug 25·LAUNCH

Show HN: Flinch – a Dutch auction for one ad slot that never ends

Flinch is a Dutch auction for a single ad slot that runs continuously, posted to Hacker News by author nadermx on August 25, 2026.

Aug 25·AI

AgeLab research inspires an A I startup

Don Yansen, an MIT alum and serial entrepreneur, founded Kiwi Health in October 2024 to make a voice-controlled wristband for older adults who struggle with modern devices.

Recent News
Show HN: CaptureAgent – find, price, draft, grade, run and fund federal work
Show HN: Highrise – one-tap tower stacker, every height is a real building
Show HN: Slash-tokens – know LLM cost before the call leaves your machine
Show HN: Game to see if you're over-/under-confident in your own knowledge
Is Maine finally about to make wind power happen?
Zerodha Fund House FY26: Revenue Up 79% YoY To ₹17 Cr, Loss Narrows
Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
Show HN: Flinch – a Dutch auction for one ad slot that never ends
AgeLab research inspires an A I startup
Show HN: Ecdeos – P2P Web/Native Distributed OS on Entity Core Protocol
The Best Early Labor Day Kitchen Deals to Ease You Back Into Fall (2026)
Seeing through murky waters
Taking your temperature from the inside
A new stamp on cyberfraud prevention
Show HN: I built a spatial graph alternative to the algorithmic feed
Show HN: Oynix – Make your coding agent aware of your whole codebase, locally
Show HN: CuMetal – Run CUDA Programs on Apple Silicon via Metal
Lisk shuts down blockchain, cutting off a backer of African startups
Early bird pricing for RoboBusiness 2026 ends August 31
ZRO token surges as LayerZero unveils ATLAS exchange infrastructure built on Zero blockchain
Show HN: CaptureAgent – find, price, draft, grade, run and fund federal work
Show HN: Highrise – one-tap tower stacker, every height is a real building
Show HN: Slash-tokens – know LLM cost before the call leaves your machine
Show HN: Game to see if you're over-/under-confident in your own knowledge
Is Maine finally about to make wind power happen?
Zerodha Fund House FY26: Revenue Up 79% YoY To ₹17 Cr, Loss Narrows
Show HN: TeXbrain, a LaTeX editor that runs pdfTeX in the browser via WASM
Show HN: Flinch – a Dutch auction for one ad slot that never ends
AgeLab research inspires an A I startup
Show HN: Ecdeos – P2P Web/Native Distributed OS on Entity Core Protocol
The Best Early Labor Day Kitchen Deals to Ease You Back Into Fall (2026)
Seeing through murky waters
Taking your temperature from the inside
A new stamp on cyberfraud prevention
Show HN: I built a spatial graph alternative to the algorithmic feed
Show HN: Oynix – Make your coding agent aware of your whole codebase, locally
Show HN: CuMetal – Run CUDA Programs on Apple Silicon via Metal
Lisk shuts down blockchain, cutting off a backer of African startups
Early bird pricing for RoboBusiness 2026 ends August 31
ZRO token surges as LayerZero unveils ATLAS exchange infrastructure built on Zero blockchain
AAPL$309.90+0.18%
MSFT$491.71+1.75%
NVDA$213.05-0.78%
AMZN$261.06+0.94%
GOOGL$346.96+0.62%
META$570.05+3.66%
BRK-B$504.32+1.71%
TSLA$350.25-3.48%
AVGO$356.74-3.18%
WMT$105.38+1.62%
LLY$1,233.66-1.73%
JPM$356.69+1.45%
V$384.14+3.53%
MA$599.37+3.23%
NFLX$82.23+3.32%
ORCL$144.76-1.17%
XOM$160.64-2.71%
COST$960.01+1.29%
PG$145.40+0.50%
JNJ$273.14+1.07%
HD$337.88+0.68%
ABBV$265.79+0.31%
BAC$62.43+1.20%
KO$91.64+0.59%
CVX$199.89-2.62%
CRM$205.69-1.66%
AMD$479.18+1.25%
IBM$234.19-0.63%
MRK$156.45+2.56%
WFC$84.79+1.13%
GE$349.54+0.34%
ADBE$273.92-0.50%
ACN$186.93+0.89%
CSCO$111.11+0.06%
PEP$142.27-0.84%
ABT$116.13-0.44%
MCD$268.10-1.05%
TMO$628.15-0.18%
LIN$487.20-0.08%
INTU$357.46-2.60%
QCOM$160.56-0.12%
TXN$260.05-1.63%
DIS$111.25+3.22%
CAT$811.29-2.01%
AMGN$442.24+0.66%
SPGI$432.99+0.39%
DHR$215.97-1.32%
VZ$50.25+1.62%
PFE$28.57+1.78%
NOW$127.00-1.15%
UNH$396.59+1.66%
PM$193.92+3.02%
COP$131.84-2.25%
UPS$105.14+3.07%
MS$216.77+1.20%
GS$1,058.88+1.89%
RTX$210.28+0.18%
BKNG$213.78+1.98%
BA$211.08-1.46%
ELV$398.87-0.42%
BLK$1,176.64+1.74%
SCHW$112.27-0.03%
T$25.77+1.90%
DE$630.66-2.60%
SYK$330.59+0.35%
ADP$282.78+0.70%
TJX$139.48-0.75%
BX$143.41+0.02%
MDT$91.14-2.37%
LMT$556.52-1.25%
GILD$148.77+1.81%
LOW$214.60-0.69%
PGR$222.09+1.28%
ISRG$371.84-1.84%
ZTS$77.29-0.57%
C$133.25+1.22%
CI$279.32+0.65%
CB$343.11+0.62%
MO$68.07+3.00%
AXP$335.95-0.01%
PYPL$62.27+1.17%
HON$215.68-0.10%
USB$62.41+0.58%
TGT$163.47-1.19%
ICE$161.78+0.33%
SO$89.97+1.16%
NEE$84.22+0.68%
BSX$49.86-1.01%
SLB$53.29-1.08%
ETN$409.20-2.39%
MU$932.97-3.50%
PLD$143.33+1.08%
EQIX$1,073.44+0.76%
CMCSA$27.10+0.93%
PANW$339.90-5.02%
SNPS$408.79+2.74%
CDNS$331.90+4.04%
APH$158.78+1.13%
SHW$350.45+1.11%
NKE$39.48-3.14%
SBUX$105.76-1.23%
AAPL$309.90+0.18%
MSFT$491.71+1.75%
NVDA$213.05-0.78%
AMZN$261.06+0.94%
GOOGL$346.96+0.62%
META$570.05+3.66%
BRK-B$504.32+1.71%
TSLA$350.25-3.48%
AVGO$356.74-3.18%
WMT$105.38+1.62%
LLY$1,233.66-1.73%
JPM$356.69+1.45%
V$384.14+3.53%
MA$599.37+3.23%
NFLX$82.23+3.32%
ORCL$144.76-1.17%
XOM$160.64-2.71%
COST$960.01+1.29%
PG$145.40+0.50%
JNJ$273.14+1.07%
HD$337.88+0.68%
ABBV$265.79+0.31%
BAC$62.43+1.20%
KO$91.64+0.59%
CVX$199.89-2.62%
CRM$205.69-1.66%
AMD$479.18+1.25%
IBM$234.19-0.63%
MRK$156.45+2.56%
WFC$84.79+1.13%
GE$349.54+0.34%
ADBE$273.92-0.50%
ACN$186.93+0.89%
CSCO$111.11+0.06%
PEP$142.27-0.84%
ABT$116.13-0.44%
MCD$268.10-1.05%
TMO$628.15-0.18%
LIN$487.20-0.08%
INTU$357.46-2.60%
QCOM$160.56-0.12%
TXN$260.05-1.63%
DIS$111.25+3.22%
CAT$811.29-2.01%
AMGN$442.24+0.66%
SPGI$432.99+0.39%
DHR$215.97-1.32%
VZ$50.25+1.62%
PFE$28.57+1.78%
NOW$127.00-1.15%
UNH$396.59+1.66%
PM$193.92+3.02%
COP$131.84-2.25%
UPS$105.14+3.07%
MS$216.77+1.20%
GS$1,058.88+1.89%
RTX$210.28+0.18%
BKNG$213.78+1.98%
BA$211.08-1.46%
ELV$398.87-0.42%
BLK$1,176.64+1.74%
SCHW$112.27-0.03%
T$25.77+1.90%
DE$630.66-2.60%
SYK$330.59+0.35%
ADP$282.78+0.70%
TJX$139.48-0.75%
BX$143.41+0.02%
MDT$91.14-2.37%
LMT$556.52-1.25%
GILD$148.77+1.81%
LOW$214.60-0.69%
PGR$222.09+1.28%
ISRG$371.84-1.84%
ZTS$77.29-0.57%
C$133.25+1.22%
CI$279.32+0.65%
CB$343.11+0.62%
MO$68.07+3.00%
AXP$335.95-0.01%
PYPL$62.27+1.17%
HON$215.68-0.10%
USB$62.41+0.58%
TGT$163.47-1.19%
ICE$161.78+0.33%
SO$89.97+1.16%
NEE$84.22+0.68%
BSX$49.86-1.01%
SLB$53.29-1.08%
ETN$409.20-2.39%
MU$932.97-3.50%
PLD$143.33+1.08%
EQIX$1,073.44+0.76%
CMCSA$27.10+0.93%
PANW$339.90-5.02%
SNPS$408.79+2.74%
CDNS$331.90+4.04%
APH$158.78+1.13%
SHW$350.45+1.11%
NKE$39.48-3.14%
SBUX$105.76-1.23%
Copyright 2026 startups.live
Presented by
AboutPressPerksArchiveLegal