title: "Building a Desktop LLM App with cpp-httplib" order: 0
Have you ever wanted to add a web API to your own C++ library, or quickly build an Electron-like desktop app? In Rust you might reach for "Tauri + axum," but in C++ it always seemed out of reach.
With cpp-httplib, webview/webview, and cpp-embedlib, you can take the same approach in pure C++ — and produce a small, easy-to-distribute single binary.
In this tutorial we build an LLM-powered translation app using llama.cpp, progressing step by step from "REST API" to "SSE streaming" to "Web UI" to "desktop app." Translation is just the vehicle — replace llama.cpp with your own library and the same architecture works for any application.
If you know basic C++17 and understand the basics of HTTP / REST APIs, you're ready to start.