JSPM

pi-youtube-transcript

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q80103F
  • License MIT

Pi extension to fetch YouTube video transcripts

Package Exports

  • pi-youtube-transcript
  • pi-youtube-transcript/index.ts

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pi-youtube-transcript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pi-youtube-transcript

A pi extension that fetches YouTube video transcripts via the youtube-transcript library.

Install

pi install npm:pi-youtube-transcript

Usage

The extension registers a youtube_transcript tool that pi agents can call automatically when you ask about a YouTube video's content.

Example prompt:

Use youtube_transcript to summarize https://youtube.com/watch?v=dQw4w9WgXcQ

Supported URL formats

  • https://youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://youtube.com/shorts/VIDEO_ID
  • https://www.youtube.com/live/VIDEO_ID
  • Bare 11-character video IDs

Language

By default the tool returns the first available transcript. To request a specific language, the agent will pass a lang parameter (ISO language code like "en", "es", "fr").

License

MIT