Build a fully production-ready, free-to-use music distribution platform called "BeatDrop Express" with ZERO placeholders and complete, reliable systems. The deliverable must be a real deployable product (not a mockup) with tested end-to-end flows.Core Requirements (summary):1. Free global music distribution to major platforms (Spotify, Apple Music, YouTube Music, Amazon Music, Deezer, Tidal, JioSaavn, Gaana, etc.).2. Multi-artist credits (main, featured, composer, lyricist, producer, instrumentalists) — all fields empty by default (no example data).3. Secure authentication — Gmail-only sign-up, server-side+client-side strong password enforcement, no placeholder names (no "John Doe"), "See How It Works" available without login.4. Distribution readiness checks — metadata, linked artist accounts, artwork, audio conversion, LRC validations; block publish on critical errors.5. Payment & royalty basics — two UPI options (ID + QR), direct bank withdrawals, Stripe/PayPal for donations; royalty fields remain empty unless system-generated.6. Mobile-first responsive UI, clear progress UX, logging, async job queue and retry logic for all external API calls, and an admin/dev "Run System Check" tool.--- ADDITION: Robust Artwork Generator & Handling Requirements ---A. Purpose & UX:- Provide a built-in AI Artwork Generator that reliably creates publish-ready cover art while also allowing manual/external artwork upload.- The artwork tool must be accessible at upload stage, optional to use, and always provide: 1. Preview (100%, zoom) before final accept. 2. Automatic validation and platform-ready export. 3. Retry/regenerate and manual edit/crop tools. 4. Option to use user-provided prompt or auto-suggested prompt (based on song metadata, mood, genre). 5. Style presets (e.g., "Minimal Poster", "Vintage Vinyl", "Photo-real Portrait", "Abstract Neon", "Hand-painted", "Collage") and aspect/variant sliders.B. Generation & Technical Specs:- Minimum output resolution: 3000 x 3000 px (square) in sRGB color profile; exportable also as WebP/PNG/JPEG.- Support aspect ratios required by platforms; generator must produce highest-res master, then auto-resize + optimize per platform spec.- Remove EXIF metadata by default (privacy and compliance).- No watermarks on generated art.- Allow user to set: prompt text, negative prompt, seed (optional), guidance scale, and number of variations.- Provide a thumbnail preview (512x512) and full preview (3000x3000) with download button.C. Reliability, Fallbacks & Flow:- Use an AI image generation service (configurable — e.g., Stable Diffusion XL, cloud provider image API, or a hosted commercial image API). The system must: 1. Retry failed generation up to 3 times with exponential backoff. 2. If generation fails after retries, automatically offer a high-quality fallback: - Prompt user to upload external artwork (drag & drop) OR - Offer a “quick templated visual” generated server-side (text + visualizer) as temporary placeholder — but only if user explicitly accepts it for publishing. 3. All generated images must be scanned via an image-moderation API (NSFW, copyrighted logos, trademark detection). If flagged, block publish and ask user to confirm/replace. 4. Store generation logs (prompt, seed, model, timestamps) in DB for audit and reproducibility; show "Regenerate with same seed" option.D. Validation & Export:- Before distribution readiness success, validate artwork: - Confirm min-resolution (>=3000x3000 or platform-specified) - Confirm correct aspect ratio if platform demands - Confirm file format & size limits (auto-compress if needed, while preserving quality)- Auto-generate platform-ready variants (cropped/optimized) and a manifest mapping which variant goes to which platform.- Provide an "Artwork Acceptance" checkbox where user confirms they own rights or have license for uploaded/generated artwork.E. Legal & Rights:- If user uses AI generation, include a mandatory checkbox and short notice: "I confirm I have the rights to distribute this artwork. I accept BeatDrop Express's content policy and copyright terms."- Save the user's acceptance (timestamp & userID) in DB for legal trace.F. API & Implementation Notes (developer-ready):- Implement artwork generation as an asynchronous job: - API: POST /api/artwork/generate { prompt, negativePrompt, stylePreset, seed, size } - Worker: fetch generation from configured image service, apply moderation, store master on CDN (S3/MinIO with signed URLs), generate derived sizes, update job status.- Job states: QUEUED → RUNNING → SUCCEEDED → MODERATION_BLOCKED → FAILED.- Implement retry policy and alerting on repeated failures.- CDN: store master image with versioning, generate signed URLs for preview and final download.- Implement server-side image processing (sharp or libvips) for resizing/compression and format conversion while preserving sRGB.- Log and expose generation metrics (success rate, avg latency, failure reasons) for monitoring.G. UI & Controls (must be intuitive for non-technical artists):- Artwork Panel in the upload flow: - Buttons: [Generate Artwork] [Upload Artwork] [Use Template Visualizer] - When Generate: show prompt input + style presets + "Auto-suggest" button (fills prompt from title/genre/mood). - After generate: show 3 variations with Select / Regenerate / Edit crop. - If user selects: they can fine-tune crop, add text overlay (title + artist auto-placement), preview final cover in multiple device frames.- Provide clear error messages and “Fix Now” quick links inside the Distribution Readiness Report.H. Monitoring, Security & Privacy:- Ensure all generation and storage processes are GDPR/Privacy mindful: remove EXIF by default, store minimal personal metadata, and allow artists to request deletion of generated assets.- Moderation: integrate an image-moderation API (e.g., Cloud provider moderation or custom model); flag and block copyrighted logos or illegal content.- Rate-limit user generation per account (configurable) to prevent abuse; show quota UI.--- Final Integration Requirements (how this fits into overall product) ---- Artwork generation must be fully integrated into the Distribution Readiness Check: a generation job must reach SUCCEEDED and pass moderation and validation before the system marks artwork OK for publishing.- If generator fails and user refuses fallback/upload, the publish should be blocked with precise next-step instructions.- All artwork-related UI/flows must be mobile-first and must not introduce blocking UX (show progress indicators and allow users to continue other steps while generation completes).- No placeholder artwork or demo images should appear anywhere in the product by default.--- Developer Hints (recommended stack) ---- Worker queue: BullMQ / Redis for async jobs.- Image processing: sharp or libvips.- Storage & CDN: AWS S3 + CloudFront (or MinIO + CDN).- Optional image generation services: Stable Diffusion XL via Replicate/Anyscale, OpenAI Image API, or self-hosted SDXL; wrap provider as configurable adapter.- Moderation: AWS Rekognition / Azure Content Moderator / Google Vision or provider moderation endpoints.- Use signed URLs for serving images; remove EXIF before final storage.End of prompt: build all of the above, add clear logs, retry rules, user-facing error handling, and admin tools to inspect and re-run generation jobs. Ensure artwork generator is robust, production-grade, and fully audited.
Loading...
I'll help you connect a database to the BeatDrop Express platform. Let me add database integration using Supabase, which is perfect for this production-ready application.
I've successfully connected a production-ready database to BeatDrop Express using Supabase. Here's what I've implemented:
/api/auth/login
, /api/auth/register
)Add environment variables:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key
The platform now has a fully functional database backend that can handle real users, music releases, artwork generation jobs, and system monitoring - all ready for production use!
To configure the generation, complete these steps: