{"id":30207805,"url":"https://github.com/oyuh/spotify-util","last_synced_at":"2026-04-12T00:46:47.194Z","repository":{"id":307935785,"uuid":"1031131306","full_name":"oyuh/spotify-util","owner":"oyuh","description":"🎵 Share your Spotify activity with beautiful, customizable displays. Perfect for streamers and music lovers. Live at jamlog.lol","archived":false,"fork":false,"pushed_at":"2025-08-12T19:04:09.000Z","size":892,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-12T21:15:50.790Z","etag":null,"topics":["api","customizable","dashboard","mongodb","music","nextjs","oauth","obs","privacy","real-time","spotify","streaming","typescript","web-app"],"latest_commit_sha":null,"homepage":"https://jamlog.lol","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oyuh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-03T04:39:12.000Z","updated_at":"2025-08-12T19:04:13.000Z","dependencies_parsed_at":"2025-08-03T06:25:30.281Z","dependency_job_id":"6251e665-17ec-4f9e-8d2d-2b67c348232d","html_url":"https://github.com/oyuh/spotify-util","commit_stats":null,"previous_names":["oyuh/spotify-util"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oyuh/spotify-util","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyuh%2Fspotify-util","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyuh%2Fspotify-util/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyuh%2Fspotify-util/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyuh%2Fspotify-util/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oyuh","download_url":"https://codeload.github.com/oyuh/spotify-util/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oyuh%2Fspotify-util/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270278305,"owners_count":24557170,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","customizable","dashboard","mongodb","music","nextjs","oauth","obs","privacy","real-time","spotify","streaming","typescript","web-app"],"created_at":"2025-08-13T17:00:31.159Z","updated_at":"2026-04-12T00:46:47.183Z","avatar_url":"https://github.com/oyuh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JamLog 🎵\n\n[![Next.js](https://img.shields.io/badge/Next.js-15-blue?logo=nextdotjs)](https://nextjs.org/)\n[![React](https://img.shields.io/badge/React-19-blue?logo=react)](https://react.dev/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5-blue?logo=typescript)](https://www.typescriptlang.org/)\n[![MongoDB](https://img.shields.io/badge/MongoDB-6.18-blue?logo=mongodb)](https://www.mongodb.com/)\n[![Tailwind CSS](https://img.shields.io/badge/Tailwind_CSS-4.0-blue?logo=tailwindcss)](https://tailwindcss.com/)\n[![NextAuth.js](https://img.shields.io/badge/NextAuth.js-4.24-blue?logo=auth0)](https://next-auth.js.org/)\n[![Vercel Analytics](https://img.shields.io/badge/Vercel_Analytics-1.5-blue?logo=vercel)](https://vercel.com/analytics)\n\n🌐 **Live at [jamlog.lol](https://jamlog.lol)**\n\n---\n\n## Overview\n\n**JamLog** is a modern, privacy-first web application for sharing your Spotify listening activity with beautiful, customizable displays. Built with Next.js, React, MongoDB, and NextAuth.js, it allows users to showcase their musical journey in real-time with granular privacy controls and seamless streaming integration.\n\n---\n\n## Table of Contents\n\n- [JamLog 🎵](#jamlog-)\n  - [Overview](#overview)\n  - [Table of Contents](#table-of-contents)\n  - [Features](#features)\n  - [Display Types](#display-types)\n    - [Now Playing](#now-playing)\n    - [Recent Tracks](#recent-tracks)\n    - [Custom Themes](#custom-themes)\n  - [Pages \\\u0026 Navigation](#pages--navigation)\n  - [API Routes](#api-routes)\n    - [Authentication](#authentication)\n    - [Spotify Integration](#spotify-integration)\n    - [User Management](#user-management)\n    - [Public Display](#public-display)\n  - [Database](#database)\n  - [Tech Stack](#tech-stack)\n  - [Development](#development)\n    - [Prerequisites](#prerequisites)\n    - [Setup](#setup)\n\n---\n\n## Features\n\n- Real-time Spotify listening activity display\n- Custom URL slugs for personalized sharing\n- Multiple pre-built themes and custom CSS support\n- Privacy controls with public/private display modes\n- OBS/streaming integration with transparent overlays\n- Upload custom background images\n- Mobile-responsive design with modern UI\n- RESTful API for custom integrations\n- Secure OAuth authentication with Spotify\n\n---\n\n## Display Types\n\n### Now Playing\n\nReal-time display of currently playing track with live progress updates, artist information, album artwork, and playback controls integration.\n\n**Key Features:**\n- Live progress bar with real-time updates every 5 seconds\n- High-quality album artwork from Spotify\n- Track metadata including artist, album, and duration\n- Play/pause status indicators\n\n### Recent Tracks\n\nConfigurable history display showing recently played tracks with detailed information and customizable list length (1-20 tracks).\n\n**Key Features:**\n- Chronological track history with timestamps\n- Rich metadata for each track\n- Configurable display count\n- Album artwork thumbnails\n\n### Custom Themes\n\nAdvanced theming system with multiple pre-built styles and full custom CSS injection support for power users.\n\n**Key Features:**\n- Multiple professionally designed themes\n- Custom background image uploads\n- Full CSS customization capabilities\n- Streaming-optimized transparent overlays\n\n---\n\n## Pages \u0026 Navigation\n\n- `/`\n  **Home page**: Landing page with authentication and feature overview.\n\n- `/login`\n  **Authentication**: Spotify OAuth login and account connection.\n\n- `/dashboard`\n  **User dashboard**: Display settings, theme customization, privacy controls, and URL management.\n\n- `/display/[identifier]`\n  **Public display**: Real-time music display pages with custom styling and themes.\n\n- `/leaderboard`\n  **Community**: Public discovery of active displays and popular tracks.\n\n- `/analytics`\n  **Insights**: Usage analytics and listening statistics (authenticated users).\n\n- `/admin`\n  **Administration**: Admin panel for user management and system monitoring.\n\n---\n\n## API Routes\n\nAll API routes are under `/api/` and use Next.js Route Handlers with NextAuth.js authentication.\n\n### Authentication\n\n- `/api/auth/[...nextauth]`\n  NextAuth.js authentication endpoints with Spotify OAuth provider.\n\n### Spotify Integration\n\n- `/api/spotify/current-track`\n  Get currently playing track with real-time data.\n\n- `/api/spotify/recent-tracks`\n  Fetch recent listening history from Spotify API.\n\n- `/api/spotify/refresh-token`\n  Handle Spotify token refresh for continuous access.\n\n### User Management\n\n- `/api/user/preferences`\n  Get and update user display preferences and privacy settings.\n\n- `/api/user/generate-slug`\n  Create custom URL slugs with availability checking.\n\n- `/api/user/upload-background`\n  Handle custom background image uploads.\n\n### Public Display\n\n- `/api/display/[identifier]`\n  Public API endpoint for display data by custom identifier.\n\n- `/api/public/leaderboard`\n  Public leaderboard data for community features.\n\n---\n\n## Database\n\n- **Collections:**\n  - `users` (user accounts and preferences)\n  - `accounts` (OAuth account connections)\n  - `sessions` (authentication sessions)\n\n- **Database:**\n  Uses MongoDB with native driver for flexible document storage and efficient querying.\n\n---\n\n## Tech Stack\n\n- **Frontend:** Next.js 15, React 19, Tailwind CSS 4, shadcn/ui\n- **Backend:** Next.js Route Handlers (API), MongoDB native driver\n- **Authentication:** NextAuth.js with Spotify OAuth 2.0\n- **State Management:** React Context API and custom hooks\n- **Deployment:** Vercel with automatic CI/CD\n- **Analytics:** Vercel Analytics and Speed Insights\n- **Other:**\n  - `nanoid` for URL slug generation\n  - `date-fns` for date manipulation\n  - `framer-motion` for animations\n  - `lucide-react` for icons\n\n---\n\n## Development\n\n### Prerequisites\n\n- Node.js 18+ and pnpm\n- MongoDB database (local or Atlas)\n- Spotify Developer App\n\n### Setup\n\n1. **Install dependencies:**\n   ```sh\n   pnpm install\n   ```\n\n2. **Configure environment:**\n   - Copy `.env.example` to `.env.local` and fill in required values:\n   ```bash\n   MONGODB_URI=mongodb://localhost:27017/jamlog\n   SPOTIFY_CLIENT_ID=your_spotify_client_id\n   SPOTIFY_CLIENT_SECRET=your_spotify_client_secret\n   NEXTAUTH_URL=http://localhost:3000\n   NEXTAUTH_SECRET=your_secure_random_string\n   ```\n\n3. **Set up Spotify Developer App:**\n   - Create app at [Spotify Developer Dashboard](https://developer.spotify.com/)\n   - Add redirect URI: `http://localhost:3000/api/auth/callback/spotify`\n\n4. **Start development server:**\n   ```sh\n   pnpm dev\n   ```\n\n5. **Build for production:**\n   ```sh\n   pnpm build\n   pnpm start\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyuh%2Fspotify-util","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foyuh%2Fspotify-util","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foyuh%2Fspotify-util/lists"}