# RomM Frontend Architecture Comprehensive documentation of the RomM frontend: a Vue 3 single-page application powering the retro gaming platform UI. > **Scope: this document describes the v1 UI** (`src/views/`, `src/components/`, `src/console/`, `src/layouts/`), which is frozen pending deletion. The v2 rewrite under `src/v2/` shares the Vue/Vite/Pinia/router/i18n/Socket.IO foundation described here, but has its own design system: **no Vuetify, and no Tailwind utility classes** (the Tailwind stylesheet is still loaded app-wide, see CSS Stack below). It styles with generated tokens plus per-component scoped CSS. For v2, read the `frontend-v2-components`, `frontend-v2-theming`, `frontend-v2-input`, and `frontend-v2-patterns` skills in `.claude/skills/`. --- ## Table of Contents 1. [Overview](#1-overview) 2. [High-Level Architecture](#2-high-level-architecture) 3. [Directory Structure](#3-directory-structure) 4. [Application Lifecycle](#4-application-lifecycle) 5. [Routing & Navigation](#5-routing--navigation) 6. [State Management (Pinia Stores)](#6-state-management-pinia-stores) 7. [API & Data Layer](#7-api--data-layer) 8. [Component Architecture](#8-component-architecture) 9. [Views & Pages](#9-views--pages) 10. [Console Mode](#10-console-mode) 11. [Emulation Integration](#11-emulation-integration) 12. [Theming & Styling](#12-theming--styling) 13. [Internationalization (i18n)](#13-internationalization-i18n) 14. [Real-Time Communication](#14-real-time-communication) 15. [Caching Strategy](#15-caching-strategy) 16. [Utilities & Composables](#16-utilities--composables) 17. [Build & Tooling](#17-build--tooling) 18. [Type System](#18-type-system) --- ## 1. Overview | Property | Value | | -------------------- | -------------------------------------------- | | **Framework** | Vue 3.5 (Composition API, `