plaudo-yt 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +107 -2
- package/TERMS-NOTICE.md +25 -0
- package/dist/cli/commands/capture.d.ts +51 -0
- package/dist/cli/commands/capture.js +456 -0
- package/dist/cli/commands/db.d.ts +2 -0
- package/dist/cli/commands/db.js +60 -0
- package/dist/cli/commands/doctor.d.ts +9 -0
- package/dist/cli/commands/doctor.js +212 -0
- package/dist/cli/commands/export.d.ts +23 -0
- package/dist/cli/commands/export.js +235 -0
- package/dist/cli/commands/init.d.ts +2 -0
- package/dist/cli/commands/init.js +97 -0
- package/dist/cli/commands/login.d.ts +4 -0
- package/dist/cli/commands/login.js +264 -0
- package/dist/cli/commands/logout.d.ts +2 -0
- package/dist/cli/commands/logout.js +45 -0
- package/dist/cli/commands/mcp.d.ts +8 -0
- package/dist/cli/commands/mcp.js +50 -0
- package/dist/cli/commands/reparse.d.ts +2 -0
- package/dist/cli/commands/reparse.js +37 -0
- package/dist/cli/commands/serve.d.ts +4 -0
- package/dist/cli/commands/serve.js +318 -0
- package/dist/cli/context.d.ts +69 -0
- package/dist/cli/context.js +60 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +3 -0
- package/dist/cli/main.d.ts +19 -0
- package/dist/cli/main.js +100 -0
- package/dist/cli/notice-format.d.ts +18 -0
- package/dist/cli/notice-format.js +52 -0
- package/dist/cli/registry.d.ts +36 -0
- package/dist/cli/registry.js +113 -0
- package/dist/cli/version.d.ts +1 -0
- package/dist/cli/version.js +10 -0
- package/dist/core/avatar.d.ts +73 -0
- package/dist/core/avatar.js +116 -0
- package/dist/core/browser/attach.d.ts +30 -0
- package/dist/core/browser/attach.js +52 -0
- package/dist/core/browser/chrome.d.ts +18 -0
- package/dist/core/browser/chrome.js +65 -0
- package/dist/core/browser/driver.d.ts +61 -0
- package/dist/core/browser/driver.js +5 -0
- package/dist/core/browser/index.d.ts +11 -0
- package/dist/core/browser/index.js +10 -0
- package/dist/core/browser/launch.d.ts +64 -0
- package/dist/core/browser/launch.js +198 -0
- package/dist/core/browser/playwright-driver.d.ts +5 -0
- package/dist/core/browser/playwright-driver.js +112 -0
- package/dist/core/browser/playwright-worker.d.ts +1 -0
- package/dist/core/browser/playwright-worker.js +130 -0
- package/dist/core/browser/profile.d.ts +44 -0
- package/dist/core/browser/profile.js +64 -0
- package/dist/core/browser/session.d.ts +61 -0
- package/dist/core/browser/session.js +131 -0
- package/dist/core/browser/tab-policy.d.ts +5 -0
- package/dist/core/browser/tab-policy.js +7 -0
- package/dist/core/browser/terms.d.ts +21 -0
- package/dist/core/browser/terms.js +43 -0
- package/dist/core/browser/transport.d.ts +48 -0
- package/dist/core/browser/transport.js +129 -0
- package/dist/core/browser/urls.d.ts +14 -0
- package/dist/core/browser/urls.js +57 -0
- package/dist/core/capture/dates.d.ts +31 -0
- package/dist/core/capture/dates.js +52 -0
- package/dist/core/capture/dry-run.d.ts +29 -0
- package/dist/core/capture/dry-run.js +37 -0
- package/dist/core/capture/engine.d.ts +103 -0
- package/dist/core/capture/engine.js +543 -0
- package/dist/core/capture/index.d.ts +8 -0
- package/dist/core/capture/index.js +8 -0
- package/dist/core/capture/pacing.d.ts +30 -0
- package/dist/core/capture/pacing.js +47 -0
- package/dist/core/capture/planner.d.ts +165 -0
- package/dist/core/capture/planner.js +273 -0
- package/dist/core/capture/presets.d.ts +47 -0
- package/dist/core/capture/presets.js +134 -0
- package/dist/core/capture/scope.d.ts +33 -0
- package/dist/core/capture/scope.js +72 -0
- package/dist/core/capture/store.d.ts +34 -0
- package/dist/core/capture/store.js +96 -0
- package/dist/core/catalog/generated.d.ts +6 -0
- package/dist/core/catalog/generated.js +1349 -0
- package/dist/core/catalog/index.d.ts +27 -0
- package/dist/core/catalog/index.js +56 -0
- package/dist/core/catalog/insights.d.ts +29 -0
- package/dist/core/catalog/insights.js +62 -0
- package/dist/core/catalog/labels.d.ts +4 -0
- package/dist/core/catalog/labels.js +74 -0
- package/dist/core/catalog/traffic.d.ts +24 -0
- package/dist/core/catalog/traffic.js +42 -0
- package/dist/core/comments/index.d.ts +2 -0
- package/dist/core/comments/index.js +2 -0
- package/dist/core/comments/parse.d.ts +58 -0
- package/dist/core/comments/parse.js +180 -0
- package/dist/core/comments/request.d.ts +49 -0
- package/dist/core/comments/request.js +51 -0
- package/dist/core/connect.d.ts +59 -0
- package/dist/core/connect.js +184 -0
- package/dist/core/image-download.d.ts +28 -0
- package/dist/core/image-download.js +119 -0
- package/dist/core/insights/channel-parse.d.ts +76 -0
- package/dist/core/insights/channel-parse.js +305 -0
- package/dist/core/insights/channel-request.d.ts +73 -0
- package/dist/core/insights/channel-request.js +256 -0
- package/dist/core/insights/index.d.ts +4 -0
- package/dist/core/insights/index.js +4 -0
- package/dist/core/insights/parse.d.ts +61 -0
- package/dist/core/insights/parse.js +134 -0
- package/dist/core/insights/request.d.ts +34 -0
- package/dist/core/insights/request.js +58 -0
- package/dist/core/parsers/account-switcher.d.ts +26 -0
- package/dist/core/parsers/account-switcher.js +132 -0
- package/dist/core/parsers/errors.d.ts +9 -0
- package/dist/core/parsers/errors.js +14 -0
- package/dist/core/parsers/index.d.ts +6 -0
- package/dist/core/parsers/index.js +6 -0
- package/dist/core/parsers/join.d.ts +98 -0
- package/dist/core/parsers/join.js +179 -0
- package/dist/core/parsers/lookups.d.ts +38 -0
- package/dist/core/parsers/lookups.js +101 -0
- package/dist/core/parsers/table.d.ts +37 -0
- package/dist/core/parsers/table.js +201 -0
- package/dist/core/parsers/versions.d.ts +18 -0
- package/dist/core/parsers/versions.js +17 -0
- package/dist/core/query/batch.d.ts +30 -0
- package/dist/core/query/batch.js +48 -0
- package/dist/core/query/builder.d.ts +85 -0
- package/dist/core/query/builder.js +177 -0
- package/dist/core/query/client.d.ts +72 -0
- package/dist/core/query/client.js +240 -0
- package/dist/core/query/errors.d.ts +7 -0
- package/dist/core/query/errors.js +40 -0
- package/dist/core/query/index.d.ts +6 -0
- package/dist/core/query/index.js +5 -0
- package/dist/core/query/transport.d.ts +24 -0
- package/dist/core/query/transport.js +4 -0
- package/dist/core/query/types.d.ts +169 -0
- package/dist/core/query/types.js +2 -0
- package/dist/core/session/auth.d.ts +7 -0
- package/dist/core/session/auth.js +25 -0
- package/dist/core/session/cookies.d.ts +62 -0
- package/dist/core/session/cookies.js +185 -0
- package/dist/core/session/from-browser.d.ts +16 -0
- package/dist/core/session/from-browser.js +42 -0
- package/dist/core/session/http-transport.d.ts +36 -0
- package/dist/core/session/http-transport.js +161 -0
- package/dist/core/session/index.d.ts +7 -0
- package/dist/core/session/index.js +7 -0
- package/dist/core/session/redact.d.ts +5 -0
- package/dist/core/session/redact.js +14 -0
- package/dist/core/session/rotate.d.ts +32 -0
- package/dist/core/session/rotate.js +109 -0
- package/dist/core/session/store.d.ts +88 -0
- package/dist/core/session/store.js +164 -0
- package/dist/core/thumbnail.d.ts +63 -0
- package/dist/core/thumbnail.js +93 -0
- package/dist/core/util/dates.d.ts +10 -0
- package/dist/core/util/dates.js +42 -0
- package/dist/core/util/process-alive.d.ts +5 -0
- package/dist/core/util/process-alive.js +15 -0
- package/dist/dashboard/404.html +1 -0
- package/dist/dashboard/__next.__PAGE__.txt +49 -0
- package/dist/dashboard/__next._tree.txt +4 -0
- package/dist/dashboard/_next/static/chunks/00b_mhfw_4bns.js +1 -0
- package/dist/dashboard/_next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/dist/dashboard/_next/static/chunks/0e7ik8mc7h1q_.js +1 -0
- package/dist/dashboard/_next/static/chunks/0jdk56kfmqlph.js +1 -0
- package/dist/dashboard/_next/static/chunks/0kvw5pmfzrs53.js +1 -0
- package/dist/dashboard/_next/static/chunks/0rljsnn1k5cwe.js +1 -0
- package/dist/dashboard/_next/static/chunks/12zzghlqdi8c5.js +1 -0
- package/dist/dashboard/_next/static/chunks/130ji-9g0yqmh.js +1 -0
- package/dist/dashboard/_next/static/chunks/1epiely1wggb1.js +1 -0
- package/dist/dashboard/_next/static/chunks/1ew-75vfigq7o.js +1 -0
- package/dist/dashboard/_next/static/chunks/1kb_hgwtfl3rf.js +1 -0
- package/dist/dashboard/_next/static/chunks/1ohw1h687al9p.js +1 -0
- package/dist/dashboard/_next/static/chunks/2a3h7hdj0v6mq.js +1 -0
- package/dist/dashboard/_next/static/chunks/2j_72nl_m0jls.js +1 -0
- package/dist/dashboard/_next/static/chunks/2mg3r6g4ft-wg.css +1 -0
- package/dist/dashboard/_next/static/chunks/2mq-pu4_mzyzw.js +1 -0
- package/dist/dashboard/_next/static/chunks/2nfdghy0oijv_.js +1 -0
- package/dist/dashboard/_next/static/chunks/2yumeplyom0ho.js +1 -0
- package/dist/dashboard/_next/static/chunks/3b2e2hlmp0878.js +31 -0
- package/dist/dashboard/_next/static/chunks/3f59deov-4q1z.js +1 -0
- package/dist/dashboard/_next/static/chunks/3nywioopbfd3b.js +1 -0
- package/dist/dashboard/_next/static/chunks/3rknix09-i7iz.js +1 -0
- package/dist/dashboard/_next/static/chunks/41ddnqyptpema.css +1 -0
- package/dist/dashboard/_next/static/chunks/44c5n5qfmm7ak.js +22 -0
- package/dist/dashboard/_next/static/chunks/turbopack-2lihmh2pdnr2x.js +1 -0
- package/dist/dashboard/_next/static/media/icon.40xy95--ln73k.svg +1 -0
- package/dist/dashboard/_next/static/wZOsiCNCh4Vth2vLvxSsz/_buildManifest.js +11 -0
- package/dist/dashboard/_next/static/wZOsiCNCh4Vth2vLvxSsz/_clientMiddlewareManifest.js +1 -0
- package/dist/dashboard/_next/static/wZOsiCNCh4Vth2vLvxSsz/_ssgManifest.js +1 -0
- package/dist/dashboard/_not-found/__next._not-found.__PAGE__.txt +36 -0
- package/dist/dashboard/_not-found/__next._tree.txt +4 -0
- package/dist/dashboard/_not-found.html +1 -0
- package/dist/dashboard/_not-found.txt +31 -0
- package/dist/dashboard/audience/__next._tree.txt +4 -0
- package/dist/dashboard/audience/__next.audience.__PAGE__.txt +50 -0
- package/dist/dashboard/audience.html +1 -0
- package/dist/dashboard/audience.txt +45 -0
- package/dist/dashboard/comments/__next._tree.txt +4 -0
- package/dist/dashboard/comments/__next.comments.__PAGE__.txt +49 -0
- package/dist/dashboard/comments.html +1 -0
- package/dist/dashboard/comments.txt +44 -0
- package/dist/dashboard/fonts/plus-jakarta-sans-OFL.txt +93 -0
- package/dist/dashboard/fonts/plus-jakarta-sans-latin-wght-normal.woff2 +0 -0
- package/dist/dashboard/history/__next._tree.txt +5 -0
- package/dist/dashboard/history/__next.history.__PAGE__.txt +47 -0
- package/dist/dashboard/history.html +1 -0
- package/dist/dashboard/history.txt +42 -0
- package/dist/dashboard/icon.svg +1 -0
- package/dist/dashboard/index.html +1 -0
- package/dist/dashboard/index.txt +47 -0
- package/dist/dashboard/retention/__next._tree.txt +5 -0
- package/dist/dashboard/retention/__next.retention.__PAGE__.txt +48 -0
- package/dist/dashboard/retention.html +1 -0
- package/dist/dashboard/retention.txt +43 -0
- package/dist/dashboard/traffic/__next._tree.txt +4 -0
- package/dist/dashboard/traffic/__next.traffic.__PAGE__.txt +44 -0
- package/dist/dashboard/traffic.html +1 -0
- package/dist/dashboard/traffic.txt +39 -0
- package/dist/dashboard/video/__next._tree.txt +5 -0
- package/dist/dashboard/video/__next.video.__PAGE__.txt +55 -0
- package/dist/dashboard/video.html +1 -0
- package/dist/dashboard/video.txt +50 -0
- package/dist/demo/audience.d.ts +8 -0
- package/dist/demo/audience.js +111 -0
- package/dist/demo/build.d.ts +54 -0
- package/dist/demo/build.js +205 -0
- package/dist/demo/channels.d.ts +4 -0
- package/dist/demo/channels.js +742 -0
- package/dist/demo/comments-hollowshaft.d.ts +3 -0
- package/dist/demo/comments-hollowshaft.js +407 -0
- package/dist/demo/comments-wobbly.d.ts +3 -0
- package/dist/demo/comments-wobbly.js +92 -0
- package/dist/demo/index.d.ts +7 -0
- package/dist/demo/index.js +6 -0
- package/dist/demo/profile.d.ts +17 -0
- package/dist/demo/profile.js +206 -0
- package/dist/demo/traffic.d.ts +13 -0
- package/dist/demo/traffic.js +217 -0
- package/dist/demo/types.d.ts +55 -0
- package/dist/demo/types.js +1 -0
- package/dist/demo/viewers.d.ts +2 -0
- package/dist/demo/viewers.js +64 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/mcp/launch.d.ts +45 -0
- package/dist/mcp/launch.js +95 -0
- package/dist/mcp/protocol.d.ts +76 -0
- package/dist/mcp/protocol.js +183 -0
- package/dist/mcp/schema.d.ts +31 -0
- package/dist/mcp/schema.js +66 -0
- package/dist/mcp/server.d.ts +22 -0
- package/dist/mcp/server.js +53 -0
- package/dist/mcp/stdio.d.ts +15 -0
- package/dist/mcp/stdio.js +22 -0
- package/dist/mcp/tools.d.ts +25 -0
- package/dist/mcp/tools.js +975 -0
- package/dist/mcp/values.d.ts +72 -0
- package/dist/mcp/values.js +158 -0
- package/dist/server/app.d.ts +38 -0
- package/dist/server/app.js +819 -0
- package/dist/server/capture-hook.d.ts +64 -0
- package/dist/server/capture-hook.js +25 -0
- package/dist/server/capture-info.d.ts +63 -0
- package/dist/server/capture-info.js +66 -0
- package/dist/server/github-stars.d.ts +21 -0
- package/dist/server/github-stars.js +48 -0
- package/dist/server/index.d.ts +10 -0
- package/dist/server/index.js +10 -0
- package/dist/server/login-hook.d.ts +105 -0
- package/dist/server/login-hook.js +35 -0
- package/dist/server/security.d.ts +47 -0
- package/dist/server/security.js +150 -0
- package/dist/server/server.d.ts +20 -0
- package/dist/server/server.js +50 -0
- package/dist/server/settings-hook.d.ts +53 -0
- package/dist/server/settings-hook.js +29 -0
- package/dist/server/setup-hook.d.ts +28 -0
- package/dist/server/setup-hook.js +22 -0
- package/dist/server/static.d.ts +11 -0
- package/dist/server/static.js +114 -0
- package/dist/server/summary.d.ts +28 -0
- package/dist/server/summary.js +68 -0
- package/dist/server/token.d.ts +12 -0
- package/dist/server/token.js +44 -0
- package/dist/server/validate.d.ts +39 -0
- package/dist/server/validate.js +138 -0
- package/dist/service/capture-service.d.ts +65 -0
- package/dist/service/capture-service.js +294 -0
- package/dist/service/index.d.ts +5 -0
- package/dist/service/index.js +5 -0
- package/dist/service/login-service.d.ts +159 -0
- package/dist/service/login-service.js +525 -0
- package/dist/service/profile-lock.d.ts +32 -0
- package/dist/service/profile-lock.js +104 -0
- package/dist/service/scheduler.d.ts +72 -0
- package/dist/service/scheduler.js +181 -0
- package/dist/service/settings-service.d.ts +13 -0
- package/dist/service/settings-service.js +35 -0
- package/dist/service/setup-service.d.ts +14 -0
- package/dist/service/setup-service.js +26 -0
- package/dist/storage/active-run.d.ts +40 -0
- package/dist/storage/active-run.js +65 -0
- package/dist/storage/avatars.d.ts +42 -0
- package/dist/storage/avatars.js +49 -0
- package/dist/storage/checks.d.ts +54 -0
- package/dist/storage/checks.js +101 -0
- package/dist/storage/comments.d.ts +97 -0
- package/dist/storage/comments.js +139 -0
- package/dist/storage/db.d.ts +25 -0
- package/dist/storage/db.js +1 -0
- package/dist/storage/images.d.ts +6 -0
- package/dist/storage/images.js +7 -0
- package/dist/storage/index.d.ts +12 -0
- package/dist/storage/index.js +12 -0
- package/dist/storage/ingest.d.ts +175 -0
- package/dist/storage/ingest.js +695 -0
- package/dist/storage/migrate.d.ts +31 -0
- package/dist/storage/migrate.js +77 -0
- package/dist/storage/migrations/0001_init.sql +196 -0
- package/dist/storage/migrations/0002_capture.sql +9 -0
- package/dist/storage/migrations/0003_channel_insights.sql +71 -0
- package/dist/storage/migrations/0004_channel_avatars.sql +14 -0
- package/dist/storage/migrations/0005_comments.sql +31 -0
- package/dist/storage/migrations/0006_video_thumbnails.sql +12 -0
- package/dist/storage/migrations/0007_capture_checks.sql +13 -0
- package/dist/storage/migrations/0008_run_owner.sql +5 -0
- package/dist/storage/queries.d.ts +202 -0
- package/dist/storage/queries.js +377 -0
- package/dist/storage/runs.d.ts +60 -0
- package/dist/storage/runs.js +93 -0
- package/dist/storage/sqlite-node.d.ts +13 -0
- package/dist/storage/sqlite-node.js +93 -0
- package/dist/storage/thumbnails.d.ts +43 -0
- package/dist/storage/thumbnails.js +66 -0
- package/dist/storage/views.d.ts +216 -0
- package/dist/storage/views.js +494 -0
- package/dist/testing/demo-avatar.d.ts +17 -0
- package/dist/testing/demo-avatar.js +197 -0
- package/dist/testing/demo.d.ts +81 -0
- package/dist/testing/demo.js +331 -0
- package/dist/testing/fake-channel-tabs.d.ts +7 -0
- package/dist/testing/fake-channel-tabs.js +483 -0
- package/dist/testing/fake-comments.d.ts +26 -0
- package/dist/testing/fake-comments.js +318 -0
- package/dist/testing/fake-ids.d.ts +6 -0
- package/dist/testing/fake-ids.js +14 -0
- package/dist/testing/fake-profile.d.ts +123 -0
- package/dist/testing/fake-profile.js +258 -0
- package/dist/testing/fake-studio.d.ts +154 -0
- package/dist/testing/fake-studio.js +946 -0
- package/dist/testing/fake-thumbnails.d.ts +15 -0
- package/dist/testing/fake-thumbnails.js +18 -0
- package/dist/testing/fake-transport.d.ts +18 -0
- package/dist/testing/fake-transport.js +28 -0
- package/dist/testing/index.d.ts +9 -0
- package/dist/testing/index.js +9 -0
- package/dist/testing/random.d.ts +5 -0
- package/dist/testing/random.js +19 -0
- package/package.json +76 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Plaudo contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,108 @@
|
|
|
1
|
-
|
|
1
|
+
<img src="docs/logo.svg" alt="plaudo-yt logo" width="72">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# youtube-advanced-suite
|
|
4
|
+
|
|
5
|
+
**Your YouTube analytics: local, fast, and readable by your AI agents.**
|
|
6
|
+
|
|
7
|
+
<a href="docs/demo.mp4"><img src="docs/demo.gif" alt="plaudo-yt dashboard demo: switching periods and views with no loading" width="800"></a>
|
|
8
|
+
|
|
9
|
+
YouTube Studio is slow to load and slow to click through. The public YouTube Analytics API leaves out part of what Studio shows, such as thumbnail impressions and click-through rate, and new and returning viewers. Neither is built for AI agents.
|
|
10
|
+
|
|
11
|
+
`plaudo-yt` fixes all three. It captures your own channel's analytics in the background, with your own Google sign-in, and keeps them in a SQLite database on your machine. Every view of the local dashboard opens at once, the numbers build up into a history you can browse, compare and export, and your AI agent can read them through the built-in MCP server. Part of [Plaudo](https://plaudo.dev).
|
|
12
|
+
|
|
13
|
+
> **Unofficial.** This project is not made, endorsed or supported by YouTube or Google. YouTube is a trademark of Google LLC. YouTube's Terms of Service restrict access to the service by automated means, which may cover this use. Read [TERMS-NOTICE.md](TERMS-NOTICE.md): you accept it before the first capture, and you carry any consequence for your account.
|
|
14
|
+
|
|
15
|
+
Status: version 0.1.0. macOS is the tested platform; CI runs the tests on Linux and Windows too, but captures there are not tested.
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
You need Node.js 24.13 or newer, Google Chrome (or its path in `PLAUDO_CHROME`) and a YouTube channel you can open in Studio.
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm install -g plaudo-yt
|
|
23
|
+
plaudo-yt serve # opens the dashboard on http://127.0.0.1:4319/
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
To build it from this repository instead, see [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
27
|
+
|
|
28
|
+
The dashboard opens on a welcome screen. Click **Add your channel**, accept the notice, and sign in to Studio by hand in the Chrome window that opens (pick the channel if your account manages several). A first Full capture then starts, with its progress in the top bar. **Add a channel...** in the channel menu adds another one.
|
|
29
|
+
|
|
30
|
+
To look around first, `plaudo-yt serve --demo` shows two invented channels on port 4320, without touching your data.
|
|
31
|
+
|
|
32
|
+
From a terminal instead:
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
plaudo-yt init # shows the notice and asks you to type yes
|
|
36
|
+
plaudo-yt login --alias main # sign in by hand in the Chrome window; saves the session, then runs a Full capture
|
|
37
|
+
plaudo-yt capture # later captures: Quick over plain HTTP, no browser
|
|
38
|
+
plaudo-yt serve
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`login` starts the Full capture by itself once the session is saved; Ctrl+C stops the capture and keeps the sign-in, and `--no-capture` skips it. For another channel, sign it in on a profile of its own (`plaudo-yt login --profile <name> --alias <name>`). `plaudo-yt doctor` says what is missing or wrong, and every command has `--help`.
|
|
42
|
+
|
|
43
|
+
## The dashboard
|
|
44
|
+
|
|
45
|
+
The channel's views are Overview, Traffic, Retention, Audience, Comments and History; each video has its own page with Summary, Retention, Traffic, Comments and History tabs. Periods are 7, 28, 90 or 365 days, all stored days or a custom range. Every table downloads as CSV.
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+

|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+

|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
## Captures
|
|
58
|
+
|
|
59
|
+
A capture sends Studio the requests its own pages send, over plain HTTP with the session saved at sign-in, and opens no browser. It only reads: it changes nothing on your channel. Each day captured adds to the history; a second capture on the same day replaces that day.
|
|
60
|
+
|
|
61
|
+
| Preset | Reads |
|
|
62
|
+
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
63
|
+
| `channel` | Channel totals, daily numbers and breakdowns, every video's daily numbers, Studio's Audience tab |
|
|
64
|
+
| `quick` (default) | Plus retention and insight tabs of recent videos and of up to 10 never asked, the Overview and Content tabs, comments, thumbnails |
|
|
65
|
+
| `standard` | Plus per-video breakdowns, traffic source details such as search terms, the Research tab, retention of every video without one |
|
|
66
|
+
| `full` | Plus every breakdown the compatibility table vouches for, more comments and more thumbnails |
|
|
67
|
+
|
|
68
|
+
`plaudo-yt capture --help` has the details and options, and `--dry-run` prints the plan without sending anything. A sign-in (`plaudo-yt login`, or **Add your channel** in the dashboard) starts a Full capture of the channel by itself; on a larger channel it stops at the 300-request cap as partial, and `plaudo-yt capture --resume` continues it.
|
|
69
|
+
|
|
70
|
+
A capture started in a terminal shows in an open dashboard as running, with its progress, like one started from the page. Ctrl+C, a closed terminal or a kill stops a terminal capture as cancelled; a run left running by a process that ended without stopping it (a crash, a power cut) is marked failed by the next capture or `serve`. Both can be continued with `plaudo-yt capture --resume`.
|
|
71
|
+
|
|
72
|
+
While `plaudo-yt serve` runs, it captures each signed-in channel on its own with the Quick preset every 6 hours; set Off, 12 or 24 hours in the Settings menu, or start it with `--no-auto-capture`. It pauses for a channel that needs a new sign-in and waits longer after repeated failures.
|
|
73
|
+
|
|
74
|
+
## Connect your AI
|
|
75
|
+
|
|
76
|
+
`plaudo-yt mcp` is a read-only [MCP](https://modelcontextprotocol.io) server, so an AI assistant can answer questions from the captured data; "Connect your AI (MCP)" in the Settings menu shows how to add it. Read [docs/mcp.md](docs/mcp.md) first: it says what your AI client does with the answers.
|
|
77
|
+
|
|
78
|
+
## Where your data lives
|
|
79
|
+
|
|
80
|
+
| Platform | Default data folder |
|
|
81
|
+
| -------- | -------------------------------------------------------------------- |
|
|
82
|
+
| macOS | `~/Library/Application Support/plaudo-youtube` |
|
|
83
|
+
| Windows | `%APPDATA%\plaudo-youtube` |
|
|
84
|
+
| Linux | `$XDG_DATA_HOME/plaudo-youtube` (or `~/.local/share/plaudo-youtube`) |
|
|
85
|
+
|
|
86
|
+
`--home <dir>` or `PLAUDO_HOME` picks another folder. It holds the database, the settings, the server's token, and per profile a Chrome profile and the saved Google session ([layout](docs/architecture.md#data-folder)). `plaudo-yt export` writes any table or view as CSV, JSON or NDJSON.
|
|
87
|
+
|
|
88
|
+
`plaudo-yt logout --profile <name>` deletes a saved session and keeps the history. To delete everything, stop `serve`, close the tool's Chrome window and delete the folder. The Google session stays valid until you sign out of your Google account.
|
|
89
|
+
|
|
90
|
+
## Privacy and security
|
|
91
|
+
|
|
92
|
+
Comments hold other people's names and words: they stay in your database and `export` leaves them out. The security model, what leaves your machine and how to report a vulnerability are in [SECURITY.md](SECURITY.md).
|
|
93
|
+
|
|
94
|
+
## Known limits
|
|
95
|
+
|
|
96
|
+
- When Studio changes, captures can come back partial or empty until the parsers are updated; the raw answers are kept, so `plaudo-yt reparse` can read them again.
|
|
97
|
+
- Unique, new and returning viewers are not in the totals (Studio's query answers zero for them); unique viewers show only where a video's insight card plots them.
|
|
98
|
+
- Long tables (search terms, suggesting videos, cities) hold only Studio's top rows; the dashboard says when one is cut off.
|
|
99
|
+
- A run sends at most 300 requests by default and stops on sign-out or repeated failures; `plaudo-yt capture --resume` continues it.
|
|
100
|
+
- How long a saved session lasts is not measured yet: expect to sign in again now and then.
|
|
101
|
+
|
|
102
|
+
## Roadmap
|
|
103
|
+
|
|
104
|
+
A desktop app around the same server, autoposting as a separate module with its own confirmation step, and optional use of the official YouTube Analytics and Reporting APIs with your own OAuth client.
|
|
105
|
+
|
|
106
|
+
## Development and licence
|
|
107
|
+
|
|
108
|
+
Setup, tests and the fixture rule are in [CONTRIBUTING.md](CONTRIBUTING.md), the code map in [docs/architecture.md](docs/architecture.md), changes in [CHANGELOG.md](CHANGELOG.md). MIT licence, see [LICENSE](LICENSE). The software is provided as is, without warranty of any kind.
|
package/TERMS-NOTICE.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Before you use plaudo-yt
|
|
2
|
+
|
|
3
|
+
plaudo-yt is an unofficial tool. It is not made, endorsed or supported by YouTube or Google. YouTube is a trademark of Google LLC.
|
|
4
|
+
|
|
5
|
+
## What the tool does on your behalf
|
|
6
|
+
|
|
7
|
+
You sign in to YouTube Studio yourself, in a separate Chrome window with the tool's own profile; the tool never types your password or automates the sign-in. If your Google account manages several channels, it reads their names and handles (not your account's name or email) so you can pick one. It then saves the Google session to a file in its data folder that only your user account can read. Anyone who can read that file, or a backup of the folder, can act as your Google account until the session ends. `plaudo-yt logout` deletes the file; signing out of your Google account ends the session everywhere.
|
|
8
|
+
|
|
9
|
+
Captures use that session over plain HTTP, without a browser window, to ask Studio for the same analytics and published comments its own pages show, and the tool refreshes the session's cookies the way a browser does. It only reads: it changes nothing on your channel. What it reads stays in a database on your computer, the session is sent only to YouTube Studio and Google's sign-in service, and nothing is sent to the project. An AI client you connect to `plaudo-yt mcp` sends what it reads there, which can include comments and their authors' names, to its model provider.
|
|
10
|
+
|
|
11
|
+
## Automatic captures
|
|
12
|
+
|
|
13
|
+
While `plaudo-yt serve` runs, it also captures on its own, on by default: a Quick capture of each signed-in channel every 6 hours, with the same limits as a capture you start. These wait until you have accepted this notice, pause for a channel that needs a new sign-in, and back off after repeated failures. To turn them off, pick Off under Auto-capture in the dashboard's Settings menu, or start the server with `plaudo-yt serve --no-auto-capture`.
|
|
14
|
+
|
|
15
|
+
## What you should know
|
|
16
|
+
|
|
17
|
+
YouTube's Terms of Service restrict access to the service by automated means, which may cover reading your own analytics with your own session. The project cannot tell you whether your use is acceptable: read the Terms of Service and decide for your own channel. You, not the project, carry any consequence for your account.
|
|
18
|
+
|
|
19
|
+
The tool paces its requests, caps each run, and stops when Studio answers as signed out or keeps refusing; leave those limits in place. It depends on how Studio works today and may capture less, or nothing, after Studio changes.
|
|
20
|
+
|
|
21
|
+
## No warranty
|
|
22
|
+
|
|
23
|
+
The software is provided under the MIT licence (see LICENSE), as is, without warranty of any kind.
|
|
24
|
+
|
|
25
|
+
By typing yes when `plaudo-yt init` asks, by running it with `--yes`, or by clicking Accept in the dashboard, you confirm that you have read this notice and accept it.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type CaptureResult } from "../../core/capture/engine.ts";
|
|
2
|
+
import { type Preset } from "../../core/capture/presets.ts";
|
|
3
|
+
import { type CaptureRequest } from "../../core/capture/scope.ts";
|
|
4
|
+
import { type CaptureMode } from "../../core/connect.ts";
|
|
5
|
+
import type { Db } from "../../storage/db.ts";
|
|
6
|
+
import { type CommandContext, ExitCode } from "../context.ts";
|
|
7
|
+
/** The request for a preset with the default video selection, as `capture --preset <name>` with no other option. */
|
|
8
|
+
export declare function presetRequest(preset: Preset): CaptureRequest;
|
|
9
|
+
/** `--mode`, checked against `--cdp`. */
|
|
10
|
+
export declare function modeOption(ctx: CommandContext): CaptureMode | null;
|
|
11
|
+
export interface ChannelCaptureOptions {
|
|
12
|
+
db: Db;
|
|
13
|
+
/** What to capture; null with `resume`. */
|
|
14
|
+
request: CaptureRequest | null;
|
|
15
|
+
/** Continue a run instead: the one with `runId`, else the newest unfinished run (of `channelId` when given). */
|
|
16
|
+
resume?: {
|
|
17
|
+
runId?: number;
|
|
18
|
+
} | null;
|
|
19
|
+
/** The stored channel Studio must show, or null for the channel Studio shows. */
|
|
20
|
+
channelId: string | null;
|
|
21
|
+
/** Null: the profile stored with the resumed run's channel, else the global `--profile` (main by default). */
|
|
22
|
+
profile: string | null;
|
|
23
|
+
mode: CaptureMode | null;
|
|
24
|
+
cdpUrl?: string | null;
|
|
25
|
+
chromePath?: string | null;
|
|
26
|
+
maxRequests?: number;
|
|
27
|
+
concurrency?: number;
|
|
28
|
+
delayMs?: number;
|
|
29
|
+
keepOpen?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface ChannelCaptureOutcome {
|
|
32
|
+
/** The engine's result; null when the capture stopped on an unexpected error. */
|
|
33
|
+
result: CaptureResult | null;
|
|
34
|
+
/** The run, once one was stored. */
|
|
35
|
+
runId: number | null;
|
|
36
|
+
channelId: string | null;
|
|
37
|
+
mode: string;
|
|
38
|
+
/** The unexpected error's message, already printed. */
|
|
39
|
+
error: string | null;
|
|
40
|
+
exitCode: ExitCode;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The capture `capture` and `login` run: takes the profile, connects, checks the channel, stores its picture and runs
|
|
44
|
+
* the engine, with progress on stderr and the summary lines on stdout. Problems before the run (the profile in use,
|
|
45
|
+
* signed out, another channel) throw CliError. Any other error is printed as `capture failed:` with the run and the
|
|
46
|
+
* resume command, the run is ended as failed, and the outcome carries exit code 1. Ctrl+C, SIGTERM and SIGHUP end the
|
|
47
|
+
* run as cancelled.
|
|
48
|
+
*/
|
|
49
|
+
export declare function captureChannel(ctx: CommandContext, o: ChannelCaptureOptions): Promise<ChannelCaptureOutcome>;
|
|
50
|
+
declare const _default: import("../registry.ts").Command;
|
|
51
|
+
export default _default;
|