Skip to content

VidQuery - YouTube Q&A Extension

A Chromium extension that lets YouTube viewers ask Gemini questions about the video they are watching, using its visible metadata, transcript, and the viewer's own API key.

Role
Product designer and browser-extension engineer
Scope
Browser integration, provider workflow, privacy, and release delivery
Status
GitHub release available

Problem

Viewers often scrub through long YouTube videos to find one specific answer. The page already exposes metadata and a transcript that could answer the question directly. Without a way to query that context, the viewer spends time searching instead of learning.

Constraints

  1. C1

    Answer quality is limited by whether a transcript exists and how accurate it is.

  2. C2

    Gemini calls require the user's own API key and send bounded video context to an external provider.

  3. C3

    Changes to YouTube routes or page structure, along with extension permission boundaries, can break extraction.

Architecture

A content layer extracts metadata and transcripts from the open YouTube page and passes them to a React extension interface. A validated context envelope and a Gemini adapter form the provider boundary, while browser storage holds settings and a companion web app documents and distributes the Manifest V3 package.

01

Page integration

Content scripts detect YouTube routes and extract the visible metadata and transcript.

02

Extension interface

A React interface collects the question and tracks request state.

03

Provider boundary

A validated envelope bounds the transcript and context before a Gemini adapter sends it.

04

Storage and delivery

Browser storage and permissions hold the user's settings, and a release workflow builds the Manifest V3 package that the companion web app documents and distributes.

Decisions

D1

Use visible page metadata and transcripts

Downloading or processing the media itself would add cost, permissions, and complexity. The page already exposes enough text to answer most questions.

D2

Keep API credentials user-supplied

Running a shared proxy would ease onboarding but widen the service and data boundary. Asking users for their own key adds friction and keeps that boundary small.

D3

Separate extension and website workspaces

The product runtime and the public documentation can ship on their own schedules without coupling their builds.

Contribution

  • Built YouTube route detection and extraction of transcripts and metadata.
  • Implemented Gemini-backed question answering with schema validation and bounded context.
  • Added local handling of credentials and settings, along with explicit privacy guidance.
  • Created release automation and quality gates for both the extension and the website.

Outcomes

  • Users can ask questions about an open YouTube video.
  • Answers draw on the available transcript and visible metadata.
  • Users keep control of their own provider credential.
  • Maintainers can produce installable GitHub release artifacts.

Product screenshot

VidQuery landing page with the headline 'The answer is already in the video' beside a YouTube page with the extension open
VidQuery answers questions from the open YouTube video's visible metadata and transcript, using the viewer's own Gemini key.

Verified stack

  • WXT
  • TypeScript
  • React 19
  • Chrome Manifest V3
  • Chrome Extensions API
  • Tailwind CSS
  • Gemini API
  • Zod
  • TanStack Start
  • Vitest
  • React Testing Library
  • GitHub Actions
  • CI/CD
  • Git
  • System Design

Working through something similar?

Share your challenge, scope, and timeline to start a focused conversation.