wails
wails copied to clipboard
Native window control (DWM, NS, GTK) + Plugin Architecture
Discussed in https://github.com/wailsapp/wails/discussions/1587
Originally posted by brys0 July 18, 2022 I'm not sure if this exists yet but I couldn't find any documentation on the topic. I'd appreciate it if we had the ability to add our own methods or controllers for the window. For example using experimental unreleased DWM flags from Windows would be excellent. Having the ability to also use custom items from NS for Mac and GTK for Linux would be amazing. Following this, the ability to create wails plugins (maybe it call it wailins) would be great for people who don't want to dive head first into golang for everything.
@leaanthony Just like 15 mins ago I was thinking about how hard is it to build a plugin architecture for a go application. And what if wails had it 😀 looks like you read my mind lol.
Are thinking of something like Webpack or Vite plugin system in terms lf api design? I would seriously love to help out with this if possible though I got zero idea about go plugins package and basically how this will work
There's different classes of plugin: the one mentioned above (extending windowing functionality) and "routing plugins" that give you a way of hooking into the AssetHandler so you can extend the API.
Are thinking of something like Webpack or Vite plugin system in terms lf api design? I would seriously love to help out with this if possible though I got zero idea about go plugins package and basically how this will work
Ideally the API would be completely separated beyond importing an API file for the js (WebView) side of things. Having it have to confirm to the webpack/vite plugin architecture, doesn't make sense. Something as simple as importing a function like: "usePlugin" and making it an async callback with returns the data from the go (backend) side would be plenty sufficient
If you need any help for implementing this I suggest you look at plugins that tauri has and how the JS side actually does implement functions and so-fourth