# Architecture ## Overview Showy is a media tracking application with three main layers: - **[[Backend]]** — Node.js + Express REST API with Sequelize ORM and MySQL - **[[Frontend]]** — React 18 + TypeScript SPA (Vite, TanStack Query, Zustand, shadcn/ui) - **[[Electron]]** — Desktop wrapper using Electron ## Key Flows - Library data is fetched on app load into a Zustand store (`useLibraryStore`) - Pages use TanStack Query hooks for server state (seasons, episodes, statistics) - Dashboard charts consume statistics endpoints and library store data - Maintenance/cleanup operations use dedicated backend endpoints ## Important Files - `backend/server.js` — Express app entry point - `react_frontend/src/App.tsx` — React app entry + router - `react_frontend/src/stores/useLibraryStore.ts` — Global library state - `electron/main.js` — Electron main process