How kripac29/reelo-your-singing-reel-soundtrack works
Reelo turns Instagram Reel links into saved audio, then lets users organize, browse, favorite, and play that audio in a personal library. The main path runs from the web app’s import forms through the API and media extraction to stored Reel records; client stores then support playlists and persistent playback. The graph also includes authentication and account management. Some subsystem links come from README statements or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: index.js Express API · reels-store.tsx Reel library state · importController.js Import orchestration · authController.js Authentication
Components 32
Web app
- Reel import
src/routes/app.discover.tsx - Save and tag
src/routes/app.save.tsx - API client
src/lib/api.ts - Import API client
src/lib/audioApi.ts - Session state
src/lib/auth-store.tsx - Reel library state
src/lib/reels-store.tsx - Playlist state
src/lib/playlist-store.tsx - Player state
src/lib/player-store.tsx - Audio engine
src/components/AudioEngine.tsx - Library and discovery
src/routes/app.discover.tsx - Playlist view
src/routes/app.playlist.$id.tsx - Login and signup
src/routes/login.tsx - Account settings
src/routes/app.settings.tsx
API and services
- Express API
backend/src/index.js - Import orchestration
backend/src/controllers/importController.js - Authentication
backend/src/controllers/authController.js - OTP verification
backend/src/controllers/otpController.js - Reel operations
backend/src/controllers/reelController.js - Playlist operations
backend/src/controllers/playlistController.js - JWT authorization
backend/src/middleware/authMiddleware.js - Email delivery
backend/src/helpers/emailHelper.js
Media processing
- Instagram extraction
backend/src/helpers/ytDlpHelper.js - Audio and thumbnail
backend/src/helpers/ffmpegHelper.js - Media file helpers
backend/src/helpers/fileHelpers.js
Persistent data
- User records
backend/src/models/User.js - OTP records
backend/src/models/OTP.js - Reel records
backend/src/models/Reel.js - Playlist records
backend/src/models/Playlist.js
Other components
- Listener
- MongoDB
- Browser audio
Connections 48
- Listener → Reel import: submits link
src/routes/app.discover.tsx - Reel import → Import API client: requests import
src/routes/app.discover.tsx - Save and tag → Import API client: imports audio
src/routes/app.save.tsx - Import API client → Express API: calls import API
- API client → Express API: sends API requests
- Express API → Import orchestration: routes imports
- Import orchestration → Instagram extraction: extracts source
backend/src/controllers/importController.js - Import orchestration → Audio and thumbnail: processes media
backend/src/controllers/importController.js - Import orchestration → Media file helpers: uses file helpers
backend/src/controllers/importController.js - Instagram extraction → Instagram: fetches Reel
README.md - Audio and thumbnail → Media file helpers: writes media
- Import orchestration → Reel records: saves Reel
README.md - Listener → Login and signup: signs in
- Login and signup → Session state: uses session
- Session state → API client: calls auth endpoints
src/lib/auth-store.tsx - Express API → Authentication: mounts auth routes
backend/src/index.js - Authentication → User records: reads and writes
backend/src/controllers/authController.js - Authentication → OTP records: verifies OTP
backend/src/controllers/authController.js - Authentication → Reel records: deletes user Reels
backend/src/controllers/authController.js - Authentication → Playlist records: deletes user playlists
backend/src/controllers/authController.js - OTP verification → OTP records: manages OTPs
backend/src/controllers/otpController.js - OTP verification → User records: manages accounts
backend/src/controllers/otpController.js - OTP verification → Email delivery: sends verification
backend/src/controllers/otpController.js - User records → MongoDB: persists records
README.md - OTP records → MongoDB: persists records
README.md - Reel records → MongoDB: persists records
README.md - Playlist records → MongoDB: persists records
README.md - Express API → Reel operations: mounts Reel routes
backend/src/index.js - Express API → Playlist operations: mounts playlist routes
backend/src/index.js - Reel operations → Reel records: manages Reel records
backend/src/controllers/reelController.js - Playlist operations → Playlist records: manages playlists
backend/src/controllers/playlistController.js - JWT authorization → User records: checks user
backend/src/middleware/authMiddleware.js - Reel library state → API client: loads and updates
src/lib/reels-store.tsx - Reel library state → Express API: calls Reel endpoints
src/lib/reels-store.tsx - Express API → JWT authorization: protects Reel routes
- Playlist state → API client: calls playlist API
src/lib/playlist-store.tsx - Playlist state → Express API: calls playlist endpoints
- Listener → Library and discovery: browses library
- Library and discovery → Reel library state: reads saved Reels
src/routes/app.discover.tsx - Library and discovery → Playlist state: reads playlists
src/routes/app.discover.tsx - Listener → Playlist view: opens playlist
- Playlist view → Reel library state: uses Reel state
src/routes/app.playlist.$id.tsx - Playlist view → Playlist state: uses playlist state
src/routes/app.playlist.$id.tsx - Playlist view → Player state: controls playback
src/routes/app.playlist.$id.tsx - Player state → Reel library state: uses Reel data
src/lib/player-store.tsx - Audio engine → Player state: reads player state
src/components/AudioEngine.tsx - Audio engine → Reel library state: reads Reel data
src/components/AudioEngine.tsx - Audio engine → Browser audio: plays audio