{"id":17684533,"url":"https://github.com/sujjeee/tweet-card","last_synced_at":"2025-05-07T22:29:12.635Z","repository":{"id":248686801,"uuid":"829403012","full_name":"sujjeee/tweet-card","owner":"sujjeee","description":"Minimal Tweet Card built with Tailwind CSS","archived":false,"fork":false,"pushed_at":"2024-09-15T19:52:43.000Z","size":665,"stargazers_count":30,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T14:58:08.593Z","etag":null,"topics":["nextjs","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"https://tweetcard.vercel.app","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/sujjeee.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}},"created_at":"2024-07-16T11:05:29.000Z","updated_at":"2025-03-20T08:37:03.000Z","dependencies_parsed_at":"2024-08-26T05:48:16.903Z","dependency_job_id":"496bf8e5-648a-455d-88a1-405935571373","html_url":"https://github.com/sujjeee/tweet-card","commit_stats":null,"previous_names":["sujjeee/tweet-card"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Ftweet-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Ftweet-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Ftweet-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujjeee%2Ftweet-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujjeee","download_url":"https://codeload.github.com/sujjeee/tweet-card/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252964386,"owners_count":21832681,"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":["nextjs","tailwindcss","typescript"],"created_at":"2024-10-24T10:23:47.154Z","updated_at":"2025-05-07T22:29:12.612Z","avatar_url":"https://github.com/sujjeee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Tweet Card component built with [React Tweet](https://react-tweet.vercel.app/) and [TailwindCSS](https://tailwindcss.com/).\n\n\u003ca href=\"https://tweetcard.vercel.app/\" target=\"_blank\"\u003e\n  \u003cimg src=\"https://tweetcard.vercel.app/opengraph-image.png\" alt=\"Minimal Tweet Card\" /\u003e\n\u003c/a\u003e\n\n## Props\n\nTweet card component accepts the following props:\n\n- `tweetId` of the tweet, which can be obtained from the tweet url.\n- `metrics` boolean to show tweet metrics. (Default is true).\n- `media` boolean to show tweet media. (Default is true).\n- `timestamp` boolean to show tweet timestamp. (Default is true).\n- `scale` controls the scale of the tweet content within the card. (Default is 0.7).\n\n## Usage\n\n1. Install the `react-tweet` npm package.\n\n2. Visit [this URL](https://github.com/sujjeee/tweet-card/blob/main/src/components/tweet-card.tsx) and copy the code.\n\n   - If you are using `shadcn`, you are good to go. Otherwise, you need to add `tailwind-merge`. Check the code [here](https://github.com/sujjeee/tweet-card/blob/main/src/lib/utils.ts).\n\n3. Paste the `\u003cTweetCard\u003e` component into your project:\n\n   ```jsx\n   import React from \"react\"\n   import { TweetCard } from \"./path-to-your-tweet-card-component\"\n\n   export const App = () =\u003e {\n     const tweetId = \"1234567890\"\n     return \u003cTweetCard tweetId={tweetId} /\u003e\n   }\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujjeee%2Ftweet-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujjeee%2Ftweet-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujjeee%2Ftweet-card/lists"}