Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ ytAi Public

ytAi is a lightweight command-line tool for analyzing yt videos with OpenAI. It automatically downloads the video transcript, processes it using a predefined assistant, and saves the result locally.

License

Notifications You must be signed in to change notification settings

a6b8/ytAi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytAi

            __     ___     _ 
   __  __  / /_   /   |   (_)
  / / / / / __/  / /| |  / / 
 / /_/ / / /_   / ___ | / /  
 \__, /  \__/  /_/  |_|/_/   
/____/                       

ytAi is a command-line tool that helps you analyze yt videos using OpenAI.
It downloads the video transcript, sends it to a pre-defined assistant, and stores the result locally on your machine in a Markdown file.


🚀 Features

This CLI tool offers the following capabilities:

  • 🧠 Manage assistants (create/delete)
  • 📥 Download transcripts from yt videos
  • 🤖 Analyze transcripts using OpenAI assistants

⚡ Quickstart

To get started, create a .env file containing your OpenAI credentials and model settings.

Example .env file:

OPENAI_API_KEY=your-api-key

The CLI also expects a configuration directory located at ~/.ytGPT by default.
Inside this folder, you can define one or more assistants, each with its own instruction and user input files.


📁 Folder Structure

📁 .ytGPT
├── 📄 cred.env
└── 📁 assistants
    └── 📁 {{assistant_name}}
        ├── 📁 instruction
        │   └── 📝 instruction.txt
        └── 📁 user_input
            ├── 📝 {{user_name1}}.txt
            └── 📝 {{user_name2}}.txt

Once set up, you can link the CLI globally and start using it:

npm link
yt

🧪 CLI

📂 Manage Assistants
├── 🆕 Create Assistant
│   └── ⚠️ Must be properly stored in the correct folder structure
├── ❌ Delete Assistant
│   └── 🗑️ Removes the assistant from OpenAI

📂 Transcript
└── 📥 Download yt video transcripts

📂 Transcript and AI
└── 🤖 Download transcripts and analyze them using pre-defined assistants

📚 Table of Contents

📄 License

This project is licensed under the MIT License.
See the LICENSE file for more information.

About

ytAi is a lightweight command-line tool for analyzing yt videos with OpenAI. It automatically downloads the video transcript, processes it using a predefined assistant, and saves the result locally.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published