A Wails template that pairs Go with a SvelteKit frontend, Tailwind CSS v4, and shadcn-svelte components.
@sveltejs/adapter-static for static export.wails init -n myapp -t https://github.com/AlchemillaHQ/wails-sveltekit-shadcn
cd myapp
wails dev
Run wails dev in the project directory. In another terminal, go into the frontend directory and run npm run dev. The frontend dev server will run on http://localhost:34115. Connect to this in your browser to see live hot-reload updates.
To build a redistributable, production mode package:
wails build
The compiled binary will be placed in the build/bin directory.
├── frontend/ # SvelteKit frontend
│ ├── src/
│ │ ├── lib/
│ │ │ ├── components/ # Reusable components
│ │ │ │ └── ui/ # shadcn-svelte UI components
│ │ │ ├── hooks/ # Custom hooks
│ │ │ └── utils.ts # Utility functions (cn, etc.)
│ │ └── routes/ # SvelteKit pages
│ ├── svelte.config.js
│ ├── tailwind.config.js
│ └── components.json # shadcn-svelte configuration
├── main.go # Go entrypoint
├── app.go # Wails app bindings
└── wails.json # Wails configuration