尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A premium, personal music streaming app — like Spotify, but for your music library. Upload your own audio files, organize playlists, and stream from anywhere with a polished, mobile-first interface.
Built with Next.js 16, Tailwind CSS, Supabase, and a sticky bottom audio player that handles both your uploaded MP3s and embedded YouTube tracks.
| Layer | Choice |
|---|---|
| Framework | Next.js 16 (App Router, Turbopack) |
| Language | TypeScript |
| Styling | Tailwind CSS v4 |
| Backend / DB / Auth | Supabase (Postgres + Storage + Auth) |
| State | Zustand (audio player) |
| Icons | Lucide React |
| Hosting | Vercel |
git clone https://github.com/your-username/echonest.git
cd echonest
npm install
supabase-schema.sql and run it
supabase-migration-youtube-embed.sqlCopy .env.local.example → .env.local and fill in:
NEXT_PUBLIC_SUPABASE_URL=https://YOUR-PROJECT.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
# Optional — only needed for full YouTube playlist track-list import
YOUTUBE_API_KEY=your-google-cloud-youtube-data-api-key
Find the URL and anon key in Supabase Dashboard → Settings → API.
npm run dev
Open http://localhost:3000, sign up, and start uploading.
| Route | What it does |
|---|---|
/ | Landing page — sign up / log in CTAs |
/login /signup | Email/password authentication |
/dashboard | Greeting, recently played, your playlists, your albums |
/library | Tabbed view: Songs / Albums / Artists / Playlists |
/search | Instant search across everything |
/upload | Drag-and-drop audio upload with metadata editing |
/playlist/[id] | Playlist detail with play/shuffle |
/playlist/new | Create a new playlist |
/album/[id] | Album detail with tracklist |
/artist/[id] | Artist profile + albums + songs |
/liked | Liked songs (auto-playlist) |
/recent | Last 50 tracks you played |
/import | Add YouTube videos & playlists (embed-only, no downloads) |
/settings | Profile, sign out |
A sticky bottom player handles both kinds of tracks transparently:
<audio> element streaming from Supabase StorageSame controls (play/pause/seek/skip/volume/shuffle/repeat) work for both. A small "YT" badge appears on the cover art when a YouTube track is playing.
/uploadArtist - Song.mp3 pattern)audio/{user_id}/...EchoNest does not download or rehost YouTube content — that violates YouTube's ToS and copyright. Instead:
youtube.com/watch?v=...) → adds one track that streams via YouTube's official embedyoutube.com/playlist?list=...) → adds one entry that plays the whole playlist sequentially via embedTitle and thumbnail are pulled from YouTube's free oEmbed endpoint — no API key needed.
For a full track list of a playlist (each video as its own library entry), you can optionally add a YouTube Data API v3 key — that powers /api/youtube-import to fetch every video's metadata and match it against your uploaded library.
| Table | Purpose |
|---|---|
profiles | User profile (extends auth.users) |
artists | Artists (auto-created from uploads) |
albums | Albums (auto-created from uploads) |
songs | Tracks — both uploaded files (source='upload') and YouTube embeds (source='youtube_embed') |
playlists | User-created playlists |
playlist_songs | Junction table for playlist contents |
likes | Liked songs |
recently_played | Playback history |
youtube_imports | Records of imported playlists |
youtube_import_items | Individual videos within an import, matched against library |
All tables use Row-Level Security so users can only read/write their own data. Storage buckets (audio, covers) are similarly scoped per-user.
echonest/
├─ src/
│ ├─ app/
│ │ ├─ (app)/ # Authenticated pages with shared layout
│ │ │ ├─ dashboard/
│ │ │ ├─ library/
│ │ │ ├─ search/
│ │ │ ├─ upload/
│ │ │ ├─ playlist/[id]/
│ │ │ ├─ album/[id]/
│ │ │ ├─ artist/[id]/
│ │ │ ├─ liked/
│ │ │ ├─ recent/
│ │ │ ├─ import/
│ │ │ └─ settings/
│ │ ├─ api/
│ │ │ ├─ youtube-add/ # Single video / playlist embed
│ │ │ └─ youtube-import/ # Bulk playlist track-list (needs API key)
│ │ ├─ login/ signup/ page.tsx (landing)
│ │ ├─ layout.tsx
│ │ └─ globals.css
│ ├─ components/
│ │ ├─ layout/ # Sidebar, BottomNav, AudioPlayer, AppLayout
│ │ └─ ui/ # Button, Input, MediaCard, SongRow, Logo, Skeleton, EmptyState
│ ├─ lib/
│ │ ├─ supabase/ # Browser client, server client, middleware
│ │ └─ utils.ts
│ ├─ store/
│ │ └─ player.ts # Zustand audio player state
│ ├─ types/
│ │ └─ index.ts
│ └─ middleware.ts
├─ supabase-schema.sql
├─ supabase-migration-youtube-embed.sql
├─ next.config.ts
└─ package.json
.env.local:
NEXT_PUBLIC_SUPABASE_URLNEXT_PUBLIC_SUPABASE_ANON_KEYYOUTUBE_API_KEY (optional)After the first deploy, in Supabase → Authentication → URL Configuration, add your Vercel URL (e.g. https://echonest.vercel.app) to Site URL and Redirect URLs, otherwise sign-in won't redirect correctly on the live site.
For clarity (and to keep things legal):
If you want to listen to a YouTube track inside EchoNest, the embed plays it from YouTube's servers (with whatever ads YouTube serves). The only audio files actually stored in your library are ones you upload yourself.
MIT — do whatever you want with it for personal use. Don't redistribute as a paid service without checking with me first.
Built with ☕ and a love for music libraries that feel like yours.