{"id":27219979,"url":"https://github.com/stacksjs/vite-plugin-tauri","last_synced_at":"2026-04-06T08:01:38.916Z","repository":{"id":285836093,"uuid":"959427232","full_name":"stacksjs/vite-plugin-tauri","owner":"stacksjs","description":"Easily build cross-platform apps using Tauri \u0026 Vite.","archived":false,"fork":false,"pushed_at":"2026-03-26T19:44:54.000Z","size":1795,"stargazers_count":5,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-27T02:10:56.517Z","etag":null,"topics":["app","desktop","mobile","plugin","tauri","vite","vite-plugin","web"],"latest_commit_sha":null,"homepage":"https://vite-plugin-tauri.netlify.app","language":"TypeScript","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/stacksjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["stacksjs","chrisbbreuer"],"open_collective":"stacksjs"}},"created_at":"2025-04-02T19:07:45.000Z","updated_at":"2026-03-06T15:46:14.000Z","dependencies_parsed_at":"2025-05-11T02:18:58.570Z","dependency_job_id":"e1bbd3d6-1a9a-4a71-80aa-ea8ad14477d0","html_url":"https://github.com/stacksjs/vite-plugin-tauri","commit_stats":null,"previous_names":["stacksjs/vite-plugin-tauri"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stacksjs/vite-plugin-tauri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fvite-plugin-tauri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fvite-plugin-tauri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fvite-plugin-tauri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fvite-plugin-tauri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stacksjs","download_url":"https://codeload.github.com/stacksjs/vite-plugin-tauri/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stacksjs%2Fvite-plugin-tauri/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31464102,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["app","desktop","mobile","plugin","tauri","vite","vite-plugin","web"],"created_at":"2025-04-10T06:50:22.286Z","updated_at":"2026-04-06T08:01:38.891Z","avatar_url":"https://github.com/stacksjs.png","language":"TypeScript","funding_links":["https://github.com/sponsors/stacksjs","https://github.com/sponsors/chrisbbreuer","https://opencollective.com/stacksjs"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\".github/art/cover.jpg\" alt=\"Social Card of this repo\"\u003e\u003c/p\u003e\n\n[![npm version][npm-version-src]][npm-version-href]\n[![GitHub Actions][github-actions-src]][github-actions-href]\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\u003c!-- [![npm downloads][npm-downloads-src]][npm-downloads-href] --\u003e\n\u003c!-- [![Codecov][codecov-src]][codecov-href] --\u003e\n\n# vite-plugin-tauri\n\n\u003e A Vite plugin to seamlessly integrate with Tauri.\n\n## Features\n\n- 🔄 **Auto Integration** _Automatically initializes and integrates Tauri with your Vite project_\n- 🛠️ **Dev Mode** _Launches Tauri alongside your Vite dev server_\n- 📦 **Build Ready** _Configures Tauri build with your Vite output directory_\n- 🧰 **CLI Passthrough** _Supports passing Tauri CLI arguments for advanced configurations_\n- 🌐 **Multi-Environment** _Works across different platforms with proper configuration_\n- 💼 **Zero Config** _Works out of the box with sensible defaults_\n- 🧠 **Smart Detection** _Automatically detects your Tauri configuration file_\n- 🔍 **System Tray** _Easily add system tray functionality to your desktop applications_\n\n## Install\n\n```bash\nnpm install -D @stacksjs/vite-plugin-tauri\n# or\nyarn add -D @stacksjs/vite-plugin-tauri\n# or\npnpm add -D @stacksjs/vite-plugin-tauri\n# or\nbun add -D @stacksjs/vite-plugin-tauri\n```\n\n## Get Started\n\n```ts\n// vite.config.ts\nimport { defineConfig } from 'vite'\nimport Tauri from '@stacks/vite-plugin-tauri'\n\nexport default defineConfig({\n  plugins: [\n    Tauri()\n  ]\n})\n```\n\nThat's it! When you run your Vite development server, Tauri will automatically be initialized if not already present, and will launch alongside your Vite app.\n\n## Configuration\n\nThe plugin accepts an optional configuration object. Here's an example with available options:\n\n```ts\n// vite.config.ts\nimport { defineConfig } from 'vite'\nimport Tauri from '@stacks/vite-plugin-tauri'\n\nexport default defineConfig({\n  plugins: [\n    Tauri({\n      // System tray configuration\n      systemTray: {\n        enabled: true, // Enable system tray support\n        menuOnLeftClick: true, // Show menu on left click (default: true)\n        useAppIcon: true // Use the app icon as the tray icon (default: true)\n      }\n    })\n  ]\n})\n```\n\n## CLI Arguments\n\nYou can pass arguments to the Tauri CLI by adding them after a double dash (`--`) and the `-t` or `--tauri` flag:\n\n```bash\n# Development mode\nnpm run dev -- -t --debug\n\n# Build mode\nnpm run build -- -t --debug\n```\n\n## Environment Variables\n\n- `TAURI_PATH_DEPTH`: Controls how deep the plugin searches for Tauri configuration files. Default is `3`.\n\n## Usage with Tauri\n\nThis plugin works with [Tauri](https://tauri.app/), a framework for building desktop applications with web technologies.\n\n### Initializing a Tauri Project\n\nIf you don't have a Tauri project initialized in your directory, the plugin will automatically prompt you to create one when you run your Vite dev server:\n\n```bash\nnpm run dev\n```\n\n### Tauri Configuration\n\nThe plugin will automatically find your Tauri configuration file (`tauri.conf.json`, `tauri.conf.json5`, or `Tauri.toml`) and use it to configure the integration.\n\n### Tauri CLI\n\nFor advanced Tauri configuration, you can use the Tauri CLI directly. The plugin is designed to work alongside the CLI without conflicts.\n\nFor more information on Tauri, visit [tauri.app](https://tauri.app/).\n\n## Testing\n\n```bash\nbun test\n```\n\n## Changelog\n\nPlease see our [releases](https://github.com/stacksjs/vite-plugin-tauri/releases) page for more information on what has changed recently.\n\n## Contributing\n\nPlease review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.\n\n## Community\n\nFor help, discussion about best practices, or any other conversation that would benefit from being searchable:\n\n[Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)\n\nFor casual chit-chat with others using this package:\n\n[Join the Stacks Discord Server](https://discord.gg/stacksjs)\n\n## Postcardware\n\n“Software that is free, but hopes for a postcard.” We love receiving postcards from around the world showing where `vite-plugin-tauri` is being used! We showcase them on our website too.\n\nOur address: Stacks.js, 12665 Village Ln #2306, Playa Vista, CA 90094, United States 🌎\n\n## Sponsors\n\nWe would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.\n\n- [JetBrains](https://www.jetbrains.com/)\n- [The Solana Foundation](https://solana.com/)\n\n## Credits\n\n- [Tauri](https://tauri.app/) for creating a powerful desktop app framework\n- [Chris Breuer](https://github.com/chrisbbreuer)\n- [All Contributors](https://github.com/stacksjs/vite-plugin-tauri/contributors)\n\n## License\n\nThe MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.\n\nMade with 💙\n\n\u003c!-- Badges --\u003e\n[npm-version-src]: https://img.shields.io/npm/v/@stacksjs/vite-plugin-tauri?style=flat-square\n[npm-version-href]: https://npmjs.com/package/@stacksjs/vite-plugin-tauri\n[github-actions-src]: https://img.shields.io/github/actions/workflow/status/stacksjs/vite-plugin-tauri/ci.yml?style=flat-square\u0026branch=main\n[github-actions-href]: https://github.com/stacksjs/vite-plugin-tauri/actions?query=workflow%3Aci\n\n\u003c!-- [codecov-src]: https://img.shields.io/codecov/c/gh/stacksjs/vite-plugin-tauri/main?style=flat-square\n[codecov-href]: https://codecov.io/gh/stacksjs/vite-plugin-tauri --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstacksjs%2Fvite-plugin-tauri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstacksjs%2Fvite-plugin-tauri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstacksjs%2Fvite-plugin-tauri/lists"}