Files
romm/frontend/package.json
zurdi 9f7435c9a6 feat(soundtrack): server-side metadata, cover persistence, streaming fix
Backend
- Extract audio tags + duration via mutagen at upload/scan time, store as
  rom_files.audio_meta JSON. Frontend reads everything from the DB instead of
  downloading every blob to parse ID3 client-side.
- Persist embedded cover art under resources/roms/{platform_id}/{rom_id}/
  soundtracks/{file_id}.{ext} on upload/scan; store relative path in
  audio_meta.cover_path. Cleaned up on delete. Removed the on-the-fly
  /soundtracks/{file_id}/cover endpoint (DB is source of truth).
- New GET /roms/{id}/soundtracks/metadata returns the compact per-ROM
  metadata payload.
- Fix /files/content/{name}: serve audio inline with proper MIME
  (audio/flac, audio/ogg, audio/mp4, ...) and let Starlette handle Range
  natively in DEV_MODE. Browsers can now seek and progressively stream;
  scrubbing returns 206 Partial Content instead of pulling the whole file.
- Squashed the audio_meta column into the existing 0080 migration.

Frontend
- Drop jsmediatags entirely.
- New persistent SoundtrackMiniPlayer + reusable VolumeControl components.
- Pinia store: loadPlaylistForRom, activePlaylistRomId, throttled
  reportCurrentTime (200 ms), isBuffering driven by waiting/canplay events.
- SoundtrackPlayer reads metadata via one JSON request (AbortController on
  unmount/track change), shows per-track + total durations, lazy-loads
  thumbnails, resolves covers via the static resources path.
- Wrap most scoped CSS into Vuetify utility classes.

Tests
- 12 backend tests covering upload extraction + cover persist, metadata
  endpoint shape, delete cleanup, range support.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 01:20:17 +00:00

81 lines
2.3 KiB
JSON

{
"name": "romm",
"private": true,
"version": "0.0.1",
"author": "Zurdi <https://github.com/zurdi15>",
"description": "A beautiful, powerful, self-hosted ROM manager",
"license": "AGPL-3.0-only",
"homepage": "https://github.com/rommapp/romm",
"repository": {
"type": "git",
"url": "git+github.com/rommapp/romm.git"
},
"bugs": {
"url": "https://github.com/rommapp/romm/issues"
},
"keywords": [
"rom",
"manager",
"emulation"
],
"type": "module",
"scripts": {
"dev": "vite --host",
"build": "vite build",
"preview": "vite preview",
"typecheck": "vue-tsc --noEmit",
"generate": "openapi --input http://127.0.0.1:3000/openapi.json --output ./src/__generated__ --client axios --useOptions --useUnionTypes --exportServices false --exportSchemas false --exportCore false",
"lint": "eslint ./src --ext .vue,.js,.ts --quiet"
},
"dependencies": {
"@mdi/font": "7.4.47",
"@vueuse/core": "^13.7.0",
"axios": "^1.15.0",
"cronstrue": "^2.57.0",
"date-fns": "^4.1.0",
"js-cookie": "^3.0.5",
"lodash": "^4.18.1",
"md-editor-v3": "^5.8.4",
"mitt": "^3.0.1",
"pinia": "^3.0.1",
"qrcode": "^1.5.4",
"rom-patcher": "github:marcrobledo/RomPatcher.js#v3.2.1",
"semver": "^7.6.2",
"socket.io-client": "^4.7.5",
"tailwindcss": "^4.0.0",
"vanilla-tilt": "^1.8.1",
"vue": "^3.4.27",
"vue-i18n": "^11.1.10",
"vue-router": "^4.3.2",
"vue3-pdf-app": "^1.0.3",
"vuetify": "^3.9.2"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@tailwindcss/vite": "^4.1.12",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.17.16",
"@types/node": "^22.13.14",
"@types/qrcode": "^1.5.5",
"@types/semver": "^7.7.0",
"@vitejs/plugin-vue": "^5.2.1",
"@vue/tsconfig": "^0.7.0",
"eslint": "^10.0.3",
"eslint-plugin-vue": "^10.8.0",
"eslint-plugin-vuejs-accessibility": "^2.5.0",
"globals": "^16.0.0",
"openapi-typescript-codegen": "^0.29.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.56.1",
"vite": "^6.4.2",
"vite-plugin-mkcert": "^1.17.8",
"vite-plugin-pwa": "^0.21.1",
"vite-plugin-static-copy": "^3.2.0",
"vite-plugin-vuetify": "^2.0.4",
"vue-tsc": "^2.2.8"
},
"engines": {
"node": "24"
}
}