I will explore the files in the project to understand its current structure.
I will read package.json to check what libraries and icon packages are installed.
I will install lucide-react to get icons for our PC Local Music Player app.
I will check index.html to inspect the page title, fonts, and metadata.
I will update index.html with a descriptive title and Google Fonts (Plus Jakarta Sans and JetBrains Mono) for a clean desktop music player aesthetic.
I will check src/index.css to inspect current CSS configuration.
I will update src/index.css with custom scrollbars, typography defaults, and styling for sliders and audio visualizers.
I will create src/types/music.ts containing TypeScript definitions for tracks, playlists, artists, albums, equalizer settings, visualizer modes, and library views.
I will create src/utils/id3Parser.ts to parse ID3 tags (title, artist, album, genre, year, embedded album cover art, and duration) from local PC audio files (.mp3, .wav, .flac, etc.) with intelligent fallback parsing.
I will create src/utils/demoTracks.ts with 8 high-quality demo audio tracks with album art, so the app has a great starting library and users can immediately test audio playback, visualizer, equalizer, and playlist features.
I will create src/services/db.ts using IndexedDB to store the local music library, imported audio files, custom playlists, favorites, play statistics, and user equalizer settings.
I will create src/services/audioEngine.ts to manage the Web Audio API graph including the 5-band equalizer (BiquadFilterNodes), stereo balance panner, and frequency/waveform analyzer for real-time music visualizers.
I will create src/components/Sidebar.tsx for desktop library navigation, showing all library views, custom playlists, and instant file import options.
I will clean up the unused import in src/components/Sidebar.tsx.
I will create src/components/Header.tsx with a search bar, current view indicator, import triggers, visualizer launcher, and keyboard shortcuts guide.
I will remove the unused Sparkles import in src/components/Header.tsx.
I will create src/components/PlayerBar.tsx for bottom audio playback controls, seeking, volume and mute, playback speed, repeat and shuffle modes, and album art display.
I will create src/components/TrackTable.tsx for a desktop-style track table with sorting, quick play on double-click, favorite toggles, tag editing, playlist insertion, and track deletion.
I will remove the unused Sparkles import in src/components/TrackTable.tsx.
I will create src/components/AlbumGrid.tsx to display albums with cover art, release year, artist name, and track counter.
I will create src/components/ArtistGrid.tsx to group library tracks by artist, displaying artist avatars, track counts, and quick play options.
I will create src/components/StatsView.tsx to provide analytics on the PC music library: total listening duration, top artists, genre breakdown, and favorites stats.
I will remove unused imports in src/components/StatsView.tsx.
I will create src/components/PlaylistModal.tsx to allow users to create or edit custom playlists for their music library.
I will create src/components/AddToPlaylistModal.tsx to let users quickly add any track to an existing or new custom playlist.
I will create src/components/TagEditorModal.tsx to let users edit ID3 track metadata (Title, Artist, Album, Genre, Year, and Lyrics) of their local audio files.
I will create src/components/EqualizerModal.tsx for graphic equalizer controls, frequency band adjustments, balance panning, and preset selection.
I will create src/components/VisualizerModal.tsx for an interactive audio visualizer with 3 modes ("Волны" neon frequency spectrum, "Винил" spinning record with audio-reactive rings, and "Осциллограф" oscilloscope wave).
I will create src/components/MiniPlayer.tsx for a floating, compact Winamp-like desktop widget mode that users can switch to while working on their PC.
I will create src/components/DropZoneOverlay.tsx to display a full-screen drag-and-drop indicator when users drag .mp3, .wav, .flac, or .ogg files from their PC into the application window.
I will create src/components/ShortcutsModal.tsx to display the PC keyboard shortcuts reference.
I will replace src/App.tsx with the full PC Local Music Player application, integrating library management, ID3 metadata parsing, Web Audio API equalizer & visualizer, keyboard shortcuts, drag-and-drop file import, playlists, and persistent storage in IndexedDB.
I will remove the unused imports from src/App.tsx.
I will now run build_project to verify that TypeScript compilation, bundle generation, and assets build without any errors.
I will update src/utils/id3Parser.ts to use a lightweight, zero-dependency browser-native ArrayBuffer and DataView parser for ID3v1 and ID3v2 tags (including embedded album cover art, title, artist, album, genre, and year), avoiding any Vite bundler compatibility issues.
I will now run build_project to confirm the project builds without errors.
Я создал полноценное настольное веб-приложение AuraPlayer — Локальный музыкальный плеер для ПК для создания собственной библиотеки песен и воспроизведения аудиофайлов с компьютера.
Ключевые возможности и функции:
-
Загрузка и управление музыкой с компьютера:
- Добавить MP3 / Файлы: кнопка для выбора отдельных файлов (
.mp3, .wav, .flac, .ogg, .m4a).
- Добавить папку: возможность импортировать целую папку с аудиофайлами или альбомом за один раз.
- Drag & Drop: перетаскивание аудиофайлов из Проводника Windows, Finder или файлового менеджера Linux прямо в окно плеера.
- Автоматическое чтение ID3-тегов: встроенный парсер распознает название трека, исполнителя, альбом, жанр, год выпуска и обложку альбома (Cover Art), встроенную в аудиофайл (а при её отсутствии генерирует уникальную градиентную обложку).
- Сохранение библиотеки в IndexedDB: импортированные треки, аудиофайлы, плейлисты, избранное, счётчик прослушиваний и настройки эквалайзера сохраняются в браузере на ПК и не пропадают после перезагрузки страницы.
- Тестовая библиотека: при первом запуске автоматически загружается стартовый набор из 6 качественных треков с обложками и текстами песен для проверки возможностей плеера.
-
Профессиональное воспроизведение и звук (Web Audio API):
- 5-полосный графический эквалайзер (60 Гц, 250 Гц, 1 кГц, 4 кГц, 12 кГц) с пресетами («Нормальный», «Бас +», «Вокал / Акустика», «Электронная», «Рок / Металл», «Клубный кач», «Своя настройка»).
- Стерео-баланс: регулировка панорамы левого и правого канала.
- Контроль скорости воспроизведения: 0.75x, 1x, 1.25x, 1.5x.
- Режимы повтора и случайного порядка (Shuffle / Repeat): повтор плейлиста, повтор одного трека, случайное воспроизведение.
-
Аудиовизуализатор в реальном времени:
- Винил: вращающаяся пластинка с обложкой альбома в центре и пульсирующими неоновыми кольцами частот.
- Волны: частотные столбцы спектроанализатора с зеркальным отражением.
- Осциллограф: волновая линия звуковой волны в реальном времени.
-
Управление библиотекой:
- Навигация по разделам: Все треки, Исполнители, Альбомы, Избранное, Плейлисты, Статистика.
- Создание и редактирование собственных плейлистов.
Files built: index.html, src/index.css, src/types/music.ts, src/utils/id3Parser.ts, src/utils/demoTracks.ts, src/services/db.ts, src/services/audioEngine.ts, src/components/Sidebar.tsx, src/components/Header.tsx, src/components/PlayerBar.tsx, src/components/TrackTable.tsx, src/components/AlbumGrid.tsx, src/components/ArtistGrid.tsx, src/components/StatsView.tsx, src/components/PlaylistModal.tsx, src/components/AddToPlaylistModal.tsx, src/components/TagEditorModal.tsx, src/components/EqualizerModal.tsx, src/components/VisualizerModal.tsx, src/components/MiniPlayer.tsx, src/components/DropZoneOverlay.tsx, src/components/ShortcutsModal.tsx, src/App.tsx