Open Source · Rust · MIT
Pixel-exact papers beside your coding agent.
hoja renders PDFs, arXiv preprints, Markdown with LaTeX math, and TeX files straight into Ghostty and Rex over the Kitty Graphics Protocol. Built in Rust by Railly Hugo at Crafter Station.
When to use hojafit
Reading dense ML or math papers in a Ghostty or Rex split pane, handing off exact equation screenshots to coding agents, or live-watching Markdown and LaTeX notes from the terminal.
When not to use hojascope
Terminals without Kitty Graphics Protocol support (such as macOS Terminal.app), or workflows that need interactive PDF form editing, digital signatures, or GUI highlight annotations.
Frequently asked questions.
- What is hoja?
- hoja is an open-source Rust terminal reader for PDFs, arXiv preprints, Markdown with LaTeX math, and TeX files. It renders pixel-exact pages over the Kitty Graphics Protocol inside Ghostty and Rex.
- How does OKLab recoloring differ from dark-mode PDF inversion?
- Naive RGB inversion flips red plots to cyan and corrupts photographs. hoja reads terminal background and foreground colors via OSC 10/11 and maps neutral paper and ink through a 64^3 OKLab lightness transfer LUT while preserving vector chroma and masking embedded raster photos occupying under 75% of page area.
- Which terminals support hoja?
- Any terminal implementing the Kitty Graphics Protocol and OSC 10/11 theme queries on macOS or Linux. hoja is built and tested primarily for Ghostty and Rex (including a native Rex Cmd+Shift+P Lua plugin via hoja rex install).
- How does equation handoff to coding agents work?
- Dragging a selection box over any equation (or pressing y / @) renders that exact bounding box at 2x density in crisp paper ink, saves region.png, selection.md, and meta.json under ~/.cache/hoja/handoff/, and copies the path via OSC 52 and pbcopy so you can paste it into fx, Codex, or Claude Code.
- Can hoja live-preview Markdown and LaTeX files?
- Yes. hoja notes.md --watch compiles Markdown with $...$ and $$...$$ through typst (cmarker and mitex) in roughly 100 ms warm, and hoja paper.tex --watch compiles LaTeX via tectonic without losing your scroll position.
- What license is hoja released under and who maintains it?
- hoja is MIT-licensed and uses pdfium-render (Apache/BSD) instead of AGPL MuPDF. It is authored by Railly Hugo and published by Crafter Station.