Repository structure
Monorepo layout
2_0/
├── apps/
│ ├── web/ # SvelteKit CMS cloud editor
│ └── desktop/ # Wails native app
├── functions/
│ └── api/ # Bunny Edge Function (TypeScript + esbuild)
├── packages/
│ └── ui/ # Svelte 5 components + Astro scaffold
├── .github/workflows/
└── pnpm-workspace.yamlApps & packages
- apps/web (
@magiccms/web) — SvelteKit 2 + Svelte 5 + Tailwind 4. Vite dev on:5275. Build output inapps/web/build/. - apps/desktop (
@magiccms/desktop) — Wails v2.11 + Go binding. Vite dev on:5274. Build viawails build. - functions/api (
@magiccms/functions-api) — TypeScript → esbuild → Bunny Edge Scripting. Path-filtered deploy onfunctions/api/**changes. - packages/ui (
@magiccms/ui) — Svelte 5 components plus the entire Astro scaffold as?rawimports. Source of truth for both the editor and the generated sites.