RepositoryHTMLCACanada
webui-dev

webui-dev/nim-webui

Use any web browser as GUI, with Nim in the backend and HTML5 in the frontend.

164stars
15forks
9issues
5views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: nim-lang

#1 Repository of the week

1
TINIX TRENDING·Topic: nimble

#1 Repository of the month

1
TINIX TRENDING·Topic: nim-lang

#1 Repository of the month

Logo

Nim-WebUI

Use any web browser or WebView as GUI, with Nim in the backend and modern web technologies in the frontend, all in a lightweight portable lib.

Screenshot

Features

  • Fully Independent (Only needs a web browser or a WebView at runtime)
  • Lightweight & Small memory footprint
  • Fast binary communication protocol between WebUI and the browser
  • Multi-platform & Multi-Browser
  • Using private profile for safety
  • Cross-platform WebView

Installation

Install via Nimble:

nimble install webui

Documentation

Online documentation can be found here:

I suggest to get started using some examples or WebUI's own examples or documentation.

Heres a very minimal example of using the wrapper:

import webui

let window = newWindow() # Create a new Window
window.show("Hello") # Show the window with html content

wait() # Wait until the window gets closed

Examples

Examples can be found here at examples/.

If you're trying to run the examples remember to clone the repository recursively, as it depends on the WebUI repo as a submodule. Here's the command to do so for the truly lazy:

git clone --recursive https://github.com/webui-dev/nim-webui.git

Bindings and Wrapper

The Nim library exposes two files: webui.nim and webui/bindings.nim. webui/bindings.nim are low-level bindings for WebUI, generated by c2nim using script generate_bindings.nims. webui.nim is a high-level wrapper for WebUI, using native Nim types and avoiding pointers.

The wrapper and bindings also allow to to control whether or not to statically compile WebUI's C sources into your application, compile with a static library, or to depend on a DLL. Static compilation is the default behavior.

To compile with a static library, pass -d:useWebviewStaticLib or -d:useWebviewStaticLibrary to the Nim compiler. To depend on a DLL, pass -d:useWebviewDll instead. If neither of these flags are passed to the Nim compiler, static compilation will take place instead. Static libraries and DLLs can be found in WebUI's website here.

In addition, you can also enable WebUI's logging via -d:webuiLog but that flag only works for static compilation.

Other Wrappers/Bindings

LanguageStatusLink
Go✔️Go-WebUI
Nim✔️Nim-WebUI
Pascal✔️Pascal-WebUI
Python✔️Python-WebUI
Rust✔️Rust-WebUI
TypeScript / JavaScript✔️Deno-WebUI
V✔️V-WebUI
Zig✔️Zig-WebUI
Odinnot completeOdin-WebUI
Delphi✔️WebUI4Delphi
QuickJS✔️QuickUI

Supported Web Browsers

BrowserWindowsmacOSLinux
Mozilla Firefox✔️✔️✔️
Google Chrome✔️✔️✔️
Microsoft Edge✔️✔️✔️
Chromium✔️✔️✔️
Yandex✔️✔️✔️
Brave✔️✔️✔️
Vivaldi✔️✔️✔️
Epic✔️✔️not available
Apple Safarinot availablecoming soonnot available
Operacoming sooncoming sooncoming soon

Supported WebView Platforms

WebViewStatus
Windows WebView2✔️
Linux GTK WebView✔️
macOS WKWebView✔️

License

MIT License. See LICENSE

Original WebUI library is licensed under MIT. See LICENSE.

Similar Projects

Discover other similar projects and AI models.

RepositoryGo
moonD4rk/HackBrowserData

Decrypt and export passwords, cookies, history and more from 20 browsers on Windows, macOS and Linux. For authorized security research, incident response and DFIR.

14.8k
Nov 26, 2026
RepositoryTypeScript
microsoft/playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

101.5k
Dec 1, 2026
RepositoryJavaScript
ovity/octotree

GitHub on steroids

23.3k
Jun 6, 2024
RepositoryJavaScript
gildas-lormeau/SingleFile

Web Extension for saving a faithful copy of a complete web page in a single HTML file

23.0k
Nov 30, 2026
RepositoryTypeScript
MetaMask/metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites

13.3k
Nov 26, 2026
RepositoryJavaScript
FilipePS/Traduzir-paginas-web

Translate your page in real time using Google, Bing or Yandex

6.1k
Oct 29, 2026
RepositoryNim
moigagoo/norm

A Nim ORM for SQLite and Postgres

417
Aug 5, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryC++
electron/electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

124.3k
Dec 2, 2026