{"id":17459229,"url":"https://github.com/genesis331/twittercard","last_synced_at":"2025-03-02T15:32:21.951Z","repository":{"id":37632453,"uuid":"500279525","full_name":"genesis331/twittercard","owner":"genesis331","description":"Twittercard creates beautiful Twitter tweet images. ","archived":false,"fork":false,"pushed_at":"2023-01-02T04:56:18.000Z","size":335,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-05T12:18:41.491Z","etag":null,"topics":["docker","javascript","nodejs","twitter"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/genesis331.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-06T03:32:03.000Z","updated_at":"2022-10-19T13:52:29.000Z","dependencies_parsed_at":"2023-02-01T01:45:15.421Z","dependency_job_id":null,"html_url":"https://github.com/genesis331/twittercard","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genesis331%2Ftwittercard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genesis331%2Ftwittercard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genesis331%2Ftwittercard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genesis331%2Ftwittercard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genesis331","download_url":"https://codeload.github.com/genesis331/twittercard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":220245881,"owners_count":16617600,"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":["docker","javascript","nodejs","twitter"],"created_at":"2024-10-18T04:47:30.807Z","updated_at":"2024-10-18T04:47:31.405Z","avatar_url":"https://github.com/genesis331.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\nTwittercard creates beautiful Twitter tweet images. \n\n# Development\nThis section describes the process for running the application on a local environment.\n\n### Getting Started\nYou'll need NodeJS to run the app. To install NodeJS, [get the installer from nodejs.org](https://nodejs.org).\n\nOnce you've installed Node.js (which includes the popular `npm` package manager), launch a Terminal and run the following commands:\n\n```sh\ngit clone https://github.com/genesis331/twittercard.git\nnpm install\nnpm start\n```\nCreate an `.env` file and include your Twitter API Authorization Bearer Token, following the format provided below.\n```\nTWITTER_AUTH_TOKEN={YOUR_TOKEN_HERE}\n```\n\u003e Do not include the curly braces!\n\nVisit [localhost:3000](http://localhost:3000) in your browser.\n\nWhen you're ready to stop your local server, type \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eC\u003c/kbd\u003e in your terminal window.\n\n# Usage\n- [Basic example](#basic-example)\n- [Enable dark mode](#enable-dark-mode)\n\n## Basic example\nMake a GET request to `/image` \u0026 provide a tweet ID to `id` parameter.\n```\nhttps://domain.com/image?id=1250966843545640960\n```\n\n## Enable dark mode\nAdd the `darkMode=true` parameter to the URL.\n```\nhttps://domain.com/image?id=1250966843545640960\u0026darkMode=true\n```\n\n## Inspect HTML\nPerform a GET request to `/html` to return a HTML. \n```\nhttps://domain.com/html?id=1250966843545640960\n```\n\u003e You may also add the `darkMode=true` parameter to enable dark mode.\n\n# Self-Hosting\n\n1. Pull the latest Docker image from GitHub Packages\n```\ndocker pull ghcr.io/genesis331/twittercard:latest\n```\n2. Run the Docker image\n```\ndocker run -d --restart unless-stopped -p {PREFERRED_PORT}:3000 --name twittercard -v /{VOLUME_NAME}:/twittercardtemp -e TWITTER_AUTH_TOKEN={YOUR_TOKEN_HERE} ghcr.io/genesis331/twittercard:latest\n```\n\u003e Again, do not include the curly braces!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesis331%2Ftwittercard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenesis331%2Ftwittercard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesis331%2Ftwittercard/lists"}