!! This is a proof of concept and will be changing frequently. Please fork it.
A Raycast extension that leverages Fabric AI to analyze YouTube videos, providing transcripts, summaries, and various analysis patterns.
This tool integrates Raycast with Fabric AI to provide intelligent analysis of YouTube videos. It can:
- Extract and cache video transcripts
- Apply various AI analysis patterns
- Work with current browser tabs or direct URLs
- Cache results for improved performance
- Install Go from https://go.dev/doc/install
- Install Fabric:
go install github.com/danielmiessler/fabric@latest- Copy the script files to your Raycast Scripts directory
- Make them executable:
chmod +x path/to/youtube-transcript-analysis.sh
chmod +x path/to/update-youtube-fabric-patterns.sh- Fetches YouTube video transcripts
- Applies AI analysis patterns
- Caches results (30 days for transcripts, 7 days for patterns)
- Supports multiple browsers
- Validates YouTube URLs
- Copies results to clipboard
- Updates available analysis patterns
- Maintains pattern configurations
- Auto-formats pattern names for display
- Make sure Fabric has a default model set
fabric -d - Make sure you can retrive a YouTube video transcript and analyze it with Fabric
fabric -y https://www.youtube.com/watch?v=wPEyyigh10g | fabric -p extract_wisdom - Open Raycast
- Run "Update YouTube Raycast Patterns"
- Run "Reload Script Directories"
- Type "YouTube Analysis"
- Choose an analysis pattern (optional)
- Enter a URL or use current browser tab
- Results will be copied to clipboard
- Transcripts:
~/.cache/raycast/youtube/transcripts - Pattern Results:
~/.cache/raycast/youtube/patterns - Fabric Patterns:
~/.config/fabric/patterns
The scripts handle various error cases:
- Invalid URLs
- Private/unavailable videos
- Timeouts (15s for both transcript and pattern processing)
- Rate limiting
- Missing dependencies
- Ensure Go is installed and in PATH
- Verify Fabric installation:
which fabric - Check browser permissions in System Settings
- Review debug output if needed
This project requires Fabric AI access and proper configuration of the Fabric patterns directory at ~/.config/fabric/patterns
