{"id":16696581,"url":"https://github.com/karolis-sh/electron-snowpack","last_synced_at":"2025-10-28T01:12:44.688Z","repository":{"id":42483655,"uuid":"331731857","full_name":"karolis-sh/electron-snowpack","owner":"karolis-sh","description":"Use Snowpack and esbuild for Electron app development","archived":false,"fork":false,"pushed_at":"2022-12-28T07:35:43.000Z","size":562,"stargazers_count":49,"open_issues_count":6,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-11T13:46:34.905Z","etag":null,"topics":["electron","esbuild","snowpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/karolis-sh.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}},"created_at":"2021-01-21T19:26:14.000Z","updated_at":"2024-12-05T22:03:25.000Z","dependencies_parsed_at":"2023-01-31T06:00:44.301Z","dependency_job_id":null,"html_url":"https://github.com/karolis-sh/electron-snowpack","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":"karolis-sh/template-javascript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karolis-sh%2Felectron-snowpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karolis-sh%2Felectron-snowpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karolis-sh%2Felectron-snowpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karolis-sh%2Felectron-snowpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karolis-sh","download_url":"https://codeload.github.com/karolis-sh/electron-snowpack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"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","esbuild","snowpack"],"created_at":"2024-10-12T17:44:12.017Z","updated_at":"2025-10-28T01:12:39.644Z","avatar_url":"https://github.com/karolis-sh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Electron Snowpack\n\n\u003c!-- markdownlint-disable no-inline-html line-length --\u003e\n\n\u003cimg src=\"https://raw.githubusercontent.com/karolis-sh/electron-snowpack/main/assets/electron-snowpack.svg\" align=\"right\" width=\"100\" height=\"100\" /\u003e\n\n\u003c!-- markdownlint-enable no-inline-html line-length --\u003e\n\n[![npm version][package-version-badge]][package-version]\n![Node.js CI](https://github.com/karolis-sh/electron-snowpack/workflows/Node.js%20CI/badge.svg)\n[![License: MIT](https://img.shields.io/badge/license-mit-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\u003e Supercharged `Electron` application development with `Snowpack` and `esbuild`\n\n## Getting Started\n\n- `npx electron-snowpack --help`\n\nCheck out the [examples](/examples) folder for the common use cases. For further\nguidance read the [Snowpack](https://www.snowpack.dev/) and [Electron](https://www.electronjs.org/)\ndocs.\n\n## Features\n\n- ✅ esbuild for `main` (TypeScript, Live Reload)\n- ✅ Snowpack for `renderer` (TypeScript, HMR + Fast Refresh, plugins, etc.)\n- ✅ `.env` variables\n- ✅ Ability to extend `snowpack.config.js` and `tsconfig.json`\n- ✅ Config preset for `electron-builder`\n- 🚧 Minification (➕ `main`, ➖ `renderer`)\n\n### Snowpack\n\nSnowpack will be used as a development server and bundler for your `public`\nstatic files and `src/renderer` code. To setup just extend your `snowpack.config.js`:\n\n```js\nmodule.exports = {\n  extends: 'electron-snowpack/config/snowpack.js',\n};\n```\n\n### Environment Variables\n\nBuilt-in support for `.env` files (just as [`@snowpack/plugin-dotenv`](https://www.npmjs.com/package/@snowpack/plugin-dotenv)):\n\n- `.env.NODE_ENV.local`\n- `.env.NODE_ENV`\n- `.env`\n\n`NODE_ENV`, `MODE` and all `SNOWPACK_*` environment variables will be bundled\nwith the built app (all on `main` and a subset for `renderer`). See\nSnowpack's [Environment Variables](https://www.snowpack.dev/reference/environment-variables)\ndocumentation to learn more.\n\nAlso you can adjust the way `electron-snowpack` itself works via environment variables:\n\n- `ELECTRON_SNOWPACK_PORT` - the default Snowpack port\n\n### TypeScript\n\nFor a minimal setup to get TypeScript working for `renderer` have a root `tsconfig.json`:\n\n```json\n{\n  \"extends\": \"electron-snowpack/config/tsconfig.json\",\n  \"include\": [\"src\"]\n}\n```\n\n### Electron Builder\n\n[`electron-builder`](https://www.electron.build/) is a **separate** complete solution\nto package and build a ready for distribution Electron app for macOS, Windows and\nLinux with “auto-update” support out of the box.\n\n`electron-snowpack` provides a config starter that will _just work_ with the builder.\nUpdate your `electron-builder` setup in `package.json`:\n\n```json\n{\n  \"build\": {\n    \"extends\": \"electron-snowpack/config/electron-builder.js\"\n  }\n}\n```\n\n[package-version-badge]: https://badge.fury.io/js/electron-snowpack.svg\n[package-version]: https://www.npmjs.com/package/electron-snowpack\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarolis-sh%2Felectron-snowpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarolis-sh%2Felectron-snowpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarolis-sh%2Felectron-snowpack/lists"}