Getting Started
Prerequisites
Section titled “Prerequisites”- Python environment capable of running Copier 9 (
uvx copieralso works). - Node.js 24 and pnpm 11.
- Windows, Linux or macOS for development. Native installers should be built and checked on their target operating systems.
Create an application
Section titled “Create an application”copier copy --trust https://github.com/RuchirChawdhry/copier-electron-svelte.git desktop-democd desktop-demopnpm devCopier prompts for the application name, package slug, GitHub owner, author, description and application ID. It also asks whether to initialize Git and install dependencies. The reverse-DNS application ID is important on Windows: Electron uses it for the taskbar identity and Jump Lists.
For a noninteractive render without running setup tasks:
copier copy --defaults --skip-tasks https://github.com/RuchirChawdhry/copier-electron-svelte.git desktop-democd desktop-demopnpm installDaily workflow
Section titled “Daily workflow”| Command | Purpose |
|---|---|
pnpm dev |
Launch Electron and Vite in development mode |
pnpm format |
Format project source |
pnpm lint |
Run Oxlint and ESLint |
pnpm typecheck |
Check Electron TypeScript and Svelte |
pnpm test |
Run Vitest unit tests |
task build |
Typecheck, bundle, package and verify a production app |
pnpm test:e2e |
Run Playwright UI tests (graphical session required) |
If you skipped trusted tasks, run pnpm exec lefthook install after initializing Git to enable the pre-commit hook.
Where to work
Section titled “Where to work”Start with src/renderer/src/App.svelte for the workspace UI. Add reusable UI components under src/renderer/src/lib/components/, app commands in src/shared/commands.ts, and native operations behind src/preload/index.ts. Keep raw Node and Electron APIs out of the renderer.
Next: Architecture or Workspace and Tabs.