How lukaleskovsek/not-your-boring-slides works
Main Components
A. Frontend Layer:
• Divide into three main sections:
1. Core Presentation Components
• PresentationProvider (state management)
• PresentationViewer
• PresentationEditor
• Slide Components
2. UI Components Library
• As a collection of reusable components
3. Feature Components
• Charts (PieChart, ProgressBar)
• Effects (FlyingEmoji)
B. State Management & Hooks Layer:
• This below the Frontend Layer
• Include:
• Zustand Store (presentationStore)
• Custom Hooks
• useKeyboardNavigation
• usePresentationContext
• useSlideEffect
C. Backend Layer:
• At the bottom
• Include:
1. API Routes
2. Controllers
3. Repositories
4. Middleware Components
Component Relationships
• Frontend → Backend API calls
• Component hierarchy in the frontend
• Data flow through the application
• Middleware pipeline in the backend
Specific Implementation Details
┌─────────────────────────── Frontend Layer ───────────────────────────┐
• ┌─ Core Presentation ─┐ ┌─── UI Library ───┐ ┌─── Features ────┐ │
• PresentationViewer│ │ - Button │ │ - PieChart │ │
• PresentationEditor│ │ - Dialog │ │ - ProgressBar │ │
• Slide Components │ │ - Form Controls │ │ - FlyingEmoji │ │
• ┘ └────────────────┘ │
• State Management & Hooks Layer ─────────────────┤
• ┌─── Zustand Store ──┐ ┌─────── Hooks ──────┐ │
• PresentationStore │ │ useKeyboardNav │ │
• Slides │ │ usePresentContext │ │
• Settings │ │ useSlideEffect │ │
• ┘ └──────────────────────┘ │
• Backend Layer ────────────────────────────┤
• ┌─── API Routes ────┐ ┌─── Controllers ───┐ ┌── Middleware ──┐ │
• /presentation │ │ PresentationCtrl │ │ ErrorHandler │ │
• ┘ └─────────────────┘ │ RateLimiter │ │
• Logger │ │
• ┌── Repositories ──┐ └───────────────┘ │
• PresentationRepo │ │
• ┘ │
• ┘
Additional Elements
• Technology labels:
• React + TypeScript
• TailwindCSS
• Express
• Zustand
• Error handling paths
• Authentication/authorization boundaries