Repository

ozanvos/monoprint

Monoprint

Offline code images from a desktop app, CLI, Rust and TypeScript

25stars

Open github.com

ozanvos/monoprint

Monoprint

Offline code screenshot generator with desktop app, CLI, Rust library, and Node.js bindings. Exports PNG, SVG, HTML. Bundled fonts, themes, grammars. Runs locally without network.

Visit project

Show me a random project

First shared
Nov 10, 2026
HN activity
20

Show HN@osenerNov 10, 2026

Show HN: Monoprint – Beautiful code images, GPUI desktop app, CLI, Rust library

I built Monoprint in Rust as a CLI tool for generating code screenshots for an in-house programming language. I liked it so much that I ended up building a desktop app around it with GPUI (Zed's UI framework). Everything renders on your machine. Fonts, themes and grammars are bundled, and nothing is uploaded. Syntax highlighting uses my own highlighter, https://github.com/ozanvos/pierre-highlights-rs, with Giallo (https://crates.io/crates/giallo) covering the remaining languages. macOS and Linux app: live preview, line highlights, custom fonts, copy to clipboard. CLI: reads a file or stdin and writes PNG, SVG or HTML. It can also capture terminal output: cargo test --color=always | monoprint -l ansi -o test.png You can also use it as a Rust library, and from Node.js through prebuilt bindings on npm. Free and open source (Apache-2.0). Building the app in GPUI was a pleasure: fast, crisp text and precise layout. Feedback on the output and the themes is very welcome.

Community

Hacker News discussion

Loading the thread…