How jacobarrow/spejderbogen works
Main Application Architecture
a. Client Layer
• SvelteKit Frontend Components (src/lib/components)
• Client-side Routes (src/routes)
• Service Worker (for PWA functionality)
b. Server Layer
• API Routes (src/routes/api)
• Data Layer (src/lib/data)
Component Structure
a. Core Components Section
• Header & Navbar
• Footer
• Card Components
• Search Components
• Modal & Drawer
b. Feature Components Section
• Related components:
• Song-related (SongCard, PopularSongs)
• Management (AddToList, PaginatedList)
• UI Elements (Carousel, FAB, Like)
Routing Structure
• Main routes (/sange, /kategorier, /forfattere, /lister, /favoritter)
• Dynamic routes ([slug] based routes)
• API endpoints structure
Technical Implementation Details
• Build tools (Vite, PostCSS, Tailwind)
• TypeScript integration
• Service Worker implementation
Components
• Use rectangles for components
• Use rounded rectangles for pages
• Use hexagons for API endpoints
Relationships
• Double lines: Data flow
Labels
• Component names
• Route paths
• API endpoint URLs
• Function names for key utilities
Key Architectural Patterns to Highlight:
Utility function organization
Additional Notes:
• Notes about the build process
• PWA aspects (manifest.webmanifest and service-worker)
• Relationship between API routes and their corresponding implementation files
Level of Detail: