<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Miii</title>
    <description>The latest articles on DEV Community by Miii (@miii).</description>
    <link>https://dev.to/miii</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3990205%2F596fa161-2deb-4b8d-a95e-51c064e7ad9c.jpeg</url>
      <title>DEV Community: Miii</title>
      <link>https://dev.to/miii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miii"/>
    <language>en</language>
    <item>
      <title>The "distroless" container that had a shell all along</title>
      <dc:creator>Miii</dc:creator>
      <pubDate>Thu, 19 Nov 2026 02:09:00 +0000</pubDate>
      <link>https://dev.to/miii/the-distroless-container-that-had-a-shell-all-along-31j</link>
      <guid>https://dev.to/miii/the-distroless-container-that-had-a-shell-all-along-31j</guid>
      <description>&lt;h1&gt;
  
  
  The "distroless" container that had a shell all along
&lt;/h1&gt;

&lt;p&gt;For four months my &lt;code&gt;docker-compose.yml&lt;/code&gt; carried a comment like this one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;proof-server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="c1"&gt;# No healthcheck: the proof-server image is distroless (nix-built) and has
&lt;/span&gt;  &lt;span class="c1"&gt;# no shell or curl/wget binaries inside, so `docker compose --wait` cannot
&lt;/span&gt;  &lt;span class="c1"&gt;# gate on it. The deploy script polls the proof-server from the host side
&lt;/span&gt;  &lt;span class="c1"&gt;# before submitting transactions.
&lt;/span&gt;  &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;midnightntwrk/proof-server:8.0.3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every clause of that comment was wrong except "no &lt;code&gt;curl&lt;/code&gt;/&lt;code&gt;wget&lt;/code&gt;". The image is not distroless, and it does have a shell: &lt;code&gt;bash&lt;/code&gt;, &lt;code&gt;sh&lt;/code&gt;, and a full set of coreutils. I had never checked — I had inferred it from the fact that &lt;code&gt;ls&lt;/code&gt; doesn't work inside.&lt;/p&gt;

&lt;p&gt;That inference made &lt;code&gt;--wait&lt;/code&gt; meaningless, and the workaround only covered one deployment path: a polling loop in the deploy script that any other entry point — a second script, a CI job, a teammate's first run — would not inherit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the wrong assumption looks like when it runs
&lt;/h2&gt;

&lt;p&gt;Measured on the actual image, same host, same compose file:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Compose configuration&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;up --wait&lt;/code&gt; returns after&lt;/th&gt;
&lt;th&gt;Service ready?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;no healthcheck&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2–4 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;No — &lt;code&gt;/health&lt;/code&gt; still refusing connections six seconds later&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;with healthcheck&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;13 s&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Yes — &lt;code&gt;Up (healthy)&lt;/code&gt;, &lt;code&gt;/health&lt;/code&gt; returns 200 on the next request&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A couple of seconds is the container starting, not the server starting. Any script that trusted &lt;code&gt;--wait&lt;/code&gt; and immediately submitted a transaction was racing a process that needs roughly thirteen seconds before it answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ten seconds of checking
&lt;/h2&gt;

&lt;p&gt;The claim was "no shell". The test is one line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm --entrypoint /bin/sh midnightntwrk/proof-server:8.0.3 -c &lt;span class="s1"&gt;'echo shell-ok'&lt;/span&gt;
&lt;span class="c"&gt;# shell-ok&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;/bin&lt;/code&gt; is not empty either:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm --entrypoint /bin/bash midnightntwrk/proof-server:8.0.3 \
  -c &lt;span class="s1"&gt;'echo /bin/*'&lt;/span&gt;
&lt;span class="c"&gt;# /bin/[ /bin/base64 /bin/bash /bin/cat /bin/cp /bin/date /bin/df ... /bin/sh ...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So why did &lt;code&gt;ls&lt;/code&gt; fail inside the container and make the image look distroless?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run --rm --entrypoint /bin/bash midnightntwrk/proof-server:8.0.3 \
  -c &lt;span class="s1"&gt;'echo $PATH'&lt;/span&gt;
&lt;span class="c"&gt;# /nix/store/k4a492bl82lg24l8vr6f0mcb77f5hfai-ledger-8.0.3/bin&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;PATH&lt;/code&gt; contains exactly one nix store directory — the ledger binaries. Not &lt;code&gt;/bin&lt;/code&gt;, not &lt;code&gt;/usr/bin&lt;/code&gt;. Typing &lt;code&gt;ls&lt;/code&gt; fails with &lt;code&gt;command not found&lt;/code&gt;, which is indistinguishable from "there is no &lt;code&gt;ls&lt;/code&gt;" unless you look. A minimal &lt;code&gt;PATH&lt;/code&gt; is not a minimal image.&lt;/p&gt;

&lt;p&gt;What the image genuinely lacks is an HTTP client: no &lt;code&gt;curl&lt;/code&gt;, no &lt;code&gt;wget&lt;/code&gt;, no &lt;code&gt;nc&lt;/code&gt;. That part of the comment was right, and it's the part that matters least — because bash can open a TCP socket by itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The healthcheck that works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;proof-server&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;midnightntwrk/proof-server:8.0.3&lt;/span&gt;
    &lt;span class="na"&gt;environment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;PORT&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6300&lt;/span&gt;
    &lt;span class="na"&gt;ports&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"6300:6300"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;healthcheck&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;test&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"CMD"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"/bin/bash"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"-c"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"exec 3&amp;lt;&amp;gt;/dev/tcp/127.0.0.1/6300"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;interval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;3s&lt;/span&gt;
      &lt;span class="na"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;3s&lt;/span&gt;
      &lt;span class="na"&gt;retries&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;
      &lt;span class="na"&gt;start_period&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;15s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;/dev/tcp&lt;/code&gt; is a bash builtin, not a binary, so it needs no packages and no &lt;code&gt;PATH&lt;/code&gt;. The check opens a socket and exits 0 if the kernel connects, non-zero if it doesn't. &lt;code&gt;start_period&lt;/code&gt; is generous because the first twelve seconds are the server loading its proving keys — failed checks in that window shouldn't count against the retry budget.&lt;/p&gt;

