extract-youtube 1.0.428 → 1.0.430
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 +16 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -566,36 +566,35 @@ bring the video back. Auto-fill reads the YouTube Data API (or oEmbed with no
|
|
|
566
566
|
key) and then your own `suggest` hook, and never overwrites what the admin
|
|
567
567
|
typed.
|
|
568
568
|
|
|
569
|
-
Full guides: [video grid and list](
|
|
570
|
-
[library admin API](
|
|
571
|
-
[custom fields](
|
|
572
|
-
[admin components](
|
|
569
|
+
Full guides: [video grid and list](./site/content/docs/react/video-grid.mdx),
|
|
570
|
+
[library admin API](./site/content/docs/admin/library-api.mdx),
|
|
571
|
+
[custom fields](./site/content/docs/admin/custom-fields.mdx) and
|
|
572
|
+
[admin components](./site/content/docs/admin/admin-components.mdx).
|
|
573
573
|
|
|
574
574
|
## Live Demo and Storybook
|
|
575
575
|
|
|
576
|
-
**Live demo: [youtube.js.org](https://youtube.js.org)
|
|
576
|
+
**Docs: [youtube.js.org](https://youtube.js.org)** · Live demo: [youtube.js.org/demo](https://youtube.js.org/demo) · Storybook: [youtube.js.org/storybook](https://youtube.js.org/storybook/)
|
|
577
577
|
|
|
578
|
-
[`
|
|
579
|
-
|
|
580
|
-
the floating player with captions from `/api/transcript
|
|
581
|
-
`/api/library`, and a Storybook with a story for every
|
|
582
|
-
`/storybook/`.
|
|
578
|
+
[`site/`](./site) runs all of this on one Cloudflare Worker: the docs at
|
|
579
|
+
`/docs`, the live demo at `/demo` (the library grid and list, the admin
|
|
580
|
+
screens, the floating player with captions from `/api/transcript`), the
|
|
581
|
+
library API at `/api/library`, and a Storybook with a story for every
|
|
582
|
+
component at `/storybook/`.
|
|
583
583
|
|
|
584
584
|
```bash
|
|
585
585
|
bun install # from the monorepo root
|
|
586
|
-
cd
|
|
587
|
-
bun run dev #
|
|
586
|
+
cd packages/extract-youtube/site
|
|
587
|
+
bun run dev # docs, demo and /api on one port
|
|
588
588
|
bun run storybook # Storybook on :6006
|
|
589
|
-
bun run build && bunx wrangler deploy #
|
|
589
|
+
bun run build && bunx wrangler deploy # docs, demo, Worker and Storybook in one deploy
|
|
590
590
|
```
|
|
591
591
|
|
|
592
592
|
With no secrets set it runs as a sandbox (an in-memory library anyone can
|
|
593
593
|
edit, reset per Worker isolate). Set `ADMIN_TOKEN` to require a token, bind a
|
|
594
|
-
D1 database as `DB` to persist, and set `YOUTUBE_API_KEY` for resync.
|
|
595
|
-
|
|
596
|
-
built from template-fumadocs and also deployed to Workers.
|
|
594
|
+
D1 database as `DB` to persist, and set `YOUTUBE_API_KEY` for resync. CI
|
|
595
|
+
deploys the site on every push that touches it.
|
|
597
596
|
|
|
598
|
-
The demo's `
|
|
597
|
+
The demo's `site/components/demo/SpeedButton.tsx` is the worked example of an app-supplied
|
|
599
598
|
custom control, passed in through `<FloatingYouTubePlayer extraControls />`.
|
|
600
599
|
|
|
601
600
|
## Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "extract-youtube",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.430",
|
|
4
4
|
"description": "Fast, no-browser serverless-optimized YouTube transcript extractor, with a video library admin API (D1 or in-memory) and React UI: a floating YouTube player, a synced-transcript modal, video grid/list components and library admin screens",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|