https://github.com/salvadordf/webui4csharp
WebUI4CSharp is a WebUI wrapper, which allows you to use any web browser as a GUI, with C# in the backend and HTML5 in the frontend.
https://github.com/salvadordf/webui4csharp
browser c-sharp console gui javascript typescript web webapp webui windows winforms wpf
Last synced: 22 days ago
JSON representation
WebUI4CSharp is a WebUI wrapper, which allows you to use any web browser as a GUI, with C# in the backend and HTML5 in the frontend.
- Host: GitHub
- URL: https://github.com/salvadordf/webui4csharp
- Owner: salvadordf
- License: mit
- Created: 2024-01-16T18:06:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-01T09:59:20.000Z (4 months ago)
- Last Synced: 2025-04-15T21:17:18.057Z (22 days ago)
- Topics: browser, c-sharp, console, gui, javascript, typescript, web, webapp, webui, windows, winforms, wpf
- Language: C#
- Homepage: https://www.briskbard.com/forum/
- Size: 6.33 MB
- Stars: 38
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebUI4CSharp [](https://twitter.com/intent/tweet?text=Add%20WebUI4CSharp%20to%20your%20applications%20to%20use%20any%20web%20browser%20as%20a%20GUI%20in%20your%20application&url=https://github.com/salvadordf/WebUI4CSharp&via=briskbard&hashtags=WebUI4CSharp,csharp,webui)
WebUI4CSharp is a [WebUI](https://github.com/webui-dev/webui) wrapper, which allows you to use any web browser as a GUI, with C# in the backend and HTML5 in the frontend.WebUI allows you to link your console, WinForms or WPF application with a web app that runs in a web browser installed in the operating system. Originally WebUI was created to have all the UI code in the web browser and the rest of the code in your hidden C# application.
However, you can also decide to have a visible C# application communicating with a HTML5 app. You can get web browser events in your desktop application, call C# functions from JS, call JS functions from C# code, execute JavaScript, etc.WebUI4CSharp can be used console, WinForms or WPF applications for Windows.
WebUI doesn't embed a web browser in your application. It's used as a bridge between a desktop application and the web browser running an HTML5 app.
## Features
- Fully Independent (*No need for any third-party runtimes*)
- Lightweight & Small memory footprint
- Fast binary communication protocol between WebUI and the browser (*Instead of JSON*)
- Multi-platform & Multi-Browser
- Using private profile for safety
- Original library written in Pure C
- XML documentation.
- Help file.## Minimal Example
```cs
using WebUI4CSharp;WebUIWindow window = new WebUIWindow();
window.Show(" Hello World ! ");
WebUI.Wait();
```[More examples](https://github.com/salvadordf/WebUI4CSharp/tree/main/demos)
## Text editor
This [text_editor](https://github.com/salvadordf/WebUI4CSharp/tree/main/demos/console_text_editor) is a lightweight and portable example written in C# and JavaScript using WebUI as the GUI.

## Installation
Use the Nuget Package Manager to install the WebUI4CSharp and WebUI4CSharp.Natives packages or use the following commands :
```bash
dotnet add package WebUI4CSharp
dotnet add package WebUI4CSharp.Natives
```## Building the demos
* Open the file WebUI4CSharp.Samples\WebUI4CSharp.Samples.sln.
* Press Control+Shift+B to build the demos## Links
* [Developer Forums](https://www.briskbard.com/forum)
* [WebUI project](https://github.com/webui-dev/webui)
* [C API documentation](https://webui.me/docs/#/c_api)## Support
If you find this project useful, please consider making a donation.[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FTSD2CCGXTD86)
You can also support this project with Patreon.
You can also support this project with Liberapay.
## Related projects
* [CEF4Delphi](https://github.com/salvadordf/CEF4Delphi)
* [WebView4Delphi](https://github.com/salvadordf/WebView4Delphi)
* [WebUI4Delphi](https://github.com/salvadordf/WebUI4Delphi)
* [Doxygen](https://github.com/doxygen/doxygen)
* [WebUI.NET](https://github.com/Juff-Ma/WebUI.NET)