r/KittyTerminal • • 22h ago

Live stock and crypto charts in Neovim, drawn with the Kitty graphics protocol

23 Upvotes

I built a market board for Neovim that draws its charts as images through the Kitty graphics protocol.

How it uses the protocol:

- Charts are drawn in Lua (anti-aliased line, gradient fill) at the pixel size of their cells, then sent as zlib-compressed RGBA (f=32, o=z).

- They're shown through Unicode placeholders (U=1). To Neovim they're ordinary text cells, so the images move, hide and redraw with their window, with no placement bookkeeping or cleanup.

- Moving the crosshair resends only a few columns of the chart as a separate strip image, so it stays responsive.

- Each image alternates between two ids, so the new picture is on screen before the old one is deleted.

It works in Kitty and Ghostty; other terminals get text-block charts.

Repo: https://github.com/fimkap/ticker.nvim

4K version on YouTube: https://youtu.be/ZcgIyTk2ug4

Built with Volt: https://github.com/nvzone/volt

Feedback welcome.

AI disclosure: most of the code was written with Claude Code, under my close supervision. I set the idea and the design direction, tested every change the way a user would, and sent it back through many iterations until it behaved the way I wanted.