{"id":18533529,"url":"https://github.com/ray-1337/youtube-discord-embed","last_synced_at":"2025-04-09T15:31:22.212Z","repository":{"id":200261209,"uuid":"704985019","full_name":"ray-1337/youtube-discord-embed","owner":"ray-1337","description":"Embed YouTube video on Discord, inspired by FixTweet.","archived":false,"fork":false,"pushed_at":"2025-04-01T00:33:54.000Z","size":320,"stargazers_count":30,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T01:30:15.176Z","etag":null,"topics":["discord","embed","fixtweet","next","oembed","opengraph","twitter","youtube"],"latest_commit_sha":null,"homepage":"https://yt.cdn.13373333.one/watch?v=dOZBUnaBN6A","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ray-1337.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-14T17:44:12.000Z","updated_at":"2025-04-01T00:33:57.000Z","dependencies_parsed_at":"2023-10-16T08:44:08.188Z","dependency_job_id":"417b624b-ce8d-437d-b2fe-395509613b95","html_url":"https://github.com/ray-1337/youtube-discord-embed","commit_stats":null,"previous_names":["ray-1337/youtube-discord-embed"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ray-1337%2Fyoutube-discord-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ray-1337%2Fyoutube-discord-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ray-1337%2Fyoutube-discord-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ray-1337%2Fyoutube-discord-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ray-1337","download_url":"https://codeload.github.com/ray-1337/youtube-discord-embed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248057943,"owners_count":21040666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","embed","fixtweet","next","oembed","opengraph","twitter","youtube"],"created_at":"2024-11-06T19:11:57.180Z","updated_at":"2025-04-09T15:31:22.202Z","avatar_url":"https://github.com/ray-1337.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Discord Embed\nEmbed YouTube video on Discord by pulling off YouTube video, and make it playable through embeds with OpenGraph/Twitter meta tags.\n\nThis project is highly inspired by [FixTweet](https://fixupx.com), and powered with [Next.js](https://nextjs.org)/[Vercel](https://vercel.app).\n\n![A final version of YouTube Discord Embed](https://repository-images.githubusercontent.com/704985019/9cc921f6-9f13-4c2b-98b1-001ff738f405)\n\n# Setup\n- Run `pnpm install` to install the dependencies.\n- Edit `.env.example` to `.env`\n- Edit `COOKIE_BYPASS` value by:\n  - following the [instructions here](https://github.com/distubejs/ytdl-core?tab=readme-ov-file#how-to-get-cookies),\n  - [stringify the JSON value](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify),\n  - and, paste the value.\n- Then, use:\n  - `pnpm dev` for development.\n  - `pnpm build` and then `pnpm start` for production-ready.\n\n# Error Handling\nIn a week or two, YouTube starts to show an error such as '`Sign in to confirm you’re not a bot`'.\n\nYou can handle this by:\n- Open your browser (a browser where you previously export those cookies above), login to your YouTube account, and starts by doing something such as watching a YouTube video.\n- Or, reset the `COOKIE_BYPASS` key value by redoing the **Setup** above.\n\n# Self-host\nYou can fork the repository, host it somewhere else, and change the domain.\n\n# Cloud-hosted domain\nI also hosted the project for free on the cloud. You can use it by replacing `youtube.com/watch` or `youtu.be` with my domain.\n\n- **`youtube.com/watch`**, normal route:\n  - https://yt.cdn.13373333.one/watch?v=dQw4w9WgXcQ\n  - https://yourdomain.com/watch?v=dQw4w9WgXcQ\n- **`youtu.be`**, YouTube URL shortener route:\n  - https://yt.cdn.13373333.one/dQw4w9WgXcQ\n  - https://yourdomain.com/dQw4w9WgXcQ\n- **`youtube.com/shorts`**, shorts route:\n  - https://yt.cdn.13373333.one/shorts/b1hnji5jPRE\n  - https://yourdomain.com/shorts/b1hnji5jPRE\n\n## License\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fray-1337%2Fyoutube-discord-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fray-1337%2Fyoutube-discord-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fray-1337%2Fyoutube-discord-embed/lists"}