Walkthrough

Implementation Details

📋 The Real Scenario

Your Tauri app is already deployed and running on users' machines. Community developers create extensions that might use UI libraries (like Recharts) that weren't included in your original bundle. The React components exist as placeholders, but the actual library is missing.

The Challenge: How do users get these missing libraries after the app is already installed?


🌐 Option 1: CDN Runtime Loading

💡 The Idea: When an extension needs a library, download it directly from the internet into the running app.

🏗️ How It Works

  1. Extension Loads: User installs a community extension that needs Recharts
  2. Missing Library Detected: App realizes Recharts isn't available
  3. CDN Download: App fetches Recharts from unpkg.com or jsDelivr
  4. Runtime Injection: Library gets loaded into the browser's memory
  5. Extension Works: Charts now render perfectly

✅ Pros

❌ Cons