{"id":30386529,"url":"https://github.com/modbender/wails-template-nuxt4","last_synced_at":"2026-02-10T06:32:20.503Z","repository":{"id":308410778,"uuid":"1032727109","full_name":"modbender/wails-template-nuxt4","owner":"modbender","description":"Wails Nuxt 4 Template","archived":false,"fork":false,"pushed_at":"2025-08-06T05:54:27.000Z","size":288,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-21T04:08:27.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modbender.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["modbender"],"patreon":"modbender","open_collective":null,"ko_fi":"modbender","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"custom":["paypal.me/modbender"]}},"created_at":"2025-08-05T18:22:51.000Z","updated_at":"2025-08-06T05:54:31.000Z","dependencies_parsed_at":"2025-08-05T20:34:53.120Z","dependency_job_id":null,"html_url":"https://github.com/modbender/wails-template-nuxt4","commit_stats":null,"previous_names":["modbender/wails-template-nuxt4"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/modbender/wails-template-nuxt4","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fwails-template-nuxt4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fwails-template-nuxt4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fwails-template-nuxt4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fwails-template-nuxt4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modbender","download_url":"https://codeload.github.com/modbender/wails-template-nuxt4/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modbender%2Fwails-template-nuxt4/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29292094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T03:42:42.660Z","status":"ssl_error","status_checked_at":"2026-02-10T03:42:41.897Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-21T03:41:19.399Z","updated_at":"2026-02-10T06:32:20.487Z","avatar_url":"https://github.com/modbender.png","language":"Vue","funding_links":["https://github.com/sponsors/modbender","https://patreon.com/modbender","https://ko-fi.com/modbender","paypal.me/modbender"],"categories":[],"sub_categories":[],"readme":"# 🚀 Wails + Nuxt 4 Template\n\nA modern desktop application template that combines the power of **Wails v2** (Go backend) with **Nuxt 4** (Vue.js frontend) to create fast, native desktop applications with web technologies.\n\n## ✨ Features\n\n### Frontend (Nuxt 4)\n\n- 🎯 **Vue 3** with Composition API\n- 📝 **TypeScript** support out of the box\n- 🎨 **Nuxt UI** components for beautiful interfaces\n- 🔄 **Auto-imports** for components and composables\n- 📁 **File-based routing** with Nuxt\n- ⚡ **Hot Module Replacement** for fast development\n- 🎭 **SSG** (Static Site Generation) for optimal performance\n- 🗂️ **New directory structure** with `app/` as srcDir (Nuxt 4)\n\n### Backend (Go + Wails v2)\n\n- 🏃‍♂️ **Native performance** with Go\n- 🌍 **Cross-platform** builds (Windows, macOS, Linux)\n- 🔒 **Secure** API calls between frontend and backend\n- 📂 **File system access** and system integration\n- 🔔 **Native notifications** and system tray support\n- 📦 **Single executable** distribution\n\n## 🛠️ Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- **Go** 1.21 or later ([Download](https://golang.org/dl/))\n- **Node.js** 18.0 or later ([Download](https://nodejs.org/))\n\n\u003e **Note**: The Wails CLI will be automatically installed by our setup script if not present.\n\n## 🚀 Quick Start\n\n### 1. Create a new project using this template\n\n```bash\n# Clone or download this template\ngit clone \u003cyour-repo-url\u003e my-wails-app\ncd my-wails-app\n```\n\n### 2. Interactive Setup\n\n```bash\n# Run the interactive setup script\n./scripts/dev.sh    # On Unix systems\n# or\n.\\scripts\\dev.ps1   # On Windows\n\n# The script will automatically:\n# - Install Wails CLI if not present\n# - Install Go dependencies\n# - Detect your preferred package manager (pnpm → yarn → npm)\n# - Install frontend dependencies\n# - Provide interactive options for next steps\n```\n\n#### Package Manager Detection\n\nThe setup script intelligently detects your preferred package manager:\n\n1. **Lock file detection**: Checks for `pnpm-lock.yaml`, `yarn.lock`, or `package-lock.json`\n2. **Automatic selection**: Uses the package manager that matches the lock file\n3. **Interactive choice**: If no lock file exists, presents available options\n4. **Smart defaults**: Prefers pnpm → yarn → npm in that order\n\n### 3. Development Options\n\nAfter running the setup script, you'll get an interactive menu with these options:\n\n1. **Full Development Server** (`wails dev`)\n\n   - Starts both Go backend and Nuxt frontend\n   - Opens desktop application window\n   - Hot reload for both frontend and backend\n   - **Recommended for full development**\n\n2. **Frontend Only** (`pnpm/yarn/npm dev`)\n\n   - Starts only the Nuxt development server\n   - Runs in browser at http://localhost:3000\n   - Faster startup, but no backend API access\n   - **Good for UI/frontend-only development**\n\n3. **Production Build** (`wails build`)\n\n   - Creates optimized desktop application\n   - Outputs to `build/bin/` directory\n   - **Ready for distribution**\n\n4. **Project Information**\n   - Shows configuration details\n   - Lists key directories and commands\n   - **Helpful reference**\n\n### 4. Build for production\n\n```bash\n# Build for current platform\nwails build\n\n# Build for specific platforms\nwails build -platform windows/amd64\nwails build -platform darwin/amd64\nwails build -platform linux/amd64\n```\n\n## 📁 Project Structure\n\n```\nwails-template-nuxt4/\n├── frontend/                 # Nuxt 4 frontend\n│   ├── app/                 # Nuxt 4 app directory (srcDir)\n│   │   ├── assets/          # Static assets (CSS, images)\n│   │   ├── components/      # Vue components\n│   │   ├── pages/           # File-based routing\n│   │   ├── types/           # TypeScript declarations\n│   │   └── app.vue          # Root component\n│   ├── nuxt.config.ts       # Nuxt configuration\n│   ├── package.json         # Frontend dependencies\n│   └── tsconfig.json        # TypeScript configuration\n├── build/                   # Build assets\n│   ├── appicon.png          # Application icon\n│   ├── darwin/              # macOS specific files\n│   └── windows/             # Windows specific files\n├── scripts/                 # Development scripts\n├── main.go                  # Application entry point\n├── app.go                   # Application logic\n├── go.mod                   # Go dependencies\n├── wails.json               # Wails configuration\n└── README.md                # This file\n```\n\n\u003e **Note**: This template uses the new Nuxt 4 directory structure where frontend files are organized under `frontend/app/` (the `srcDir`). The `~` alias points to this directory, so `~/components` resolves to `frontend/app/components/`.\n\n## 🔧 Configuration\n\n### Wails Configuration (`wails.json`)\n\nThe `wails.json` file contains the Wails-specific configuration:\n\n- **Frontend commands**: Build and dev commands for Nuxt\n- **Application metadata**: Name, version, author information\n- **Build settings**: Output filename and build options\n\n### Nuxt Configuration (`frontend/nuxt.config.ts`)\n\nKey configurations for Wails integration:\n\n- **SSR disabled**: `ssr: false` for static generation\n- **Static preset**: `nitro.preset: 'static'` for file-based output\n- **Output directory**: `generate.dir: 'dist'` for Wails embedding\n\n## 🎯 Adding Features\n\n### Backend (Go)\n\nAdd new methods to `app.go`:\n\n```go\nfunc (a *App) MyNewMethod(param string) string {\n    // Your Go logic here\n    return \"Result: \" + param\n}\n```\n\n### Frontend (Vue/Nuxt)\n\nCall backend methods from your Vue components:\n\n```vue\n\u003cscript setup\u003e\nconst callBackend = async () =\u003e {\n  const result = await window.wails.App.MyNewMethod('test');\n  console.log(result);\n};\n\u003c/script\u003e\n```\n\n## 📦 Building and Distribution\n\n### Development Build\n\n```bash\nwails build -debug\n```\n\n### Production Build\n\n```bash\nwails build\n```\n\n### Cross-platform Builds\n\n```bash\n# Windows\nwails build -platform windows/amd64\n\n# macOS\nwails build -platform darwin/amd64\n\n# Linux\nwails build -platform linux/amd64\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n### Development Setup\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- [Wails](https://wails.io/) - For the amazing Go + Web framework\n- [Nuxt](https://nuxt.com/) - For the powerful Vue.js framework\n- [Vue.js](https://vuejs.org/) - For the reactive frontend framework\n\n## 📞 Support\n\nIf you have any questions or need help, please:\n\n1. Check the [Wails documentation](https://wails.io/docs/)\n2. Check the [Nuxt documentation](https://nuxt.com/docs)\n3. Open an issue in this repository\n4. Join the [Wails Discord community](https://discord.gg/JDdSxwjhGf)\n\n---\n\n**Happy coding!** 🎉\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodbender%2Fwails-template-nuxt4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodbender%2Fwails-template-nuxt4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodbender%2Fwails-template-nuxt4/lists"}