📱

Read on Your E-Reader

Thousands of readers get articles like this delivered straight to their Kindle or Boox. New articles arrive automatically.

Learn More

This is a preview. The full article is published at news.ycombinator.com.

Claude Wrapped

Claude Wrapped

By dboonHacker News: Front Page

» tldr Run to compare your Claude Code usage against the rest of the world while enjoying a spirited holiday Santa Claude rendered in fully lit 3D in your terminal with the power of WASM. bun x @spader/claude-wrapped » slightly less tldr cpu-destroying wasm claude I wrote a raymarcher that can render scenes of SDF functions and lights in plain C, compiled it with WASM, jammed it all into a Bun executable that grabs your ~/.claude/stats-cache.json , uploads it to a SQLite database on The Cloud so you can see how your Claude Code usage stacks up with the rest of the world. You can see the aforementioned raymarched Claude above, on this very web page! As far as the data collected, the code’s on GitHub . It’s a spit of TypeScript and a WASM module that’s as close to pure computation as you can get. Clone and run with bun start ; the WASM’s already compiled, so you shouldn’t even need a C compiler. Please reach out to spader@spader.zone if anything bugs out for you. I cranked this out in a manic weekend, I’m sure it’s got plenty of bugs. Read on if you’re interested in the experience of cranking out some rendering code that felt quite real with WASM! » shill Wishlist on Steam » wrapped season It’s that time of year, folks. Here in Atlanta, the leaves are turning to beautiful taupes and crimsons. Winter air blows cold and sweet over a thousand lakes in a thousand counties and cleanses mind, body, and soul. And, of course, people everywhere are whipped into a frenzy over the ability to quantify and commodotize even their most basic humanity. That’s right. It’s Wrapped season! I usually use opencode , which constantly impresses me with its attention to detail and quality in the terminal. It is better than most web apps; not better for a TUI , just better. But I dip into the acutal claude CLI sometimes. On one such occasion, I noticed something new: /stats . It’s fun! It looks good. It has a fun GitHub-style commit heatmap, and the silly Alex Horne comparative measurements. It’s the kind of thing that makes us love Claude Code. But...can we do better? » we can do better I love a good Wrapped as much as the next person. I was a top 0.05% listener of the Grateful Dead last cycle. I don’t know what to do with this information, but when did that ever stop me? A few minutes of poking around $HOME/.claude unearthed stats-cache.json ! And while this file wasn’t quite as interesting as I’d hoped, it did have more than enough to make a decent wrapped: Token and message counts by day and model Invocations by hour-of-day Costs The idea hit me like lightning. Grab these stats, make a wrapped. The stats were a little strange - they only went back a month or so. But I assumed this was because Arch wasn’t a first class citizen, and that...

Preview: ~500 words

Continue reading at Hacker News

Read Full Article

More from Hacker News: Front Page

Subscribe to get new articles from this feed on your e-reader.

View feed

This preview is provided for discovery purposes. Read the full article at news.ycombinator.com. LibSpace is not affiliated with Hacker News.

Claude Wrapped | Read on Kindle | LibSpace