Not directly — but here's the full picture:
What Pi's TUI Can Do
Pi has an Image TUI component (in @mariozechner/pi-tui) that renders images using terminal graphics protocols (Kitty, iTerm2, Ghostty, WezTerm). It takes base64 image data:
typescript
So the rendering capability is there — but only for image formats (PNG, etc.), not for .excalidraw JSON directly.
The Gap
An .excalidraw file is JSON that needs a renderer to become a visual. To bridge that gap you'd need:
-
A converter — something that takes .excalidraw JSON → PNG/SVG. Options:
-
A Pi extension — calls the converter, takes the resulting PNG, and shows it via the Image component as an overlay or widget
What You'd Get
A /preview-excalidraw <file.excalidraw> command (or auto-preview after generation) that pops up the rendered diagram in-TUI — but only in terminals that support the Kitty graphics protocol (Kitty, Ghostty, WezTerm, iTerm2). Standard terminals would see nothing or garbage.
TL;DR: No native support exists, but it's buildable as an extension. Want me to build one? I'd need to know: which terminal you use (to confirm graphics protocol support) and whether you're okay installing something like excalidraw-cli (which requires Chrome/Puppeteer).