Jason Brain's Tech Blog

Intelligence & Portability: The Evolution to Radio Stream Player v2.2.8

by Jason Brain

Building on the foundation of our PHP/MySQL transition, the Radio Stream Player has undergone a transformative series of updates. From v2.2.3 to v2.2.8, we've focused on two mission-critical fronts: making the player truly portable across all your devices and providing administrators with the intelligence needed to curate a world-class station directory.

Since our last update, we've bridged the gap between guest listening and account-based personalization, while hardening the platform's infrastructure for the next generation of features.


Major Highlights / Updates

The journey through the v2.2 series has been defined by three core pillars: Portability, Continuity, and Intelligence.

  • v2.2.3 & v2.2.4: Mobile First & PWA Ready: We completely re-engineered the Admin Dashboard for touch screens and launched full Progressive Web App (PWA) support, allowing you to "install" the player natively on iOS and Android.
  • v2.2.5 & v2.2.6: Seamless Continuity: With our new "Remember Me" persistent login and automated local-to-cloud favorites migration, your listening experience is now perfectly synchronized across every browser and device.
  • v2.2.7: Cloud-Synced Aesthetics: Your visualizer preferences are no longer tied to a single machine. Logged-in users now have their VU style preferences stored in the database, ensuring your preferred look follows you everywhere.
  • v2.2.8: The Intelligence Update: Our latest release empowers administrators with popularity tracking ("Total Favorites"), automated stream health checks, and one-click promotion of popular user-added stations to system defaults.
(The new responsive Admin Dashboard featuring Station Intelligence and Analytics)

Technical Deep Dive

Under the hood, we've solved some of the most complex challenges of browser-based audio delivery and directory management:

  • Bi-directional Conflict Detection: We've refined our duplicate detection logic to handle complex URL normalization (SHOUTcast semicolons and trailing slashes), ensuring a clean, conflict-free station directory.
  • "Skip Waiting" PWA Logic: To ensure a "first-class" app experience, we implemented advanced Service Worker logic to force immediate code updates, ensuring users always have the latest features without manual refreshes.
  • Automated Favorites Sync: We developed a robust background migration flow that detects guest favorites in localStorage and offers a one-click sync to the user's permanent MySQL account upon registration.
  • Dynamic Site Config API: We've eradicated hardcoded social links. All branding—from GitHub to PayPal—is now managed via a secure database API, making the platform fully customizable via the Admin Dashboard.

Looking Ahead

As we move toward v2.3, our focus shifts to Feed Quality and Backend Independence. We're building even smarter auditing tools to ensure every stream in the directory is high-quality, while continuing to migrate our core services away from external dependencies for a truly sovereign hosting experience.

Try out the latest updates at radio.djay.ca.

Until next time, keep the music playing!

— Jason Brain

From Awakening to Acceleration: The Road to Radio Stream Player v2.2.2

by Jason Brain

It’s been an incredible journey since we announced the "PHP Awakening" with version 2.0.0. What started as a transition to a full-stack architecture has rapidly evolved into a professional-grade audio platform. Today, we’re recapping the major milestones that brought us to our most resilient version yet: v2.2.2.

Since the launch of the account system, we haven't stopped listening to your feedback. From account sovereignty to industrial-strength stream resiliency, here’s a look at the evolution of your favorite internet radio portal.


Major Highlights / Updates

The journey from v2.1 to v2.2.2 has been defined by three core pillars: User Power, Monetization, and Reliability.

  • v2.1: Account Sovereignty: We introduced a complete AJAX-powered registration flow and secure password recovery, giving you full control over your listening profile.
  • v2.2.0: The Pro Overhaul: A massive update that introduced our role-aware monetization engine and transformed the pop-out player into a "first-class" experience with auto-start and background wallpaper sync.
  • v2.2.1: UX Refinement: We polished the interface, integrated ads natively into the player card for a cleaner look, and added dynamic browser tab titles so you always know what's playing at a glance.
  • v2.2.2: The Bitrate & Resiliency Update: Our latest release adds advanced bitrate sniffing and an exponential backoff reconnection system, ensuring your stream stays alive and transparent.
(The evolution of the Radio Stream Player glassmorphism interface)

Technical Deep Dive

