## Core Architecture
- Client-only Svelte app
- Fetch only; no external HTTP libraries
- Strict separation: API, stores, page modules, components
## Responsibilities
- API: HTTP + transforms, no state
- Stores: Pure state, no side effects
- Page Modules (+page.ts): Business logic + orchestration
- Common Component Controllers: Scoped UI behavior
- Components: UI + interactions only
## Data Flow
- Components → Page Modules → API → Stores
- No API in stores, no logic in components
- Trivial local state stays local (e.g., toggles)
## Page Modules
- Base: Error handling + cross-cutting logic
- Load: Data fetching + state prep
- Actions: Form handling + mutations
- Common Component: Reusable, UI-scoped, no data-fetching
## State & Auth
- Stores: State only, external data via page modules
- Tokens: HTTP-only cookies
- Roles: Derived from stores
css
html
javascript
svelte
typescript
First Time Repository
Svelte
Languages:
CSS: 2.5KB
HTML: 0.3KB
JavaScript: 1.7KB
Svelte: 239.5KB
TypeScript: 38.2KB
Created: 1/1/2025
Updated: 1/20/2025