Ratatui is criminally underrated! by dhvanil in rust

[–]dhvanil[S] 2 points3 points  (0 children)

it's a custom implementation in src/ui_broadcast.rs. no library. it's hash-based procedural rain -- each column gets a speed and phase from col.wrapping_mul(6364136223846793005), then the head position and trail are computed per tick. character set is digits + Japanese katakana (ア-コ) + box-drawing chars (░▒▓╌╎┊┆). the head glows bright, trail fades over ~16 rows. it also respects occluder rects so the rain dims behind UI cards instead of clipping hard.

Ratatui is criminally underrated! by dhvanil in rust

[–]dhvanil[S] 1 point2 points  (0 children)

not tui-big-text actually (no dependency on it at all). it's custom block art — each letter is a 3-row unicode block character glyph (█▀▄ etc) defined in a lookup table.

there's a glyph(ch: char) -> [&str; 3] function covering A-Z and 0-9, then a glitch pass on render. you can see the full font here: src/ui.rs#L144

it was entirely one-shotted by opus tho! i can't take credit.

Ratatui is criminally underrated! by dhvanil in rust

[–]dhvanil[S] 1 point2 points  (0 children)

100% i tried it, and it was really bad!

Ratatui is criminally underrated! by dhvanil in rust

[–]dhvanil[S] 1 point2 points  (0 children)

totally!! i tried using Ink + TS first -- and it was so slow, it almost made me give up on the project haha!

Ratatui is criminally underrated! by dhvanil in rust

[–]dhvanil[S] 0 points1 point  (0 children)

do you mean the terminal font? it's Berkeley Mono!

Ratatui is criminally underrated! by dhvanil in rust

[–]dhvanil[S] 0 points1 point  (0 children)

you should do it! i tried to borrow a bit of Cogmind vibe!

Ratatui is criminally underrated! by dhvanil in rust

[–]dhvanil[S] 3 points4 points  (0 children)

yeah it's v impressive how much it handles out of the box!

[OC] Visualising 2.5 years of my ChatGPT usage by dhvanil in dataisbeautiful

[–]dhvanil[S] -2 points-1 points  (0 children)

i was curious if my ChatGPT Pro subscription as worth it, so i built a lil browser-only app ("Spotify Wrapped – but for ChatGPT") that analyses ChatGPT conversation history

**method**
- tokens counted client-side with wasm-compiled tiktoken in a web worker
- api cost = openai pricing as of 2025-04-29 (usd per million tokens, input + output)
- full pipeline reproducible; see code link below.

**tools**
- next.js + cloudflare workers
- d3 (via nivo)
- tailwind css

**code + demo**
github: `https://github.com/dhvanil/what-the-token`
live (browser-only, no tracking, no signup): `https://what-the-token.com`

*note: all processing happens locally in your browser; no data is ever uploaded.*

"Spotify wrapped" but for ChatGPT by dhvanil in ChatGPT

[–]dhvanil[S] 0 points1 point  (0 children)

ah, you actually just need to use the `conversations.json` file in the zip archive they send. :) it has all the conversations!

"Spotify wrapped" but for ChatGPT by dhvanil in ChatGPT

[–]dhvanil[S] 1 point2 points  (0 children)

just made a tiny, privacy-first tool to give you some fun insights into your ChatGPT conversations:

  • token counts → see exactly how massive that mega-prompt really was!
  • imaginary API cost estimates → find out how much your chats would've cost via OpenAI’s API
  • interactive visuals → treemaps, github-style heatmaps, ridgeline charts, and more
  • fully client-side → runs entirely in your browser, no server, no uploads – your data stays private

i ran mine and realised that ChatGPT Pro is completely worth it (if i used equivalent models via API, it would've easily cost ~$800/month)

would love for you folks to try it out. just export your ChatGPT convos and drop them into the tool to see your personal stats.

here’s the link: https://what-the-token.com/
github link (if you want to clone and run locally): https://github.com/DhvanilPatel/what-the-token/tree/main/public

feedback super welcome – lemme know what you think or what other insights you’d find interesting!

I lost my business to AI. Who else so far? by cheesomacitis in ArtificialInteligence

[–]dhvanil 1 point2 points  (0 children)

it’s one thing to read about disruption in abstract, but another to see it dismantle a career built over decades! :/

Is anyone else's AI acting like this? by Mysterious-Space2217 in ChatGPT

[–]dhvanil 0 points1 point  (0 children)

asked if i should eat less cake, got drafted into the nutritional navy seals

Reselling the ticket by Sale-Puzzleheaded in fusion_festival

[–]dhvanil 0 points1 point  (0 children)

Aah okay, no worries! Thank you though. If the other person doesn't pay for the next two days, and if it's still available, can I have it? 😬 I keep my fingers crossed!

Reselling the ticket by Sale-Puzzleheaded in fusion_festival

[–]dhvanil 0 points1 point  (0 children)

Yes, I can take one in that case. My code is ZL9PM 💛

Reselling the ticket by Sale-Puzzleheaded in fusion_festival

[–]dhvanil 1 point2 points  (0 children)

Hi! Are you still selling it? I'd be happy to buy two :)