Under the hood, we've solved some of the most complex challenges of browser-based audio delivery:

  • Advanced Bitrate Sniffing: We now intelligently extract bitrate data directly from HTTP headers (like ICY-BR) when real-time metadata is missing, providing total audio transparency.
  • Exponential Backoff Reconnection: To combat server-side drops, the player now scales its reconnection attempts over 10 seconds, drastically improving stability on unreliable networks.
  • Music-First Priority: We've optimized the boot sequence to defer non-essential polling until after the audio buffer is stabilized, resulting in noticeably faster stream starts.
  • Balanced VU Visuals: Our hardware-accelerated VU meters now automatically mirror active channels for mono streams, maintaining a beautiful aesthetic regardless of the source format.

Looking Ahead

With the platform now stable and monetized, we are looking toward v2.3. Our goal is "Backend Independence," where we move our metadata and stream proxies from Cloudflare Workers to native PHP, creating a 100% self-hosted, sovereign audio experience.

Try out the latest updates at radio.djay.ca.

Until next time, keep the music playing!

— Jason Brain

Radio Stream Player v2.0.0: The PHP Awakening 🚀

by Jason Brain

We are thrilled to announce the official launch of Radio Stream Player v2.0.0! This release marks the most significant architectural evolution since the project's inception. We’ve moved far beyond a simple frontend player into a robust, full-stack application designed for performance, persistence, and the ultimate user experience.

The core philosophy of v2.0.0 was simple: The music must never stop. Whether you are logging in, updating your profile, or managing your favorites, we’ve engineered every interaction to be non-intrusive and seamless.


Major Highlights / Updates

This update is packed with features designed to bring professional-grade station management to your browser:

  • Full PHP & MySQL Backend: We've officially moved away from local storage dependencies. Your account, preferences, and custom stations are now securely managed in the cloud.
  • "Stay-in-the-Groove" Login: Our new AJAX-driven authentication system allows you to log in or out via a sleek modal overlay. Best of all? No page reloads are required, ensuring your audio stream remains uninterrupted.
  • Cloud-Synced Favorites: Access your curated list of global stations from any device. Your favorites are now tied to your unique user account, powered by our new database layer.
  • Refined Social Experience: A new "Account" management tab within the settings modal makes it easy to keep your profile updated while you listen to the best streams from around the world.
(Live Preview: You can log in and explore the v2.0.0 features right here. Try our "Stay-in-the-Groove" login while the music plays!)

Technical Deep Dive

Under the hood, we've implemented several advanced patterns to ensure stability and security:

  • Secure API Orchestration: A dedicated api/auth.php layer handles secure session management and authentication, allowing for a decoupled frontend-backend communication pattern.
  • Zero-Interrupt UI Updates: Using custom JavaScript Pub/Sub patterns, the UI—including the header login state—updates instantly upon authentication without a full DOM refresh.
  • Dark Mode Optimization: We've implemented native color-scheme support and refined CSS contrast ratios to ensure total legibility during late-night listening sessions.
  • Edge Network Security: All HTTP streams are securely proxied through our custom Cloudflare Workers edge network, bypassing "Mixed Content" warnings while protecting user privacy.

Looking Ahead

With the PHP/MySQL foundation now firmly in place, we are looking forward to introducing community-driven features, including shared station playlists and expanded metadata enrichment. We remain committed to keeping the core player open-source and community-focused.

Experience the new era of internet radio at radio.djay.ca.



Until next time!

— Jason Brain

DJAY.ca MixKit v0.2.0: The WebGL Revolution

by Jason Brain

I'm thrilled to announce the release of MixKit v0.2.0! This update is a massive leap forward for the project, bringing professional-grade performance and visual fidelity to the browser-based DJ experience.

The core of this update is a complete transition to GPU-accelerated rendering. By moving our heavy lifting from the CPU to the GPU, we've achieved a level of smoothness and responsiveness that was previously out of reach.


Unified WebGL Visuals

The interface has been completely transformed with high-performance WebGL visualizations:

  • WebGL Waveform Engine: Experience smooth, progressive-draw animations for deck waveforms.
  • WebGL VU Meters: High-precision RMS tracking with a classic LED hardware aesthetic.
  • WebGL Spectrum Analyzer: A dynamic master mixer visualization with peak-holding and vibrant gradients.

(The new WebGL-powered interface in action)

High-Performance Optimization

Under the hood, we've implemented advanced batching techniques to ensure a rock-solid 60FPS experience:

  • Geometric Batching: We've reduced CPU/GPU overhead by ~99% by consolidating thousands of draw calls into optimized vertex batches.
  • Zero-Allocation Rendering: By pre-allocating vertex buffers and typed arrays, we've eliminated the dreaded garbage collection (GC) jank during playback.

Professional Audio Features