&lt;p&gt;With that in place, &lt;code&gt;docker compose up --wait&lt;/code&gt; blocks for about thirteen seconds and returns only once the service is actually listening. The application-side poll stays as a second line of defence for non-compose deployments, but it is no longer the only thing standing between a deploy script and a refused connection.&lt;/p&gt;

&lt;p&gt;Two notes if you're adapting this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The check is reachability, not correctness.&lt;/strong&gt; A TCP connect proves the port is bound. It does not prove the server can produce proofs. For that you need a real request — which brings its own trap, because &lt;code&gt;read&lt;/code&gt;ing an HTTP response from bash can block on a kept-alive connection and get your healthcheck killed by its timeout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you write the HTTP variant in compose, escape &lt;code&gt;$&lt;/code&gt;.&lt;/strong&gt; Compose interpolates the file before the container sees it, so &lt;code&gt;$line&lt;/code&gt; becomes an empty string and the check silently fails. Write &lt;code&gt;$$line&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When the image really has nothing
&lt;/h2&gt;

&lt;p&gt;Some images genuinely ship no shell: &lt;code&gt;gcr.io/distroless/static&lt;/code&gt;, scratch builds, most Go binaries. For those, you have three options, in order of preference:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Have the application expose health in a way the runtime can see&lt;/strong&gt; — a &lt;code&gt;/health&lt;/code&gt; endpoint plus an external checker. The container doesn't need a shell; something outside it does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add a healthcheck sidecar&lt;/strong&gt; — a small image with &lt;code&gt;curl&lt;/code&gt; that shares the network namespace, run as its own service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check from the orchestrator&lt;/strong&gt; — a Kubernetes &lt;code&gt;httpGet&lt;/code&gt; probe, or a host-side poll like the one I originally wrote, wired into every deployment path rather than one script.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What you should not do is what I did: assume the image can't be checked, skip the healthcheck, and let &lt;code&gt;--wait&lt;/code&gt; mean "the container was created".&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule
&lt;/h2&gt;

&lt;p&gt;Distroless is a specific claim — no shell, no package manager, only the app and its runtime dependencies. It is checkable in one command, and it is worth checking before you build a workaround around it.&lt;/p&gt;

&lt;p&gt;The failure mode here wasn't exotic. It was a &lt;code&gt;PATH&lt;/code&gt; with one entry, a command that returned &lt;code&gt;not found&lt;/code&gt;, and an assumption that survived four months because nothing forced me to test it. The healthcheck was one line the whole time.&lt;/p&gt;

</description>
      <category>debugging</category>
      <category>devops</category>
      <category>docker</category>
      <category>linux</category>
    </item>
    <item>
      <title>Alpine didn't break your Vite build. A missing optional dependency did.</title>
      <dc:creator>Miii</dc:creator>
      <pubDate>Thu, 19 Nov 2026 01:59:09 +0000</pubDate>
      <link>https://dev.to/miii/alpine-didnt-break-your-vite-build-a-missing-optional-dependency-did-pfi</link>
      <guid>https://dev.to/miii/alpine-didnt-break-your-vite-build-a-missing-optional-dependency-did-pfi</guid>
      <description>&lt;h1&gt;
  
  
  Alpine didn't break your Vite build. A missing optional dependency did.
&lt;/h1&gt;

&lt;p&gt;The advice is everywhere in Docker threads: &lt;em&gt;if a Node build fails on Alpine, switch to Debian.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I tested that claim against a real Vite 7 / React 19 / Tailwind 4 app. Alpine was innocent.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test
&lt;/h2&gt;

&lt;p&gt;Same source, four setups, one question: does the build produce a working bundle?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Setup&lt;/th&gt;
&lt;th&gt;&lt;code&gt;node_modules/@rollup&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Build&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;node:22-alpine&lt;/code&gt;, &lt;code&gt;npm install&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;code&gt;rollup-linux-x64-musl&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;✅ passes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;node:22-alpine&lt;/code&gt;, &lt;code&gt;npm ci&lt;/code&gt; with a lockfile generated on Debian&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;rollup-linux-x64-gnu&lt;/code&gt;, &lt;code&gt;rollup-linux-x64-musl&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅ passes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;node:22-alpine&lt;/code&gt;, &lt;code&gt;npm install --omit=optional&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;&lt;em&gt;(empty)&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;❌ fails immediately&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;node:22-bookworm-slim&lt;/code&gt;, &lt;code&gt;npm ci&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;rollup-linux-x64-gnu&lt;/code&gt;, &lt;code&gt;rollup-linux-x64-musl&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;✅ passes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A clean install on musl builds a React app without complaint. So the base image is not the variable. The variable is &lt;strong&gt;whether Rollup's native parser got installed&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the parser is a package
&lt;/h2&gt;

&lt;p&gt;Rollup 4 parses JavaScript with a native binary, not with JavaScript. That binary ships as a platform-specific optional dependency:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;@rollup/rollup-linux-x64-gnu&lt;/code&gt; — glibc (Debian, Ubuntu, &lt;code&gt;node:22-slim&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@rollup/rollup-linux-x64-musl&lt;/code&gt; — musl (Alpine)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The loader picks by libc at runtime, and there is no silent fallback: if the package is missing, Rollup stops and tells you which one it wanted.&lt;/p&gt;

&lt;h2&gt;
  
  
  The error is more useful than the advice
&lt;/h2&gt;

&lt;p&gt;Here is what a missing package actually looks like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Error: Cannot find module @rollup/rollup-linux-x64-musl.
npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828).
Please try `npm i` again after removing both package-lock.json and node_modules directory.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That message names the package, the libc, and the fix. It does not mention Alpine, because Alpine is not the problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check it in ten seconds
&lt;/h2&gt;

