{"id":13417129,"url":"https://github.com/ArcherGu/fast-vite-electron","last_synced_at":"2025-03-15T01:33:00.665Z","repository":{"id":41452096,"uuid":"384334855","full_name":"ArcherGu/fast-vite-electron","owner":"ArcherGu","description":"Vite + Electron with esbuild, so fast! ⚡","archived":false,"fork":false,"pushed_at":"2024-10-19T00:48:44.000Z","size":2984,"stargazers_count":186,"open_issues_count":2,"forks_count":19,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-19T21:26:03.158Z","etag":null,"topics":["electron","electron-vite","electron-vue","esbuild","template","vite","vue"],"latest_commit_sha":null,"homepage":"","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/ArcherGu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2021-07-09T05:48:24.000Z","updated_at":"2024-10-19T00:48:14.000Z","dependencies_parsed_at":"2022-08-10T02:27:09.788Z","dependency_job_id":"3c2f715a-0602-4ab7-aee4-a8a69998dfd4","html_url":"https://github.com/ArcherGu/fast-vite-electron","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcherGu%2Ffast-vite-electron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcherGu%2Ffast-vite-electron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcherGu%2Ffast-vite-electron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcherGu%2Ffast-vite-electron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArcherGu","download_url":"https://codeload.github.com/ArcherGu/fast-vite-electron/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243671653,"owners_count":20328660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["electron","electron-vite","electron-vue","esbuild","template","vite","vue"],"created_at":"2024-07-30T22:00:32.833Z","updated_at":"2025-03-15T01:32:55.655Z","avatar_url":"https://github.com/ArcherGu.png","language":"TypeScript","funding_links":[],"categories":["Get Started"],"sub_categories":["Templates"],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg width=\"400\" src=\"https://github.com/ArcherGu/fast-vite-electron/blob/main/logo.png\" alt=\"logo\"\u003e\n\u003c/p\u003e\n\n# ⚡Vite + Electron \u0026 Doubleshot Template\n\nThis template is used to build vite + electron projects. Build with [Doubleshot](https://github.com/Doubleshotjs/doubleshot), crazy fast!\n\n🎉 [Doubleshot](https://github.com/Doubleshotjs/doubleshot) is a whole new set of tools to help you quickly build and start a node backend or electron main process.\n\nThis template is based on a small framework [einf](https://github.com/ArcherGu/einf) that I wrote myself, which may not be complete, if you want to apply to production, you can use the templates with integrated nest.js:\n\n- [Vue.js template](https://github.com/ArcherGu/fast-vite-nestjs-electron)\n- [React template](https://github.com/ArcherGu/vite-react-nestjs-electron)\n- [Svelte.js template](https://github.com/ArcherGu/vite-svelte-nestjs-electron)\n\n## Features\n\n- 🔨 [vite-plugin-doubleshot](https://github.com/archergu/doubleshot/tree/main/packages/plugin-vite#readme) to run/build electron main process.\n  \u003cbr\u003e\n\n- 😎 Controllers/Services ipc communication, powered by Typescript [decorators](https://www.typescriptlang.org/docs/handbook/decorators.html).\n  \u003cbr\u003e\n\n- ⚡ Rendering process is powered by [Vite](https://vite.io/).\n  \u003cbr\u003e\n\n- ⏩ Quick start and build, powered by [tsup](https://tsup.egoist.sh/) and [electron-builder](https://www.electron.build/) integrated in [@doubleshot/builder](https://github.com/Doubleshotjs/doubleshot/tree/main/packages/builder)\n\n## Motivation\n\nIn the past, I've been building desktop clients with [vue](https://v3.vuejs.org/) + [vue-cli-plugin-electron-builder](https://github.com/nklayman/vue-cli-plugin-electron-builder), and they work very well. But as the project volume grows, webpack-based build patterns become slower and slower.\n\nThe advent of [vite](https://vitejs.dev/) and [esbuild](https://esbuild.github.io/) greatly improved the development experience and made me feel lightning fast ⚡.\n\nIt took me a little time to extract this template and thank you for using it.\n\n## How to use\n\n- Click the [Use this template](https://github.com/ArcherGu/fast-vite-electron/generate) button (you must be logged in) or just clone this repo.\n- In the project folder:\n\n  ```bash\n  # install dependencies\n  yarn # npm install\n\n  # run in developer mode\n  yarn dev # npm run dev\n\n  # build\n  yarn build # npm run build\n  ```\n\n## Note for PNPM\n\nIn order to use with `pnpm`, you'll need to adjust your `.npmrc` to use any one the following approaches in order for your dependencies to be bundled correctly (ref: [#6389](https://github.com/electron-userland/electron-builder/issues/6289#issuecomment-1042620422)):\n\n```\nnode-linker=hoisted\n```\n\n```\npublic-hoist-pattern=*\n```\n\n```\nshamefully-hoist=true\n```\n\n## Relative\n\nMy blog post:\n\n- [极速 DX Vite + Electron + esbuild](https://archergu.me/posts/vite-electron-esbuild)\n- [用装饰器给 Electron 提供一个基础 API 框架](https://archergu.me/posts/electron-decorators)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArcherGu%2Ffast-vite-electron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FArcherGu%2Ffast-vite-electron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FArcherGu%2Ffast-vite-electron/lists"}