MixKit v0.2.0 isn't just about looks. We've added features that bring it closer to hardware DJ standards:

  • Stutter-Cueing: Precise CUE point selection with 50ms audio chattering bursts.
  • Momentary Pitch Bend (Nudge): Fine-tune your beat-matching with temporary playback rate adjustments.
  • Tunable Crossfader Curves: Choose between Logarithmic, Exponential, Linear, and Constant Power curves.

Persistence and Customization

Your workspace is now yours to keep. The new localStorage Persistence layer ensures that all your settings—from tempo range to UI theme—are saved across browser restarts.


What's Next?

With the foundation of the WebGL engine laid, our focus turns toward advanced state management and further MIDI integration. The roadmap is packed with exciting features, and I can't wait to share more with you soon.

Ready to try it out? Head over to mixkit.djay.ca and experience the future of web-based DJing.

Keep the mix alive!

— Jason Brain

Radio Stream Player v1.2: The "Universal Streaming" Update is Here! 🎵🚀

by Jason Brain

Radio Stream Player v1.2: The "Universal Streaming" Update is Here! 🎵🚀

It feels like just yesterday we released version 1.1, introducing custom visuals, new themes, and the pop-out player. But today, I am incredibly excited to announce the release of Radio Stream Player v1.2! This is arguably our biggest and most important update yet.

If you've ever tried to build an audio player for the modern web, you know the struggle: most legacy internet radio stations still broadcast over insecure http:// streams. But because our application is hosted safely on https://, modern browsers simply block these streams with a dreaded "Mixed Content" error. It was incredibly frustrating... until now.

🛡️ The Magic of the Cloudflare Worker Proxy

To finally solve the Mixed Content problem, we built a custom backend proxy using Cloudflare Workers (api.djay.ca). Instead of your browser trying (and failing) to connect to old HTTP stations directly, our player now silently routes those streams through our blazing-fast worker. The worker fetches the insecure radio stream on our behalf and securely pipes it back to you via HTTPS.

The result? You can now listen to any radio station in the world, securely, without any annoying browser errors!

✨ Live "Now Playing" Track Info

But we didn't stop there. Because our Cloudflare proxy is fetching the stream, we built a secondary /metadata endpoint that actively extracts the live ICY Metadata from the broadcast. What does this mean for you?

  • Scrolling Marquee: The player header now features a sleek "Now Playing" display that shows you the exact track and artist name currently playing. If the track name is super long (looking at you, progressive trance mixes!), it smoothly scrolls across the screen.
  • Lock Screen Integration: We wired this live data directly into the OS Media Session API. Now, when you play a station, the actual track name will appear on your smartphone's lock screen, your smartwatch, and your desktop media controls!

⚙️ Player & UI Refinements

We've also taken the time to polish the rest of the experience based on your feedback:

  • Edit Custom Stations: You no longer have to delete and re-add a custom station to fix a typo. You can now simply hit the new "Edit" button (✎) in the Settings menu to tweak the Name, URL, or Genre of any station you've added.
  • Pop-out Player Parity: The pop-out window has been upgraded! It now fully supports the new Custom Stations, the secure Cloudflare Proxy routing, and it even features the same scrolling metadata marquee as the main player window.
  • New Curated Content: We've expanded our default lineup with fantastic new stations including Hirsch Radio Psytrance, Hirsch Radio Progressive, and A State of Trance (ASOT).

🙌 Open Source & Developer Friendly

We are proudly open-source! Check out our full codebase, star the repository, or contribute to the project over on our GitHub Repository.

Are you a developer looking to host your own version of the player? We've open-sourced our entire Cloudflare Worker script! You can find the worker.js template inside the repository, along with detailed instructions on how to quickly deploy it to your own free Cloudflare account.

🌐 Embed the Player Anywhere (iFrame Support)

Want to add the Radio Stream Player to your own website or blog? It's incredibly easy! Because our player is responsive and completely self-contained, you can seamlessly embed it anywhere using a simple HTML iframe. The player will automatically adapt to fit the space you give it, making it the perfect audio companion for your own site.

<iframe allow="autoplay; encrypted-media" allowfullscreen="" height="600" 
    src="https://radio.djay.ca/" style="border: none;" 
    title="Radio Stream Player" width="100%" >
</iframe>
    

Ready to hear the difference?

Check out the live player right now at radio.djay.ca!

As always, drop a comment below or open an issue on our GitHub if you have any feedback or stations you'd like to see added. Happy listening!



Gematria Calculator v1.1.0 — "The Researcher's Update"

by Jason Brain

 