&lt;p&gt;Inside the failing image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ls node_modules/@rollup
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Expected on Alpine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rollup
rollup-linux-x64-musl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;@rollup&lt;/code&gt; contains only &lt;code&gt;rollup&lt;/code&gt;, the native parser is missing and every build is running on borrowed time. Confirm which libc you're on:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node -p &lt;span class="s2"&gt;"process.report.getReport().header.glibcVersionRuntime"&lt;/span&gt;
&lt;span class="c"&gt;# undefined  → musl (Alpine)&lt;/span&gt;
&lt;span class="c"&gt;# '2.36'     → glibc (Debian)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Three ways the package goes missing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Optional dependencies were skipped.&lt;/strong&gt; &lt;code&gt;npm ci --omit=optional&lt;/code&gt;, &lt;code&gt;npm install --no-optional&lt;/code&gt;, or a CI policy that strips optional packages removes the native binding along with everything else. This is the only one of the three that reliably reproduces today, and it fails loudly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. &lt;code&gt;node_modules&lt;/code&gt; was copied from the host.&lt;/strong&gt; &lt;code&gt;COPY . .&lt;/code&gt; after running &lt;code&gt;npm install&lt;/code&gt; on your laptop ships a macOS or glibc &lt;code&gt;node_modules&lt;/code&gt; into a musl image. Fix: install inside the image and put &lt;code&gt;node_modules&lt;/code&gt; in &lt;code&gt;.dockerignore&lt;/code&gt;. This is the most common real-world cause and the one no base-image change will fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. The install and the image disagree.&lt;/strong&gt; A lockfile or cache produced on another platform — or a lockfile that predates an optional dependency — can leave you with the wrong set. Rollup's own error message recommends the brute-force fix: remove &lt;code&gt;node_modules&lt;/code&gt; and the lockfile, then install again inside the image.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, in order of preference
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Install in the image, from a lockfile:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;COPY&lt;/span&gt; package.json package-lock.json ./
&lt;span class="k"&gt;RUN&lt;/span&gt; npm ci --no-audit --no-fund
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;If a policy forbids optional dependencies&lt;/strong&gt;, install the platform package explicitly so it cannot be skipped:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i -D @rollup/rollup-linux-x64-musl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pin it to the same version as &lt;code&gt;rollup&lt;/code&gt;, and remember it is arch- and libc-specific: &lt;code&gt;linux-arm64-musl&lt;/code&gt; if you build on Apple Silicon runners targeting Alpine, &lt;code&gt;linux-x64-gnu&lt;/code&gt; for Debian.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Then verify instead of hoping.&lt;/strong&gt; Add a line to the build that fails with a readable message:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="k"&gt;RUN&lt;/span&gt; node -e &lt;span class="s2"&gt;"require.resolve('@rollup/rollup-linux-x64-musl')"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A missing parser then breaks on the line that caused it, not inside a bundler stack trace.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to switch to Debian anyway
&lt;/h2&gt;

&lt;p&gt;The advice isn't wrong every time. It's wrong as a first move. Switch the &lt;strong&gt;build stage&lt;/strong&gt; when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a tool ships no musl build at all;&lt;/li&gt;
&lt;li&gt;a native module is compiled at install time and its prebuilds assume glibc;&lt;/li&gt;
&lt;li&gt;you don't control the install (vendored lockfile, older npm with the optional-dependency bug).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cost is one layer in a stage nobody runs. Measured on this project: &lt;code&gt;node:22-alpine&lt;/code&gt; is 239 MB, &lt;code&gt;node:22-bookworm-slim&lt;/code&gt; is 329 MB — 90 MB that never reaches production, because the runtime stage is a separate image.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the Dockerfile looks like
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="c"&gt;# ---- build stage -----------------------------------------------------------&lt;/span&gt;
&lt;span class="c"&gt;# Debian slim for the build stage because Rollup's native parser is a per-libc&lt;/span&gt;
&lt;span class="c"&gt;# optional dependency (@rollup/rollup-linux-x64-gnu vs -musl). Alpine builds work&lt;/span&gt;
&lt;span class="c"&gt;# when the install includes it; a copied node_modules or an --omit=optional&lt;/span&gt;
&lt;span class="c"&gt;# install is what leaves Rollup without a parser and stops the build.&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; node:22-bookworm-slim AS build

&lt;span class="k"&gt;WORKDIR&lt;/span&gt; /app

&lt;span class="k"&gt;COPY&lt;/span&gt; package.json package-lock.json ./
&lt;span class="k"&gt;RUN&lt;/span&gt; npm ci --no-audit --no-fund

&lt;span class="k"&gt;COPY&lt;/span&gt; . .
&lt;span class="k"&gt;RUN&lt;/span&gt; npm run build

&lt;span class="c"&gt;# ---- runtime stage ---------------------------------------------------------&lt;/span&gt;
&lt;span class="c"&gt;# No Node, no libc concerns: static files behind nginx.&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; nginx:1.27-alpine AS runtime

