尚未检测到更新。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.