{"id":21148020,"url":"https://github.com/matthiaaas/clean-electron-react","last_synced_at":"2026-03-08T11:32:12.061Z","repository":{"id":37777374,"uuid":"307438596","full_name":"matthiaaas/clean-electron-react","owner":"matthiaaas","description":"Clean Electron Boilerplate including React, Typescript, Babel and Webpack","archived":false,"fork":false,"pushed_at":"2023-12-15T20:31:04.000Z","size":923,"stargazers_count":5,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-29T19:22:32.591Z","etag":null,"topics":["boilerplate","electron","electron-react","kit","react","starter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matthiaaas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-26T16:38:15.000Z","updated_at":"2023-06-09T22:02:02.000Z","dependencies_parsed_at":"2023-02-08T02:48:15.316Z","dependency_job_id":null,"html_url":"https://github.com/matthiaaas/clean-electron-react","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/matthiaaas%2Fclean-electron-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthiaaas%2Fclean-electron-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthiaaas%2Fclean-electron-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthiaaas%2Fclean-electron-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthiaaas","download_url":"https://codeload.github.com/matthiaaas/clean-electron-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225508762,"owners_count":17483515,"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":["boilerplate","electron","electron-react","kit","react","starter"],"created_at":"2024-11-20T09:20:26.905Z","updated_at":"2026-03-08T11:32:12.055Z","avatar_url":"https://github.com/matthiaaas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [clean-electron-react](https://github.com/matthiaaas/clean-electron-react)\n\n`clean-electron-react` is an Electron boilerplate including a fresh setup of [React](https://github.com/facebook/react), [Typescript](https://github.com/microsoft/typescript) [Prettier](https://github.com/prettier/prettier) and [Webpack](https://github.com/webpack/webpack) in order to provide the cleanest possible setup experience.\n\n###### Notice: This boilerplate is still in development\n\n## Getting Started\n\nClone the repository or [Use this template](https://github.com/matthiaaas/clean-electron-react/generate).\n\n```\ngit clone https://github.com/matthiaaas/clean-electron-react.git YOUR-PROJECT-NAME\ncd YOUR-PROJECT-NAME\nyarn\n```\n\n## Development\n\nStart the `webpack-dev-server` and listen for file changes (supports hot reloading). Then start Electron.\n\n```\nyarn build\nyarn watch\nyarn dev\n```\n\nYou can now start building your app:\n\n### app/[app.ts](https://github.com/matthiaaas/clean-electron-react/tree/main/app/app.ts) (electron entry)\n\n```ts\nconst createWindow = () =\u003e {\n  const win = new BrowserWindow({\n    width: 820,\n    height: 532,\n    frame: false,\n    titleBarStyle: \"hiddenInset\",\n    webPreferences: {\n      nodeIntegration: true,\n      contextIsolation: false\n    }\n  })\n\n  win.show()\n}\n\napp.whenReady().then(createWindow)\n```\n\n### app/components/[App.tsx](https://github.com/matthiaaas/clean-electron-react/tree/main/app/components/App.tsx)\n\n```tsx\nexport default function App() {\n  return null\n}\n```\n\n## Packaging\n\nPackage your app using `electron-builder`. Output can be found in `/dist`\n\n```\nyarn package\n```\n\n## Why another boilerplate?\n\nOther Electron React boilerplates come with a ton of additional dependencies and a predefined file structure.\u003c/br\u003e\nThis template is preconfigured from scratch and only includes essential parts and scripts so you can start developing right away.\n\n### Minimalistic file structure\n\n```c\n├── app\n    ├── components\n    │   └── App.tsx // rendered component\n    ├── app.ts // electron entry file\n    ├── index.html\n    ├── root.tsx // react renderer\n    └── manifest.json\n├── build // webpack build output\n├── dist // electron-builder output\n├── package.json\n├── tsconfig.json\n└── webpack.config.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthiaaas%2Fclean-electron-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthiaaas%2Fclean-electron-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthiaaas%2Fclean-electron-react/lists"}