frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Tokuin – CLI load tester and token estimator for LLM APIs

https://github.com/nooscraft/tokuin
2•oshadha89•1d ago
Hi HN! I built Tokuin, a Rust CLI that does two things I kept hacking together for LLM projects:

1. Estimates tokens/costs for prompts across OpenAI/Gemini/Anthropic-style models 2. Runs load tests against real LLM endpoints with progress bars, retries, and (optional) dry runs

It started as a glorified “how many tokens will this cost?” script. Over the last release I added provider selection (--provider {openai|openrouter|anthropic|generic}) plus real Anthropic and “bring-your-own-endpoint” clients so I can stress-test gateways before giving them real traffic.

Try it # install curl -fsSL https://raw.githubusercontent.com/nooscraft/tokuin/main/inst... | bash

# dry-run Anthropic echo "Hello!" | tokuin load-test \ --model claude-3-sonnet \ --provider anthropic \ --runs 5 \ --concurrency 2 \ --dry-run --estimate-cost

# generic endpoint smoke test echo "Ping" | tokuin load-test \ --model lambda-1 \ --provider generic \ --endpoint https://example.com/infer \ --runs 10 --concurrency 2

Repo (MIT/Apache-2.0): https://github.com/nooscraft/tokuin

What’s different 1. Provider-aware CLI: auto-detects from model names but you can force it when needed. 2. Built-in Anthropic client and a generic REST adapter (just point at an endpoint and go). 3. Optional --dry-run yields the same metrics without burning API credits. 4. Auth stays in env vars/flags—no config files or dashboards.

Implementation notes 1. Rust 2021 + tokio, reqwest, indicatif. 2. Load simulator schedules requests, tracks latencies, histograms, and costs. 3. Token estimation uses tiktoken-rs and a simple pricing registry.

Feedback I’m looking for 1. Are the CLI defaults (timeouts, retry curve) sensible for real traffic? 2. Should generic mode accept response extraction hooks so it works with more JSON shapes? 2. Any load-test metrics you’d want before trusting this in CI?

Thanks for trying it out—happy to answer questions or take feature requests.

Visualizing Why Bitcoin Can't Work over HF Radio

https://sampatt.com/blog/2025-11-08-visualizing-why-bitcoin-cant-work-over-hf-radio
1•SamPatt•1m ago•0 comments

Eye of the Beholder – C64 vs. DOS monster comparison

https://www.youtube.com/watch?v=ICn_m7uFRMA
1•doener•4m ago•0 comments

Interesting SPI Routing with iCE40 FPGAs

https://danielmangum.com/posts/spi-routing-ice40-fpga/
1•hasheddan•5m ago•0 comments

Show HN: Active Memory Plugin in Claude Code

https://shubhamattri.com/blog/claude-with-active-memory-/
1•a3fckx•5m ago•0 comments

The Al Capone theory of sexual harassment

https://hypatia.ca/2017/07/18/the-al-capone-theory-of-sexual-harassment/
1•danbolt•6m ago•0 comments

Resolving Gibbs-Bolzmann and von Neuman-Birkhoff ergodic tension

https://arxiv.org/abs/2508.08319
1•northlondoner•11m ago•1 comments

The truth about superintelligent models: humanity has less life left than you

1•aimeili•11m ago•1 comments

United States National Design Studio

https://ndstudio.gov/
1•stefankuehnel•13m ago•0 comments

Think in Math. Write in Code

https://www.jmeiners.com/think-in-math/
1•alabhyajindal•13m ago•0 comments

Show HN: Floxtop – Offline Mac app that organizes files and images by meaning

https://floxtop.com/#
3•bobnarizes•15m ago•1 comments

From building websites to playing Bartók, Pope Leo XIV is reimagining the papacy

https://www.thelettersfromleo.com/p/the-graphic-designer-pope-five-new
1•jacobr•19m ago•0 comments

Microsoft's data sovereignty: Now with extra sovereignty!

https://www.theregister.com/2025/11/07/microsoft_announces_strengthening_of_sovereignty/
1•sipofwater•20m ago•0 comments

Show HN: Active Memory Plugin in Claude Code

https://github.com/julep-ai/memory-store-plugin
1•a3fckx•22m ago•0 comments

Hackers are abusing a Google OAuth endpoint to hijack user sessions (2024)

https://www.itbrew.com/stories/2024/01/19/hackers-are-abusing-a-google-oauth-endpoint-to-hijack-u...
1•transpute•23m ago•0 comments

Valori – A Python-native Vector Database I built from scratch

2•varshith17•24m ago•0 comments

And that is just the places that start with 'M'

https://www.nytimes.com/2025/11/09/us/politics/democrats-midterms-senate-house.html
1•mykowebhn•25m ago•0 comments

X is amplifying far-right accounts

https://www.avclub.com/twitter-x-amplifying-right-wing-accounts
3•saubeidl•28m ago•0 comments

Show HN: Teda.dev – AI app builder that beats Lovable

https://teda.dev
1•ebenezerdon•29m ago•0 comments

Termix: Web-based server management platform with SSH terminal and tunneling

https://github.com/Termix-SSH/Termix
1•thunderbong•33m ago•0 comments

How Linux would continue without Linus Torvalds

https://www.heise.de/en/background/Missing-Link-How-Linux-would-continue-without-Linus-Torvalds-1...
2•doener•35m ago•0 comments

JavaScript – W3C Wiki

https://www.w3.org/wiki/JavaScript
1•thro1•39m ago•0 comments

Women are hiding their boyfriends online and there's more than one reason why

https://www.bbc.com/news/articles/c93x1q5395do
1•6stringmerc•40m ago•1 comments

Show HN: Nupst v5 –> Deno based shutdown tool protecting against power outage

https://code.foss.global/serve.zone/nupst
1•PhilKunz•42m ago•0 comments

They're not wolves – they're sheep

https://www.theguardian.com/books/2025/nov/08/paul-mullen-interview-psychiatrist-career-with-lone...
1•Gupie•43m ago•0 comments

Climate Service Srl

https://www.inclimateservice.com/
1•ICSjobs•43m ago•1 comments

Show HN: A simple TUI orgmode editor inspired by nano and k9s

https://github.com/RWejlgaard/org
2•RWejlgaard•48m ago•0 comments

There Has to Be a Better Way to Make Titanium

https://www.orcasciences.com/articles/there-has-to-be-a-better-way-to-make-titanium
1•Armic•54m ago•0 comments

AI favors texts written by other AIs, even when they're worse than human ones

https://cfenollosa.com/blog/ai-favors-texts-written-by-other-ais-even-when-theyre-worse-than-huma...
2•carlesfe•1h ago•0 comments

Ask HN: How would u setup a child's first Linux computer?

13•evolve2k•1h ago•11 comments

Strategies and Tools to make money on Polymarket

https://x.com/GreekGamblerPM/article/1987167717590249918
2•salkahfi•1h ago•0 comments