How totuus1157/apple-music-hi-res-albums-database works
Project type and purpose
• This is a full-stack, server-rendered React application built on Next.js (using both App Router and legacy Pages Router in parallel).
• Its purpose is to let “Apple and Music Lovers” browse, store, and manage a database of hi-res lossless albums. It also handles authentication, sharing via Twitter, and Open Graph image generation.
File structure
• Top level: Configuration files (next.config.ts, tailwind.config.ts, tsconfig.json), package.json, public assets.
• src/app: Primary UI (App Router). Contains page layouts, datatable components, custom scripts (cookie consent, Google Ads), and App-Router API routes under src/app/api.
• api/apple-music: Proxy endpoints to Apple Music (album data, storefronts)
• api/og: Serverless route to generate Open Graph images
• src/pages/api: Legacy Next.js API routes for authentication (Auth0), database CRUD (add/get/delete albums), and Twitter sharing.
• src/app/datatable: Reusable UI & business logic for displaying and editing the album table.
• public: Static assets (images, robots.txt, ads.txt).
README
• Confirms the purpose (list of hi-res lossless albums)
• Mentions ongoing work (migrating datatable pages from Pages Router to App Router; allowing users to self-manage auth credentials).