WebUI lets native programs use an installed web browser or optional WebView as the user interface while backend logic stays in C/C++ or wrapped languages.
Overview
WebUI is a portable library for building desktop-style applications whose front end is rendered in a real web browser or, optionally, a platform WebView. Backend code can stay in C or C++, with wrappers for Python, Go, Rust, JavaScript, TypeScript, and other runtimes.
Instead of embedding a large WebView runtime inside your binary, WebUI launches the user’s installed browser (or WebView when configured) and talks to it over a compact WebSocket protocol. The project describes this as keeping binaries small and portable while still using familiar HTML, CSS, and JavaScript for the UI.
Features include a single-header distribution, low memory footprint, multi-browser support on Windows, Linux, and macOS, optional TLS builds, and private browser profiles for isolation. Prebuilt binaries are offered per platform, and you can link statically or dynamically when compiling applications.
The library is implemented in C with MIT licensing and is meant for developers who want native OS access with a web technology presentation layer rather than a hosted web app.
Key features
- Real browser as GUI
- Optional WebView mode
- Binary WebSocket protocol
- Single-header C library
- Multi-language wrappers
- Cross-browser support
- Private browser profiles
- Static and dynamic linking
Use cases
- Desktop tools with HTML UIs
- Lightweight cross-platform apps
- C/C++ apps with modern front ends
- Prototypes avoiding embedded Chromium