Jason Brain's Tech Blog

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

Introducing Core CMS: A Lightweight, Modular Foundation for the AI Era

by Jason Brain

I am excited to announce that I have officially made my latest project, Core CMS, public on GitHub.

For a long time, I've felt that modern Content Management Systems have become too heavy. They often come packed with features you never use, frameworks that require a steep learning curve, and bloat that slows down the "heartbeat" of your website.

I wanted to build something different. Something that returns to the roots of clean, procedural PHP, but architected for the future of AI integration.

๐ŸŒŸ The Philosophy: "The Star in the Core"

The concept behind Core CMS is simple: The Core should be the Brain.

If we treat a CMS like a human body:

  • The Core is the Central Nervous System. It handles the logic, routing, and security. It keeps the lights on.
  • The Database is the Memory (Hippocampus).
  • Plugins are Learned Skills. Just as learning to play the piano doesn't change your DNA, adding an Event Planner shouldn't hack your core files.

This separation of concerns ensures that the system remains fast, secure, and incredibly stable, no matter how many "skills" (plugins) you teach it.

๐Ÿ› ️ Under the Hood

Core CMS is built with a "No Framework" approach to ensure maximum performance and understanding:

  • PHP 8.3+: Utilizing the latest features for speed and type safety.
  • MySQL (MariaDB): Robust data storage using secure PDO Prepared Statements.
  • Block-Based Editing: Integrated Editor.js for a modern writing experience that saves clean JSON data (perfect for AI parsing) instead of messy HTML blobs.
  • Zero Bloat: No heavy frontend frameworks. Just clean HTML5 and CSS3.

๐Ÿš€ What's Built So Far?

We have just completed Phase 4 (Expansion), meaning the system is now a fully functional CMS:

  • Secure Authentication: Login, Logout, and Session management.
  • Content Management: Create, Edit, and Delete Posts and Pages.
  • Taxonomy: Organize content with hierarchical Categories and Tags.
  • Media Library: Upload and manage images securely.
  • User Profiles: Manage accounts and avatars.
  • Dynamic Menus: Control your site navigation directly from the Admin Dashboard.

๐Ÿ”ฎ What's Next?

The roadmap is ambitious. Now that the foundation is solid, we are moving into Phase 5, where we will build the Event Planner Plugin—a specialized module for managing bookings and vendors.

Beyond that, Core CMS is designed to be AI-Native. Future phases include:

  • Admin Copilot: An AI assistant to help draft content and summarize data.
  • Frontend Agents: Chatbots that can query the database to answer visitor questions.

๐Ÿ”— Check it Out

The repository is now open source. I invite you to explore the code, read the documentation, and see how a modern, lightweight CMS is built from scratch.

View Core CMS on GitHub

See the Live Demo

Tooling Up: Rapidly Building an Image Optimization Workflow with AI

by Jason Brain

As I moved down my Project Roadmap, the next major task was Image Optimization. The goal? Improve Core Web Vitals by implementing responsive images (srcset) across the portfolio.

I looked at the task: Create resized versions of key assets (480w, 800w, 1200w).

I could have opened Photoshop and manually exported dozens of files. I could have used a command-line tool. But as a Creative Technologist, I saw an opportunity to build a workflow that I (and others) could use forever.

From Script to Suite in Hours

I had an old, basic script (v1.0.0) lying around that could convert a single image. It was functional but clunky.

Using the Human-AI collaboration workflow I've established with Gemini, we didn't just update the script; we completely overhauled it. In a matter of hours, we took a simple utility and evolved it into v2.2.1 of the Image to WebP Converter.

The Velocity of AI Development

The speed of iteration was staggering. Here is what we accomplished in a single "sprint":

  • v2.0.0: Added responsive size generation (automatically creating 480px, 800px, and 1200px versions) and a real-time quality slider.
  • v2.1.0: Refactored for offline capability, ensuring the tool works without an internet connection—perfect for secure environments.
  • v2.2.0: Added "Force Aspect Ratio" tools (essential for uniform card layouts), custom width inputs, and a ZIP manifest generator.
  • v2.2.1: Rapidly diagnosed and fixed a critical download bug by replacing external dependencies with native browser APIs, ensuring stability across all platforms.

Why Build Your Own Tools?

Why spend time building a tool when others exist?

  1. Privacy: This tool runs 100% in the browser. No images are uploaded to a server.
  2. Workflow Specificity: It is tailored exactly to my project's needs (the specific breakpoints defined in my scratchpad.md).
  3. Learning: It serves as another case study in modern, AI-assisted web development.

Try It Out

The tool is open source and available for anyone to use.

Now that the tooling is ready, I'm equipped to tackle the site-wide image optimization task with efficiency and precision.

Check out the full changelog on GitHub.