Skip to content

Interactive YouTube extension built with React, Tailwind CSS, and Plasmo. It integrates with the OpenAI API to enable real-time video chat, providing summaries, Q&A, and context-aware responses directly on YouTube.

License

Notifications You must be signed in to change notification settings

PaoloJN/youtube-ai-extension

Repository files navigation

Screenshot 2023-10-29 at 13 39 22

YouTube AI Extension

YouTube Chat Extension allows you to chat directly with YouTube videos, providing a unique interactive experience.

Demo Video · Features · Roadmap · Installation · Acknowledgments


Features

  • Seamlessly chat with YouTube videos in real-time.
  • Get video summaries, ask questions, and receive detailed explanations.
  • User-friendly interface integrated directly into YouTube.
  • Support for multiple languages and context-aware responses.

Roadmap

  • Support Ollama
  • RAG for longer videos ?
  • More features

Installation

To install and run the YouTube Chat Extension locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/PaoloJN/youtube-ai-extension.git
    
    cd youtube-chat-extension
  2. Add your OpenAI API key. Replace YOUR_API_KEY with your actual key in the files chat.ts and completion.ts

    const openai = new OpenAI({
      apiKey: "YOUR_API_KEY"
    })
  3. Install the dependencies and build the project:

    pnpm install
    pnpm run build
  4. Load the extension into Chrome:

    1. Open Chrome and navigate to chrome://extensions/.
    2. Enable "Developer mode" by toggling the switch in the top right corner.
    3. Click "Load unpacked" and select the build/chrome-mv3-dev directory from the project you just built.
  5. Open YouTube and start chatting with videos! :)

The extension does not support the new YouTube layout. To revert to the old layout, use the uBlock Origin extension. The extension should then work correctly.

Why This License Change?

I believe in the principles of open-source software (OSS)—creating tools and sharing knowledge to help others innovate and learn. However, one of my biggest frustrations is seeing people take OSS works, monetize them without permission, and give nothing back to the project or community that made it possible.

Why this matters:

  • It undermines the spirit of OSS: Open-source is built on collaboration and trust. When people monetize others' OSS projects without contributing back, they exploit that trust.
  • It discourages creators: Many of us work hard on these projects in our spare time. Seeing them turned into profit machines by others, without recognition or support, is deeply disheartening.
  • It impacts innovation: OSS thrives when contributors and users feel appreciated and supported. Exploitation discourages creators from sharing their work.

This is why I’ve updated the license to restrict unauthorized monetization. If you appreciate this project and want to use it commercially, I encourage you to contribute or reach out for a commercial license. Let’s build a community that respects creators and fosters innovation.

License

Effective immediately, this project is licensed under the GNU Affero General Public License v3 (AGPLv3).

Key License Updates

  • Non-Commercial Use Only: The source code can be used and modified freely for non-commercial purposes.
  • No Monetization of Forks: Commercial use, redistribution, or monetization of this code or its derivatives is prohibited without prior written permission from the original author.
  • Old / New Forks Must Comply: Any forks or clones of this project must adhere to the AGPLv3 license and the restrictions on monetization.

Important: If you wish to use this project for commercial purposes or have any questions, please contact paolo.j.nessim@gmail.com.

Acknowledgments

This project wouldn't be possible without the following resources:

About

Interactive YouTube extension built with React, Tailwind CSS, and Plasmo. It integrates with the OpenAI API to enable real-time video chat, providing summaries, Q&A, and context-aware responses directly on YouTube.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published