A starter template combining Wails (Go) for desktop apps with Astro for frontend rendering, Preact for lightweight UI components, Tailwind CSS + DaisyUI for styling, and Vite for fast bundling. Designed for building cross-platform desktop apps with a modern web stack and minimal overhead.
A template for Wails v2.11.0 with Astro v5. (TypeScript + Daisyui + Preact + Vite)
Current Versions:
- Astro v5.16.6
- Wails v2.11.0
- Preact v10.28.1
- Daisyui v5.5.14
- Tailwindcss v4.1.18
- Node 15+ with pnpm
- Go 1.21+
- Wails CLI v2.11.0 or newer | (https://wails.io/docs/gettingstarted/installation)
Create a new Application with the Wails CLI and this template:
wails init -n myprojectname -t https://github.com/mbstack/wails-astro-daisyui-preact-template
To run in live development mode, run wails dev in the project directory. This will run a Vite development
server that will provide very fast hot reload of your frontend changes. If you want to develop in a browser
and have access to your Go methods, there is also a dev server that runs on http://localhost:34115. Connect
to this in your browser, and you can call your Go code from devtools.
To build a redistributable, production mode package, use wails build.
You can configure the project by editing wails.json. More information about the project settings can be found
here: https://wails.io/docs/reference/project-config