&lt;span class="k"&gt;COPY&lt;/span&gt; docker/nginx.conf /etc/nginx/conf.d/default.conf
&lt;span class="k"&gt;RUN&lt;/span&gt; rm -rf /usr/share/nginx/html/*
&lt;span class="k"&gt;COPY&lt;/span&gt; --from=build /app/dist /usr/share/nginx/html

&lt;span class="k"&gt;EXPOSE&lt;/span&gt; 80

&lt;span class="k"&gt;HEALTHCHECK&lt;/span&gt; --interval=30s --timeout=3s --start-period=5s --retries=3 \
  &lt;span class="k"&gt;CMD&lt;/span&gt; wget -qO- http://127.0.0.1/healthz &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1 &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;exit&lt;/span&gt; 1

&lt;span class="k"&gt;CMD&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"nginx"&lt;/span&gt;, &lt;span class="s2"&gt;"-g"&lt;/span&gt;, &lt;span class="s2"&gt;"daemon off;"&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The libc only matters where native binaries run. Bundling happens in a stage that gets thrown away; serving static files needs no compatibility layer at all, so the runtime stays on Alpine and stays small.&lt;/p&gt;

&lt;h2&gt;
  
  
  The rule
&lt;/h2&gt;

&lt;p&gt;Pin the platform to the binary, not to the image size — and when a build fails in a container, read what the tool says it's missing before you change the base image.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ls node_modules/@rollup&lt;/code&gt; takes ten seconds. Rewriting a Dockerfile around a wrong diagnosis costs an afternoon, and leaves a comment in the repo that misleads the next person.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>node</category>
      <category>vite</category>
      <category>devops</category>
    </item>
    <item>
      <title>Voilaa! — Turning Any YouTube Video into an Interactive Learning App with Google Gemini</title>
      <dc:creator>Miii</dc:creator>
      <pubDate>Sat, 27 Jun 2026 11:15:38 +0000</pubDate>
      <link>https://dev.to/miii/voilaa-turning-any-youtube-video-into-an-interactive-learning-app-with-google-gemini-2kl5</link>
      <guid>https://dev.to/miii/voilaa-turning-any-youtube-video-into-an-interactive-learning-app-with-google-gemini-2kl5</guid>
      <description>&lt;h2&gt;
  
  
  🚀 I Turned Any YouTube Video into an Interactive Learning App with Google Gemini
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What if every YouTube tutorial could become an interactive web application instead of just another video?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn6tldvulxqu93ac6huer.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn6tldvulxqu93ac6huer.png" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We spend countless hours watching YouTube tutorials, conference talks, university lectures, and technical deep dives.&lt;/p&gt;

&lt;p&gt;The problem isn't the lack of great content.&lt;/p&gt;

&lt;p&gt;It's what happens afterward.&lt;/p&gt;

&lt;p&gt;Most of us finish a video thinking we've learned something, only to forget most of it a few days later. Watching is passive. Learning isn't.&lt;/p&gt;

&lt;p&gt;I wondered:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;What if AI could transform any educational video into something you could actually interact with?&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That question became &lt;strong&gt;Voilaa&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of generating another AI summary, I wanted to build something closer to a personal tutor—an application that converts a YouTube video into an interactive learning experience complete with explanations, quizzes, runnable examples, and production-ready code.&lt;/p&gt;




&lt;h2&gt;
  
  
  🎯 The Result
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4hep7savl1p4dh3wxhty.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4hep7savl1p4dh3wxhty.png" alt=" " width="800" height="798"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Paste any YouTube URL.&lt;/p&gt;

&lt;p&gt;Within seconds, Voilaa transforms it into a complete learning workspace.&lt;/p&gt;

&lt;p&gt;It automatically generates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📖 Executive summary&lt;/li&gt;
&lt;li&gt;🧠 Key concepts&lt;/li&gt;
&lt;li&gt;🎴 Flashcards&lt;/li&gt;
&lt;li&gt;❓ Interactive quizzes&lt;/li&gt;
&lt;li&gt;💬 AI tutor&lt;/li&gt;
&lt;li&gt;📝 Revision notes&lt;/li&gt;
&lt;li&gt;📋 Technical specification&lt;/li&gt;
&lt;li&gt;💻 Production-ready code&lt;/li&gt;
&lt;li&gt;🌐 Interactive HTML application&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Instead of consuming information...&lt;/p&gt;

&lt;p&gt;...you're actively learning from it.&lt;/p&gt;




&lt;h2&gt;
  
  
  ✨ A Real Example
&lt;/h2&gt;

&lt;p&gt;Here's what happens after pasting a YouTube video into Voilaa.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Input&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://youtube.com/watch?v=XXXXXXXX
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;Gemini analyzes the transcript.&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;Voilaa generates:&lt;/p&gt;

&lt;p&gt;✅ Interactive HTML application&lt;/p&gt;

&lt;p&gt;✅ Technical specification&lt;/p&gt;

&lt;p&gt;✅ Production-ready source code&lt;/p&gt;

&lt;p&gt;✅ Diagnostic quiz&lt;/p&gt;

&lt;p&gt;✅ Interactive simulation&lt;/p&gt;

&lt;p&gt;✅ Revision notes&lt;/p&gt;

&lt;p&gt;—all from a single YouTube video.&lt;/p&gt;

&lt;p&gt;That moment was when the project shifted from "AI summarizer" to "AI learning platform."&lt;/p&gt;


&lt;h2&gt;
  
  
  🖼️ Dashboard Walkthrough
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F42y5kav1abnr4tmk8b51.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F42y5kav1abnr4tmk8b51.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg1jdnywrdpb96l2lvic9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg1jdnywrdpb96l2lvic9.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The application is divided into several workspaces instead of displaying one long AI response.&lt;/p&gt;
&lt;h2&gt;
  
  
  📄 Render
&lt;/h2&gt;

&lt;p&gt;This is the generated interactive application.&lt;/p&gt;

&lt;p&gt;Instead of reading AI output, users interact with a real web application that visualizes concepts, demonstrates ideas, and guides learning.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqvtwm3w2e7f1wael1lw3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqvtwm3w2e7f1wael1lw3.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  💻 Code
&lt;/h2&gt;

&lt;p&gt;Every generated application includes editable production-ready source code.&lt;/p&gt;

&lt;p&gt;Rather than treating AI as a black box, users can inspect how everything works and build on top of it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffzhavbx0c4dodq77vfh2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffzhavbx0c4dodq77vfh2.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  📑 Specification
&lt;/h2&gt;

&lt;p&gt;Gemini also produces a structured technical specification describing the application's architecture, functionality, and implementation decisions.&lt;/p&gt;

&lt;p&gt;This makes the generated project easier to understand before writing additional code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz3znwaqt5sn8aszx9v34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz3znwaqt5sn8aszx9v34.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  🧠 Assessment
&lt;/h2&gt;

&lt;p&gt;Learning isn't complete without feedback.&lt;/p&gt;

&lt;p&gt;For every generated lesson, Voilaa creates multiple-choice questions that reinforce understanding and encourage active recall.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9kuwd3nqo6l6k463hikf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9kuwd3nqo6l6k463hikf.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h1&gt;
  
  
  🏗 Why I Built It
&lt;/h1&gt;

&lt;p&gt;There are already countless AI tools capable of summarizing content.&lt;/p&gt;

&lt;p&gt;I wasn't interested in building another summarizer.&lt;/p&gt;

&lt;p&gt;Summaries are useful.&lt;/p&gt;

&lt;p&gt;But summaries don't necessarily improve understanding.&lt;/p&gt;

&lt;p&gt;I wanted something that encourages exploration, experimentation, and self-assessment.&lt;/p&gt;

&lt;p&gt;Instead of asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"What did this video say?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I wanted users to ask:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Can I explain this concept back?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That small shift fundamentally changed the way I designed the application.&lt;/p&gt;

&lt;p&gt;Every feature now supports one objective:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transform passive watching into active learning.&lt;/strong&gt;&lt;/p&gt;


&lt;h1&gt;
  
  
  🧩 Technology Stack
&lt;/h1&gt;

&lt;p&gt;The project combines several services into a single workflow.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google Gemini API&lt;/strong&gt; — reasoning, content generation, educational design&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;YouTube Transcript API&lt;/strong&gt; — transcript extraction&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;React&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;TypeScript&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Vite&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Tailwind CSS&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Google AI Studio&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vercel / Cloud Run&lt;/strong&gt; for deployment&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Although the interface looks straightforward, the interesting part happens behind the scenes.&lt;/p&gt;

&lt;p&gt;Everything starts with a single prompt.&lt;/p&gt;
&lt;h1&gt;
  
  
  🛠️ The Prompt That Powers Everything
&lt;/h1&gt;

&lt;p&gt;One of the biggest surprises during this project was realizing that &lt;strong&gt;the quality of the application depended far more on the prompt than on the model itself.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My first version looked something like this:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Build an educational application from this YouTube video.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Technically...&lt;/p&gt;

&lt;p&gt;It worked.&lt;/p&gt;

&lt;p&gt;But the output wasn't very useful.&lt;/p&gt;

&lt;p&gt;Gemini generated a summary, a little HTML, and some generic explanations.&lt;/p&gt;

&lt;p&gt;It felt more like reading an AI response than using an educational product.&lt;/p&gt;

&lt;p&gt;I realized I wasn't giving Gemini enough context about &lt;strong&gt;how it should think&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So instead of asking it to &lt;em&gt;build an app&lt;/em&gt;, I asked it to become an instructional designer.&lt;/p&gt;


&lt;h1&gt;
  
  
  🧠 Prompt Evolution
&lt;/h1&gt;
&lt;h2&gt;
  
  
  Version 1 — Naive Prompt
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create an educational app from this YouTube video.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Problems
&lt;/h3&gt;

&lt;p&gt;❌ Generic summaries&lt;/p&gt;

&lt;p&gt;❌ Weak UI&lt;/p&gt;

&lt;p&gt;❌ Minimal interaction&lt;/p&gt;

&lt;p&gt;❌ Little educational value&lt;/p&gt;

&lt;p&gt;❌ Mostly transcript repetition&lt;/p&gt;


&lt;h2&gt;
  
  
  Version 2 — Structured Prompt
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Build an educational application.

Generate:

• Summary

• Key Concepts

• Quiz

• Notes

• HTML Application
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Improvements
&lt;/h3&gt;

&lt;p&gt;✅ Better organization&lt;/p&gt;

&lt;p&gt;✅ Better summaries&lt;/p&gt;

&lt;p&gt;✅ More useful output&lt;/p&gt;

&lt;p&gt;But...&lt;/p&gt;

&lt;p&gt;The application still felt inconsistent.&lt;/p&gt;

&lt;p&gt;Sometimes the generated HTML looked fantastic.&lt;/p&gt;

&lt;p&gt;Other times it resembled a simple blog page.&lt;/p&gt;

&lt;p&gt;I needed Gemini to reason before writing.&lt;/p&gt;


&lt;h2&gt;
  
  
  Version 3 — Production Prompt
&lt;/h2&gt;

&lt;p&gt;Instead of asking for outputs...&lt;/p&gt;

&lt;p&gt;I started asking for a workflow.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Analyze the transcript as an educational expert.

First identify:

• Primary learning objective

• Audience level

• Difficult concepts

• Prerequisite knowledge

Then generate:

1. Interactive HTML application

2. Technical specification

3. Production-ready code

4. Interactive visualization

5. Diagnostic assessment

6. Concept explanations

7. Responsive interface

Encourage active learning rather than passive reading.

Output must be production-ready.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;That single change dramatically improved the quality of everything the model generated.&lt;/p&gt;

&lt;p&gt;Rather than jumping directly into code generation, Gemini first built an understanding of the material.&lt;/p&gt;

&lt;p&gt;The difference was immediately visible.&lt;/p&gt;


&lt;h1&gt;
  
  
  📊 Prompt Quality Comparison
&lt;/h1&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;V1&lt;/th&gt;
&lt;th&gt;V2&lt;/th&gt;
&lt;th&gt;V3&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Educational Accuracy&lt;/td&gt;
&lt;td&gt;⭐⭐☆☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;UI Quality&lt;/td&gt;
&lt;td&gt;⭐☆☆☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Interactive Features&lt;/td&gt;
&lt;td&gt;⭐☆☆☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code Quality&lt;/td&gt;
&lt;td&gt;⭐⭐☆☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Technical Depth&lt;/td&gt;
&lt;td&gt;⭐⭐☆☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Learning Experience&lt;/td&gt;
&lt;td&gt;⭐⭐☆☆☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐☆&lt;/td&gt;
&lt;td&gt;⭐⭐⭐⭐⭐&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The lesson was simple.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prompt engineering isn't just writing better prompts.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's designing better thinking.&lt;/p&gt;


&lt;h1&gt;
  
  
  🏗️ Architecture
&lt;/h1&gt;

&lt;p&gt;The overall workflow looks like this.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                                 ┌──────────────────────────────┐
                                 │           User               │
                                 │  Paste YouTube URL           │
                                 └──────────────┬───────────────┘
                                                │
                                                ▼
                              ┌────────────────────────────┐
                              │      React + Vite UI       │
                              │    Learning Dashboard      │
                              └──────────────┬─────────────┘
                                             │
                     ┌───────────────────────┼────────────────────────┐
                     │                       │                        │
                     ▼                       ▼                        ▼
        Transcript Extraction        Video Metadata         User Settings
     (YouTube Transcript API)        (YouTube API)       Model Configuration
                     │                       │                        │
                     └──────────────┬────────┴──────────────┬────────┘
                                    ▼
                        ┌──────────────────────────┐
                        │      Prompt Builder      │
                        │ Transcript Context       │
                        │ Learning Objectives      │
                        │ Output Instructions      │
                        └──────────────┬───────────┘
                                       │
                                       ▼
                     ┌────────────────────────────────────┐
                     │         Google Gemini              │
                     │                                    │
                     │ • Educational Reasoning            │
                     │ • Content Generation               │
                     │ • HTML Generation                  │
                     │ • Code Generation                  │
                     │ • Quiz Creation                    │
                     └──────────────┬─────────────────────┘
                                    │
      ┌─────────────────────────────┼────────────────────────────┐
      ▼                             ▼                            ▼
Interactive HTML             Technical Spec              Assessment Quiz
      │                             │                            │
      └──────────────┬──────────────┴──────────────┬─────────────┘
                     ▼                             ▼
             Live Preview                 Source Code Viewer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;One prompt orchestrates the entire workflow.&lt;/p&gt;


&lt;h1&gt;
  
  
  💻 Code Highlight #1 — Extracting the Transcript
&lt;/h1&gt;

&lt;p&gt;Everything begins with the transcript.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;YoutubeTranscript&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;youtube-transcript&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getTranscript&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;videoId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;transcript&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;YoutubeTranscript&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fetchTranscript&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;videoId&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;transcript&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(({&lt;/span&gt; &lt;span class="nx"&gt;text&lt;/span&gt; &lt;span class="p"&gt;})&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt; &lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;This produces a clean body of text that becomes the foundation for every AI-generated feature.&lt;/p&gt;


&lt;h1&gt;
  
  
  💻 Code Highlight #2 — Building the Prompt
&lt;/h1&gt;

&lt;p&gt;Rather than generating a simple summary, the transcript is wrapped inside a structured instructional prompt.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;prompt&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;`
You are an instructional designer.

Using the transcript below:

&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;transcript&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;

Generate:

- Executive Summary
- Learning Objectives
- Interactive HTML Application
- Technical Specification
- Production Ready Code
- Multiple Choice Quiz
- Concept Explanations

Return structured JSON.
`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Giving Gemini clear responsibilities consistently produced higher-quality results than requesting raw outputs.&lt;/p&gt;


&lt;h1&gt;
  
  
  💻 Code Highlight #3 — Calling Gemini
&lt;/h1&gt;

&lt;p&gt;Once the prompt is assembled, the request is straightforward.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;generateContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;That single response becomes the source for every tab inside the application.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interactive Render&lt;/li&gt;
&lt;li&gt;Source Code&lt;/li&gt;
&lt;li&gt;Technical Specification&lt;/li&gt;
&lt;li&gt;Assessment Quiz&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One request powers the complete experience.&lt;/p&gt;


&lt;h1&gt;
  
  
  📈 Performance
&lt;/h1&gt;

&lt;p&gt;I wanted the application to feel responsive enough that users wouldn't lose focus while waiting for AI.&lt;/p&gt;

&lt;p&gt;Here are the typical numbers I observed during development.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Typical Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Transcript Retrieval&lt;/td&gt;
&lt;td&gt;1–3 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini Generation&lt;/td&gt;
&lt;td&gt;4–8 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;End-to-End Processing&lt;/td&gt;
&lt;td&gt;6–12 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generated HTML&lt;/td&gt;
&lt;td&gt;20–80 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Prompt Size&lt;/td&gt;
&lt;td&gt;Depends on transcript length&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generation Cost&lt;/td&gt;
&lt;td&gt;Varies by Gemini model and input/output token counts&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The biggest performance lesson wasn't about rendering speed.&lt;/p&gt;

&lt;p&gt;It was prompt efficiency.&lt;/p&gt;

&lt;p&gt;Removing unnecessary transcript content and keeping the instructions focused consistently reduced latency while producing more reliable outputs.&lt;/p&gt;


&lt;h1&gt;
  
  
  📊 Project at a Glance
&lt;/h1&gt;

&lt;p&gt;By the time the application reached its current version, a single generation typically produced:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📄 Interactive HTML application&lt;/li&gt;
&lt;li&gt;💻 Production-ready source code&lt;/li&gt;
&lt;li&gt;📋 Technical specification&lt;/li&gt;
&lt;li&gt;🧠 Diagnostic quiz&lt;/li&gt;
&lt;li&gt;📝 Learning summary&lt;/li&gt;
&lt;li&gt;🎯 Key concepts&lt;/li&gt;
&lt;li&gt;📚 Revision notes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;—all from a single YouTube URL and one carefully designed prompt.&lt;/p&gt;

&lt;p&gt;That was the moment Voilaa stopped feeling like an AI demo and started feeling like a genuine educational tool.&lt;/p&gt;
&lt;h1&gt;
  
  
  🧠 Lessons Learned
&lt;/h1&gt;

&lt;p&gt;Every side project teaches you something.&lt;/p&gt;

&lt;p&gt;This one completely changed the way I think about building AI applications.&lt;/p&gt;

&lt;p&gt;The biggest surprises weren't technical—they were about product design, prompt engineering, and user experience.&lt;/p&gt;


&lt;h1&gt;
  
  
  ❌ Mistake #1 — Asking Gemini to "Build an App"
&lt;/h1&gt;

&lt;p&gt;My original prompt looked something like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Build an educational application from this YouTube video.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Simple.&lt;/p&gt;

&lt;p&gt;Generic.&lt;/p&gt;

&lt;p&gt;And so was the result.&lt;/p&gt;

&lt;p&gt;Gemini generated a webpage.&lt;/p&gt;

&lt;p&gt;It looked nice.&lt;/p&gt;

&lt;p&gt;But it wasn't actually teaching anything.&lt;/p&gt;

&lt;p&gt;The application summarized information instead of helping users understand it.&lt;/p&gt;
&lt;h3&gt;
  
  
  ✅ What I Changed
&lt;/h3&gt;

&lt;p&gt;Instead of asking Gemini to build software, I gave it a role.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;You are an instructional designer, software architect, and technical educator.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Immediately the output became more structured.&lt;/p&gt;

&lt;p&gt;Instead of writing HTML first, Gemini started reasoning about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Learning objectives&lt;/li&gt;
&lt;li&gt;Audience level&lt;/li&gt;
&lt;li&gt;Difficult concepts&lt;/li&gt;
&lt;li&gt;Knowledge gaps&lt;/li&gt;
&lt;li&gt;Interactive exercises&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The difference was dramatic.&lt;/p&gt;


&lt;h1&gt;
  
  
  ❌ Mistake #2 — Treating AI Like a Black Box
&lt;/h1&gt;

&lt;p&gt;Initially I simply displayed whatever Gemini returned.&lt;/p&gt;

&lt;p&gt;It looked like ChatGPT inside a prettier interface.&lt;/p&gt;

&lt;p&gt;That wasn't enough.&lt;/p&gt;

&lt;p&gt;Users didn't need another chatbot.&lt;/p&gt;

&lt;p&gt;They needed something they could explore.&lt;/p&gt;
&lt;h3&gt;
  
  
  ✅ What I Changed
&lt;/h3&gt;

&lt;p&gt;Instead of displaying one long AI response, I organized the output into dedicated workspaces.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🌐 Interactive Application&lt;/li&gt;
&lt;li&gt;💻 Source Code&lt;/li&gt;
&lt;li&gt;📋 Technical Specification&lt;/li&gt;
&lt;li&gt;🧠 Assessment Quiz&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Breaking the experience into focused views made the application feel much closer to a real development environment.&lt;/p&gt;


&lt;h1&gt;
  
  
  ❌ Mistake #3 — One Giant Prompt
&lt;/h1&gt;

&lt;p&gt;My first production prompt tried to generate everything simultaneously.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Summary&lt;/li&gt;
&lt;li&gt;HTML&lt;/li&gt;
&lt;li&gt;Quiz&lt;/li&gt;
&lt;li&gt;Code&lt;/li&gt;
&lt;li&gt;Documentation&lt;/li&gt;
&lt;li&gt;Explanations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The results varied wildly.&lt;/p&gt;

&lt;p&gt;Sometimes the generated app looked fantastic.&lt;/p&gt;

&lt;p&gt;Other times it barely worked.&lt;/p&gt;
&lt;h3&gt;
  
  
  ✅ What I Changed
&lt;/h3&gt;

&lt;p&gt;I restructured the prompt to mirror how people actually solve problems.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Understand

↓

Analyze

↓

Design

↓

Build

↓

Assess
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Giving Gemini a reasoning process instead of a shopping list consistently improved every output.&lt;/p&gt;


&lt;h1&gt;
  
  
  ❌ Mistake #4 — Designing Around AI
&lt;/h1&gt;

&lt;p&gt;I originally thought the AI would be the product.&lt;/p&gt;

&lt;p&gt;It wasn't.&lt;/p&gt;

&lt;p&gt;The product was the &lt;strong&gt;learning experience&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;AI simply became the engine behind it.&lt;/p&gt;

&lt;p&gt;That mindset changed everything.&lt;/p&gt;

&lt;p&gt;Instead of asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"How can AI generate more?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I started asking:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"How can users learn more?"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That one question influenced every design decision afterward.&lt;/p&gt;


&lt;h1&gt;
  
  
  💡 The Biggest Insight
&lt;/h1&gt;

&lt;p&gt;The breakthrough wasn't discovering a better model.&lt;/p&gt;

&lt;p&gt;It was discovering a better workflow.&lt;/p&gt;

&lt;p&gt;Instead of asking Gemini to immediately generate HTML, I encouraged it to think like multiple specialists at once.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Teacher&lt;/li&gt;
&lt;li&gt;Curriculum designer&lt;/li&gt;
&lt;li&gt;Software architect&lt;/li&gt;
&lt;li&gt;Frontend developer&lt;/li&gt;
&lt;li&gt;Technical writer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each perspective contributed something different to the final application.&lt;/p&gt;

&lt;p&gt;The generated software became noticeably more coherent because the prompt itself mirrored a real product development process.&lt;/p&gt;


&lt;h1&gt;
  
  
  📈 Unexpected Discoveries
&lt;/h1&gt;

&lt;p&gt;Several things surprised me during development.&lt;/p&gt;
&lt;h3&gt;
  
  
  Prompt quality matters more than prompt length.
&lt;/h3&gt;

&lt;p&gt;Adding more instructions didn't always improve the result.&lt;/p&gt;

&lt;p&gt;Adding &lt;strong&gt;better structure&lt;/strong&gt; did.&lt;/p&gt;


&lt;h3&gt;
  
  
  Educational design matters more than UI.
&lt;/h3&gt;

&lt;p&gt;Some of the prettiest interfaces produced the weakest learning experiences.&lt;/p&gt;

&lt;p&gt;Meanwhile, simpler layouts with strong quizzes and interactive explanations consistently felt more valuable.&lt;/p&gt;


&lt;h3&gt;
  
  
  AI isn't the slow part.
&lt;/h3&gt;

&lt;p&gt;Initially I expected generation speed to be the biggest challenge.&lt;/p&gt;

&lt;p&gt;In reality, prompt design and transcript quality had a much greater impact on overall responsiveness and output quality.&lt;/p&gt;


&lt;h1&gt;
  
  
  🚀 What's Next
&lt;/h1&gt;

&lt;p&gt;Voilaa is only the beginning.&lt;/p&gt;

&lt;p&gt;Here are a few features I'm excited to explore next.&lt;/p&gt;
&lt;h2&gt;
  
  
  🎙️ Voice Tutor
&lt;/h2&gt;

&lt;p&gt;Practice concepts by having real conversations with Gemini.&lt;/p&gt;


&lt;h2&gt;
  
  
  📚 Personalized Learning Paths
&lt;/h2&gt;

&lt;p&gt;Adapt future lessons based on previous quiz performance.&lt;/p&gt;


&lt;h2&gt;
  
  
  🧠 Spaced Repetition
&lt;/h2&gt;

&lt;p&gt;Automatically revisit concepts before they're forgotten.&lt;/p&gt;


&lt;h2&gt;
  
  
  📄 Export Options
&lt;/h2&gt;

&lt;p&gt;Generate downloadable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PDF study guides&lt;/li&gt;
&lt;li&gt;Markdown notes&lt;/li&gt;
&lt;li&gt;Interactive presentations&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  👥 Collaborative Learning
&lt;/h2&gt;

&lt;p&gt;Allow multiple learners to explore the same lesson together.&lt;/p&gt;


&lt;h2&gt;
  
  
  🌍 Multi-language Support
&lt;/h2&gt;

&lt;p&gt;Generate localized learning experiences using Gemini's multilingual capabilities.&lt;/p&gt;


&lt;h1&gt;
  
  
  🔮 Future Architecture
&lt;/h1&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
YouTube Video
       │
       ▼
Transcript Extraction
       │
       ▼
Google Gemini
       │
       ▼
Interactive Learning App
       │
       ▼
Voice Tutor
       │
       ▼
Adaptive Learning Engine
       │
       ▼
Progress Tracking
       │
       ▼
Personal Knowledge Graph

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  My long-term vision isn't to summarize educational videos.
&lt;/h2&gt;

&lt;p&gt;It's to transform every educational video into an interactive classroom.&lt;/p&gt;


&lt;h1&gt;
  
  
  🌐 Try It Yourself
&lt;/h1&gt;
&lt;h2&gt;
  
  
  🚀 Live Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Voilaa&lt;/strong&gt;&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body flex items-center justify-between"&gt;
        &lt;a href="https://voilaaa.vercel.app/" rel="noopener noreferrer" class="c-link fw-bold flex items-center"&gt;
          &lt;span class="mr-2"&gt;voilaaa.vercel.app&lt;/span&gt;
          

        &lt;/a&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;






&lt;h1&gt;
  
  
  ❤️ Final Thoughts
&lt;/h1&gt;

&lt;p&gt;When I started this project, I thought I was building an AI-powered YouTube summarizer.&lt;/p&gt;

&lt;p&gt;Somewhere along the way, it became something much more interesting.&lt;/p&gt;

&lt;p&gt;I wasn't trying to summarize knowledge anymore.&lt;/p&gt;

&lt;p&gt;I was trying to transform knowledge into an experience.&lt;/p&gt;

&lt;p&gt;That shift changed how I approached every part of the application—from prompt engineering and interface design to assessment and feedback.&lt;/p&gt;

&lt;p&gt;Google Gemini proved capable of much more than generating text.&lt;/p&gt;

&lt;p&gt;With the right structure, it can analyze complex information, organize it into meaningful learning paths, generate working software, and create interactive educational experiences from a single source of truth.&lt;/p&gt;

&lt;p&gt;For me, that's the most exciting part of this project.&lt;/p&gt;

&lt;p&gt;Not replacing learning.&lt;/p&gt;

&lt;p&gt;Amplifying it.&lt;/p&gt;

&lt;p&gt;If AI can transform a YouTube transcript into an interactive classroom today, imagine what tomorrow's educational tools will look like.&lt;/p&gt;

&lt;p&gt;I'd love to hear your thoughts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How would you improve this workflow?&lt;/li&gt;
&lt;li&gt;What features would make this more useful for your own learning?&lt;/li&gt;
&lt;li&gt;If you've built something with Gemini, what surprised you the most?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for reading, and happy building! 🚀&lt;/p&gt;




&lt;h2&gt;
  
  
  🏷️ Tags
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;#deved&lt;/code&gt; &lt;code&gt;#learngoogleaistudio&lt;/code&gt; &lt;code&gt;#gemini&lt;/code&gt; &lt;code&gt;#ai&lt;/code&gt; &lt;code&gt;#webdev&lt;/code&gt;&lt;/p&gt;

</description>
      <category>deved</category>
      <category>learngoogleaistudio</category>
      <category>ai</category>
      <category>gemini</category>
    </item>
  </channel>
</rss>
