{"id":49311103,"url":"https://github.com/1chooo/embed-card","last_synced_at":"2026-04-26T12:33:06.153Z","repository":{"id":352126641,"uuid":"1211077164","full_name":"1chooo/embed-card","owner":"1chooo","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-21T00:41:06.000Z","size":263,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T02:40:26.084Z","etag":null,"topics":["embed-card","npm","react-tweet","reddit-embed"],"latest_commit_sha":null,"homepage":"https://1chooo.com/embed-card","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1chooo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-15T03:34:02.000Z","updated_at":"2026-04-21T01:05:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/1chooo/embed-card","commit_stats":null,"previous_names":["1chooo/social-media-embed","1chooo/embed-card"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/1chooo/embed-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fembed-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fembed-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fembed-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fembed-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1chooo","download_url":"https://codeload.github.com/1chooo/embed-card/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1chooo%2Fembed-card/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["embed-card","npm","react-tweet","reddit-embed"],"created_at":"2026-04-26T12:33:05.704Z","updated_at":"2026-04-26T12:33:06.143Z","avatar_url":"https://github.com/1chooo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# embed-card\n\nURL embed cards for **YouTube, X, Reddit, Vimeo, Google Maps**, and a link-preview fallback—usable from **React** or as a **web component**. This repo is a **pnpm + Turborepo** monorepo: the publishable package lives in `packages/embed-card`, and `apps/web` is the [live demo and docs](https://1chooo.com/embed-card). For hostname rules, URL patterns, renderer types (iframe vs Reddit client preview), and how to customize, see the docs page [Supported platforms](https://1chooo.com/embed-card/docs/platforms).\n\n**Requirements:** [Node](https://nodejs.org/) 20+ and [pnpm](https://pnpm.io/) 9 (see `packageManager` in the root `package.json`).\n\n## Workspace layout\n\n```txt\napps/web/          Next.js site + docs playground (URL samples, preview, snippet copy)\npackages/embed-card/   npm package: embed cards + providers\npackages/ui/           Shared shadcn/ui\nexamples/              Standalone apps (Next, Vite+React, Vue, Svelte, vanilla)\n```\n\n## Install \u0026 quick start (React)\n\n```bash\npnpm add embed-card\n```\n\n```tsx\nimport { EmbedCard } from \"embed-card\"\n\nexport function Demo() {\n  return \u003cEmbedCard url=\"https://www.youtube.com/watch?v=dQw4w9WgXcQ\" /\u003e\n}\n```\n\n**Other entry points:** `embed-card/manual` (resolve/render without the full card UI), `embed-card/web-component` (custom element + `registerEmbedCard()`), `embed-card/next-themes` (`ThemedEmbedCard` — forwards site theme from [`next-themes`](https://github.com/pacocoursey/next-themes)). See `packages/embed-card` and [`examples/`](examples/) for more.\n\n## What the package exposes\n\n- `EmbedCard` — styled card for React / Next.js (`\"use client\"` where needed)\n- `ThemedEmbedCard` — same props as `EmbedCard`, from `embed-card/next-themes`, for apps that already use `next-themes`\n- `registerEmbedCard()` / custom element — use without React\n- `resolveEmbed()` and provider helpers — built-ins plus custom `EmbedProvider`s (also re-exported on the main entry for convenience)\n\n## Monorepo commands\n\n```bash\npnpm install\npnpm dev        # docs app (web) only\npnpm build\npnpm lint\npnpm typecheck\npnpm format\n```\n\nRun a single workspace:\n\n```bash\npnpm --filter web dev\n```\n\nPublish the `embed-card` package (maintainers): `pnpm publish:embed-card` from the repo root.\n\n## License\n\n`embed-card` is published under the [MIT License](packages/embed-card/LICENSE).\n\n![npm downloads](https://33fa1ur95-jz5ocwq7r-1chooo.vercel.app/api/npm/chart?package=embed-card\u0026period=7d\u0026color=%232563eb\u0026width=800\u0026height=300\u0026theme=light)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1chooo%2Fembed-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1chooo%2Fembed-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1chooo%2Fembed-card/lists"}