{"id":20432156,"url":"https://github.com/lawondyss/svelte-electron-template","last_synced_at":"2026-04-12T07:37:53.782Z","repository":{"id":149550749,"uuid":"445789176","full_name":"Lawondyss/svelte-electron-template","owner":"Lawondyss","description":"Template for Electron app with Svelte","archived":false,"fork":false,"pushed_at":"2022-01-11T09:11:59.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-15T18:38:38.606Z","etag":null,"topics":["electron","electron-app","electronjs","rollup","svelte","sveltejs","template","template-project"],"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/Lawondyss.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":"2022-01-08T10:31:41.000Z","updated_at":"2022-01-10T07:56:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"40387921-7727-4b86-ae6c-712b3932f848","html_url":"https://github.com/Lawondyss/svelte-electron-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lawondyss%2Fsvelte-electron-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lawondyss%2Fsvelte-electron-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lawondyss%2Fsvelte-electron-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lawondyss%2Fsvelte-electron-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lawondyss","download_url":"https://codeload.github.com/Lawondyss/svelte-electron-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241975155,"owners_count":20051431,"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-app","electronjs","rollup","svelte","sveltejs","template","template-project"],"created_at":"2024-11-15T08:14:02.136Z","updated_at":"2026-04-12T07:37:53.746Z","avatar_url":"https://github.com/Lawondyss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-electron-template\n\nA [Electron](https://www.electronjs.org/) app template with [Svelte](https://svelte.dev/) framework.\n\n## How to get started\n\n#### 1) Copy template\n\n**degit**\n\n```\nnpx degit github:lawondyss/svelte-electron-template \u003cfolder-name\u003e\n```\nor\n\n**git**\n```\ngit clone https://github.com/Lawondyss/svelte-electron-template.git \u003cfolder-name\u003e\n```\n\n#### 2) Initialization\n\n```\ncd \u003cfolder-name\u003e\n```\n\n**npm**\n```\nnpm install\nnpm run dev\n```\nor \n\n**yarn**\n```\nyarn install\nyarn run dev\n```\n\n#### 3) Profit\n\n![profit](https://memegenerator.net/img/images/400x/5277024.jpg)\n\n## Architecture\n\n```\nbackend/\n - api.js      -\u003e create comunication between backend and frontend\n - handlers.js -\u003e backend handlers for calling channels from frontend\n - index.js    -\u003e Electron initialization\n - preload.js  -\u003e calling before starting frontend\n\nfrontend/\n - app.js      -\u003e Svelte initialization\n - App.svelte  -\u003e Svelte main component\n \n public/\n - global.css  -\u003e global CSS styles\n - index.html  -\u003e main HTML file of application\n```\n\n## Handlers\n\nThis methods run on backend (NodeJS) of application and returns results for frontend. Methods are calling from exposed function `window.api()` in frontend.\n\nFirst parameter of `window.api()` is name of handler. All others parameters are passed to handler.\n\nCalling a `window.api()` returns a promise and value for `then()` is result of handler.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawondyss%2Fsvelte-electron-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flawondyss%2Fsvelte-electron-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flawondyss%2Fsvelte-electron-template/lists"}