Example project for creating a GUI Application with WebUI in combination with a modern Webframework.
Gsysmo is a simple system monitor using Go, WebUI, SvelteKit (Svelte 5) and Bun.
-
Clone the repo
git clone https://github.com/ttytm/gsysmo.git && cd gsysmo
-
Use the bootstrap helper to setup go-webui and its parent library.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/webui-dev/go-webui/main/setup.sh)"
-
Install frontend dependencies
bun i --cwd ui
bun run --cwd ui build
NOTE: As an alternative to
--cwd
used above, change to the ui directory or open it in a separate terminal, execute the bun commands without specifying a path and change back to the (terminal with the) project root. Just choose what fits best during development.\ -
Build / run the application
go run main.go