Show HN: AffineUI a 2 file C++ GPU/HTML5 UI that can replace Electron

bc10000031 pts0 comments

I thought this might be useful to C++ engineers working on games, graphics, content in C++ looking for a good lightweight html5 Electron style UI engine. AffineUI is deeply optimized and meant to run as close to 120hz as possible, but supports (most) of html5 and is easy to integrate with your app. It also is highly crash resistant using weakrefs, handles, etc. to avoid footguns.A zero-dep drop in lib that could be a cross between DearIMGUI and Electron. A full featured GPU accelerated html5 rendering engine you can drop into any C++ project with two files (cpp/h) that adds a gpu accellerated html5 Electron style render plus a Gradio style UI component framework.Just main.cpp, affine.cpp and affine.h and you have yourself an app that s about 1/100th the size of the average Electron beast. I built it as a nicer (but somewhat larger) replacement for DearIMGUI that had full CSS/HTML5 compatibility for graphics apps I ve been working on.Also available as a python library (pip install affineui), a rust crate (cargo add affineui) and a .net nuget package.Cheers.

html5 electron affineui style working graphics

Related Articles