Since the release of version 1.0.1, the Gematria Calculator has grown from a polished tool into a comprehensive research platform. I'm incredibly excited to announce the release of Gematria Calculator v1.1.0 — "The Researcher's Update"!

Building Your Own Systems: The Custom Cipher Engine

One of the most requested features was the ability for researchers to define their own numerical mappings. In v1.1.0, we've delivered a full-featured Custom Cipher Engine:

  • Create & Mapping: A dedicated builder interface where you can map every letter (A-Z) to your own specific numerical values.
  • Presets: Quickly initialize your mappings with Sequential, Reverse, or Pythagorean patterns.
  • Import/Export: Share your custom ciphers with the community or back up your research using JSON file exports.
  • Seamless Integration: Your custom ciphers appear right alongside the 28+ standard systems in the calculator and comparison views.

Side-by-Side Analysis: Phrase Comparison Matrix

Researching gematria often involves comparing multiple phrases to find hidden commonalities. The new Phrase Comparison View makes this effortless:

  • Unlimited Comparison: Enter multiple phrases and see their values across all your selected systems in a high-density matrix.
  • Pattern Discovery: The tool automatically highlights matching numerical values in green, allowing patterns to jump off the screen.
  • CSV Export: Need to do deeper statistical analysis? Export your entire comparison table to a CSV file for use in Excel or Google Sheets.

UX & Shareability Improvements

We’ve also added several features to make the tool feel more like a native application and easier to share:

  • Shareable Links: Found an interesting pattern? Use the new "Share" button to generate a unique URL that saves your input text and selected systems.
  • Results Sorting: You can now sort your results by Name, Value, or Default order, and your preference will persist across sessions.
  • PWA Support: The calculator is now a Progressive Web App. You can "Install" it on your phone or desktop for a standalone, distraction-free experience.

Join the Research

This update marks the completion of Phase 1 of our Roadmap, and the platform is now more powerful than ever. Whether you're a seasoned researcher or just starting your journey into the world of numbers, v1.1.0 has something for you.

Thank you for all the feedback and support as we continue to build the most advanced open-source gematria tool on the web!


Core CMS v0.3.0: Themes, Roles, and a Polished Admin Experience

by Jason Brain

I'm thrilled to announce the release of Core CMS v0.3.0. This update represents a major leap forward in usability, customization, and security. While v0.2.0 laid the foundation for content creation, v0.3.0 turns the system into a fully managed platform ready for diverse teams and designs.

Here is what's new in this release.

🎨 The Theme System

One of the most requested features is now live. You are no longer stuck with a single hardcoded look.

  • Theme Manager: Switch between visual designs instantly from the Admin Dashboard.
  • Dark Mode: We've included a "Dark Mode" theme out of the box to demonstrate the system's flexibility.
  • Developer Friendly: Creating a new theme is as simple as adding a folder to /themes. Check out the new Theme Builder Guide in the docs.

👥 User Roles & Security

As teams grow, security becomes paramount. We have implemented a strict Role-Based Access Control (RBAC) system.

  • Administrators: Have full control (Settings, Plugins, Users).
  • Editors: Can manage content and media but cannot touch system configurations.
  • Subscribers: Read-only access (ready for future membership features).
  • User Management: Admins can now Add, Edit, and Delete users directly from the dashboard.

⚙️ Site Identity & Customization

You shouldn't need to write PHP just to change your logo.

  • Site Identity: Update your Site Title, Logo, and Footer Text directly in Site Settings.
  • Label Editor: Want to change "Read More" to "Discover"? You can now override UI text strings via the admin panel—perfect for branding or simple localization.
  • Scroll to Top: A configurable "Back to Top" button to improve navigation on long pages.

🖼️ Media & Editor Upgrades

Content creation gets smoother and more accessible.

  • Media Metadata: You can now add Alt Text, Titles, and Descriptions to your images for better SEO and accessibility.
  • Editor.js Image Tool: Drag and drop images directly into your posts using the block editor.
  • Menu Enhancements: Reorder menu links manually and link to internal pages by ID (so links don't break if you rename a slug).

📊 A Modern Dashboard

We've refreshed the Admin Dashboard. The old text links are gone, replaced by a responsive Quick Actions Grid that makes navigating the backend faster and more touch-friendly.

🚀 What's Next?

With the core experience now robust and customizable, we are officially moving to Phase 5. The next major update will introduce the Event Planner Plugin, transforming Core CMS into a specialized tool for managing events and bookings.

View the Changelog | Download v0.3.0