feat: Electrobun Svelte+WGPU prototype (Dawn GPU confirmed on Linux)

- Svelte 5 frontend with Catppuccin Mocha theme, 2 project cards
- Electrobun v1.16.0 with bundleWGPU: true (Dawn on Linux x64)
- WebKitGTK webview + WGPU surface coexistence confirmed
- CPU: 6.5% idle (CSS animation + WebKitGTK overhead)
- Port 9760 for dev server (project convention)
This commit is contained in:
Hibryda 2026-03-20 01:25:41 +01:00
parent 1f20fc460e
commit cfc135ffaf
29 changed files with 1106 additions and 1020 deletions

View file

@ -1,18 +1,24 @@
{
"name": "electrobun-wgpu",
"name": "electrobun-svelte",
"version": "1.0.0",
"type": "module",
"description": "A minimal WebGPU shader demo",
"description": "Electrobun app with Svelte and Vite HMR",
"scripts": {
"start": "electrobun dev",
"start": "vite build && electrobun dev",
"dev": "electrobun dev --watch",
"build:canary": "electrobun build --env=canary"
"dev:hmr": "concurrently \"bun run hmr\" \"bun run start\"",
"hmr": "vite --port 9760",
"build:canary": "vite build && electrobun build --env=canary"
},
"dependencies": {
"electrobun": "latest"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^5.0.1",
"@types/bun": "latest",
"typescript": "^5.7.2"
"concurrently": "^9.1.0",
"svelte": "^5.14.1",
"typescript": "^5.7.2",
"vite": "^6.0.3"
}
}