@unified-live/youtube 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -4
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="../../apps/docs/public/logo.svg" alt="unified-live logo" width="48" height="48" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# @unified-live/youtube
|
|
2
6
|
|
|
3
|
-
YouTube
|
|
7
|
+
YouTube Data API v3 plugin for the unified-live SDK. Provides quota-based rate limiting, API key auth, and search support.
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/@unified-live/youtube)
|
|
10
|
+
[](../../LICENSE)
|
|
4
11
|
|
|
5
12
|
## Install
|
|
6
13
|
|
|
@@ -8,6 +15,19 @@ YouTube platform plugin for the unified-live SDK.
|
|
|
8
15
|
pnpm add @unified-live/core @unified-live/youtube
|
|
9
16
|
```
|
|
10
17
|
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { UnifiedClient } from "@unified-live/core";
|
|
22
|
+
import { createYouTubePlugin } from "@unified-live/youtube";
|
|
23
|
+
|
|
24
|
+
const client = UnifiedClient.create({
|
|
25
|
+
plugins: [createYouTubePlugin({ apiKey: process.env.YOUTUBE_API_KEY! })],
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const content = await client.resolve("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
|
|
29
|
+
```
|
|
30
|
+
|
|
11
31
|
## Development
|
|
12
32
|
|
|
13
33
|
```bash
|
|
@@ -18,6 +38,4 @@ pnpm test:run # Run tests
|
|
|
18
38
|
|
|
19
39
|
## Docs
|
|
20
40
|
|
|
21
|
-
|
|
22
|
-
- [Plugins](../../docs/plan/unified-live-sdk/02_PLUGINS.md)
|
|
23
|
-
- [Client API](../../docs/plan/unified-live-sdk/03_CLIENT_API.md)
|
|
41
|
+
See the [full documentation](https://sugar-cat7.github.io/unified-live).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unified-live/youtube",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "YouTube Data API v3 plugin for unified-live SDK — quota-based rate limiting, API key auth",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"live-streaming",
|
|
@@ -35,10 +35,11 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
38
|
+
"access": "public",
|
|
39
|
+
"provenance": true
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@unified-live/core": "0.0
|
|
42
|
+
"@unified-live/core": "0.1.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@types/node": "20.19.25",
|