搜索插件、代码仓与 APP 分类

GitHub 代码仓cdavis-code/yt_workspace

yt

一个 Dart 库中的多个 YouTube API

yt 项目封面
星标
12
复刻
3
最近推送(UTC)
2026年5月25日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

yt Workspace

Native Dart interface to multiple YouTube REST APIs including the Data and Live Streaming API.

pub package License: MIT

Packages

This workspace contains multiple related packages:

Package Description Version
yt Core Dart library for YouTube Data and Live Streaming APIs pub package
yt_cli CLI tool for YouTube APIs 2.2.6
yt_js JavaScript/TypeScript bindings for web and Node.js 2.2.6
yt_mcp MCP server for AI assistant integration 2.2.6
yt_mcp_js MCP server compiled to JavaScript for Node.js 2.2.6

Quick Start

Core Library (Dart/Flutter)
dependencies:
  yt: ^2.2.6+1
import 'package:yt/yt.dart';

final yt = Yt.withOAuth();
final playlists = await yt.playlists.list(channelId: 'YOUR_CHANNEL_ID');
CLI Tool
dart pub global activate yt_cli
yt --help
JavaScript/TypeScript
npm install yt_js
MCP Server (AI Integration)
dart pub global activate yt_mcp

Features

  • YouTube Data API: Channels, Videos, Playlists, Search, Comments, Thumbnails
  • YouTube Live Streaming API: Live Broadcasts, Streams, Live Chat
  • Multi-platform: Works with Dart CLI, Flutter (mobile, web, desktop)
  • CLI Tool: Command-line interface for all supported APIs
  • JavaScript Bindings: Use YouTube APIs from web and Node.js
  • MCP Server: AI assistant integration via Model Context Protocol

Documentation

Development

Setup
# Get dependencies for all packages
melos bootstrap

# Or manually
dart pub get
Build
# Run build_runner for code generation
melos run build

# Analyze all packages
melos run analyze

# Format all packages
melos run format
Testing
melos run test

Contributing

Any help from the open-source community is always welcome and needed:

  • Found an issue? Please fill a bug report with details.
  • Need a feature? Open a feature request with use cases.
  • Are you a developer? Fix a bug and send a pull request.
  • Are you using and liking the project? Promote it or make a donation.

License

MIT License - see LICENSE for details.


Buy me a coffee

cdavis-code GitHub avatar
GitHub 作者

cdavis-code ↗

语言DartTypeScriptShellRubyJavaScript

分类

使用的依赖

依赖清单 1 项

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