Back to Train

About Train

Listen Together in Real-Time

What is Train?

Midnight Express, affectionately known as "Train," brings people together through shared listening experiences. Train creates a virtual space where friends, strangers, and music lovers can listen to the same tracks at the same time, no matter where they are in the world.

The Experience

Train combines beautiful visuals with carefully curated playlists to enhance your listening experience. Whether you're working, relaxing, or simply vibing with friends, Train provides the perfect way to enjoy music together in real-time.

Key Features

  • Real-Time Synchronization: Everyone hears the same music at the same moment, creating a truly shared experience
  • SharePlay: See who else is listening, control playback together, and feel connected
  • Multiplayer Games: Play Tic-Tac-Toe with fellow passengers between tracks
  • Curated Playlists: Thoughtfully selected tracks that capture the mood of train travel
  • Beautiful Animations: Smooth Lottie animations that enhance the experience
  • Progressive Web App: Install on any device for a native app-like experience
  • Cross-Platform: Works seamlessly on desktop, mobile, and tablet

The Technology

Train is built with modern web technologies to deliver a smooth, real-time experience:

  • Next.js 16: React framework for production-grade web applications
  • WebSocket Sync: Custom synchronization server for real-time state sharing
  • YouTube API: Streaming powered by YouTube's extensive music library
  • Redis: In-memory data store for lightning-fast state management
  • Lottie Animations: High-quality animations that don't compromise performance
  • PWA Technology: Installable, offline-capable, and fast

The Vision

In an age of personalized algorithms and isolated listening, Train brings back the communal experience of music. It's inspired by:

  • The shared silence and connection of train passengers
  • Late-night radio shows where everyone tunes in at the same time
  • The magic of experiencing art together, not alone
  • The beauty of India's diverse landscapes seen from train windows

Train is about presence, not just music. It's about knowing that somewhere, someone else is hearing the same song, feeling the same vibe, traveling the same journey.

The Journey

Train started as an experiment: What if listening to music felt less like scrolling through a streaming service and more like tuning into a shared moment? The result is an app that prioritizes atmosphere, synchronicity, and community over endless choice and personalization.

From its Hindi title "मिडनाइट बडी" (Midnight Buddy) to its carefully selected playlist spanning indie, electronic, and ambient genres, Train celebrates the in-between moments—the transitions, the waiting, the journey itself.

For Developers

Train is open about its architecture and welcomes curious developers. The application demonstrates:

  • Real-time WebSocket synchronization across multiple clients
  • Server-sent events (SSE) for presence tracking
  • Content Security Policy (CSP) implementation with nonces
  • YouTube IFrame API integration
  • Redis pub/sub patterns for distributed state
  • Progressive Web App best practices
  • Responsive design with safe area handling for notched devices
  • Error monitoring with Sentry

Open Source & Credits

Train is built with love and powered by amazing open-source technologies:

  • Next.js by Vercel
  • React by Meta
  • Redis by Redis Labs
  • Lottie by Airbnb
  • YouTube API by Google
  • TypeScript by Microsoft

Music content is provided through YouTube and belongs to the respective artists and rights holders. Train does not host or own any music content.

The Name

"Midnight Express" refers to late-night trains that carry passengers through the quiet hours, when the world is still and introspective. "मिडनाइट बडी" (Midnight Buddy) emphasizes the companion aspect—Train is your buddy on those late-night journeys, real or metaphorical.

The casual nickname "Train" reflects the app's approachable, unpretentious nature. It's not trying to be a full-featured streaming service. It's just... Train. Hop on, enjoy the ride, hop off whenever.

Privacy & Sustainability

Train believes in minimal data collection:

  • No user accounts or registration required
  • No tracking of individual listening history
  • Session data is temporary and automatically deleted
  • Open about third-party services and their data practices

Learn more in our Privacy Policy.

Get in Touch

Have feedback, found a bug, or just want to say hi? We'd love to hear from you.

Visit our Contact page to get in touch.

Made with ♥ in India

Train is crafted by @shntanuuhere, an independent developer passionate about music, design, and community-driven experiences.

Current version: 1.4.0(Build 146)