{"id":20793698,"url":"https://github.com/uiuxarghya/ogiaas","last_synced_at":"2025-03-12T01:21:08.651Z","repository":{"id":46003711,"uuid":"383271762","full_name":"uiuxarghya/ogiaas","owner":"uiuxarghya","description":"📈 ( OGIaaS ) Open Graph Image as a Service  - Generate cards for Twitter, Facebook, Slack, etc on the go.","archived":false,"fork":false,"pushed_at":"2021-11-21T15:10:42.000Z","size":402,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T11:14:32.770Z","etag":null,"topics":["hacktoberfest","headless-chrome","og","ogiaas","open-graph","open-graph-protocol","open-source","puppeteer","uiuxarghya","vercel","vercel-serverless"],"latest_commit_sha":null,"homepage":"https://ogiaas.vercel.app","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/uiuxarghya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2021-07-05T21:49:08.000Z","updated_at":"2023-09-08T18:24:02.000Z","dependencies_parsed_at":"2022-09-15T01:24:20.627Z","dependency_job_id":null,"html_url":"https://github.com/uiuxarghya/ogiaas","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fogiaas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fogiaas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fogiaas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fogiaas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiuxarghya","download_url":"https://codeload.github.com/uiuxarghya/ogiaas/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243136957,"owners_count":20242140,"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":["hacktoberfest","headless-chrome","og","ogiaas","open-graph","open-graph-protocol","open-source","puppeteer","uiuxarghya","vercel","vercel-serverless"],"created_at":"2024-11-17T16:11:05.122Z","updated_at":"2025-03-12T01:21:08.632Z","avatar_url":"https://github.com/uiuxarghya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr/\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \n\u003cimg height=\"100\" src=\".github/logo.svg\"\u003e\n  \n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n\u003ca href=\"https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fuiuxarghya%2Fogiaas\u0026project-name=ogiaas\u0026repository-name=ogiaas\u0026redirect-url=https%3A%2F%2Fgithub.com%2Fuiuxarghya%2Fogiaas\u0026demo-title=OGIaaS\u0026demo-description=Open%20Graph%20Image%20as%20a%20Service%20-%20Generate%20cards%20for%20Twitter%2C%20Facebook%2C%20Slack%2C%20etc\u0026demo-url=https%3A%2F%2Fogiaas.vercel.app%2F\u0026demo-image=https%3A%2F%2Fraw.githubusercontent.com%2Fuiuxarghya%2Fogiaas%2Fmain%2F.github%2Fdemo.png\"\u003e\u003cimg width=\"128\" src=\"https://vercel.com/button\" alt=\"Deploy with Vercel\" align=\"right\" /\u003e\n\u003c/a\u003e\n\n# [Open Graph Image as a Service](https://ogiaas.vercel.app)\n\nServerless service that generates dynamic Open Graph images that you can embed in your `\u003cmeta\u003e` tags.\n\nFor each keystroke, headless chromium is used to render an HTML page and take a screenshot of the result which gets cached.\n\nSee the image embedded in the tweet for a real use case.\n\n## What is an Open Graph Image?\n\nHave you ever posted a hyperlink to Twitter, Facebook, or Slack and seen an image popup?\nHow did your social network know how to \"unfurl\" the URL and get an image?\nThe answer is in your `\u003chead\u003e`.\n\nThe [Open Graph protocol](http://ogp.me) says you can put a `\u003cmeta\u003e` tag in the `\u003chead\u003e` of a webpage to define this image.\n\nIt looks like the following:\n\n```html\n\u003chead\u003e\n  \u003ctitle\u003eTitle\u003c/title\u003e\n  \u003cmeta property=\"og:image\" content=\"http://example.com/logo.jpg\" /\u003e\n\u003c/head\u003e\n```\n\n## Demo\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://ogiaas.vercel.app/\"\u003e\n    \u003cimg  src=\"https://ogiaas.vercel.app/**Hello**%20World.png?theme=light\u0026md=1\u0026fontSize=100px\u0026images=https%3A%2F%2Fassets-ss.vercel.app%2Flogos%2Fogiaas%2Fogiaas-logo-black.svg\" height=\"400\" /\u003e\n\u003c/a\u003e\n  \u003c/div\u003e\n\n## Why use this service?\n\nThe short answer is that it would take a long time to painstakingly design an image for every single blog post and every single documentation page. And we don't want the exact same image for every blog post because that wouldn't make the article stand out when it was shared to Twitter.\n\nThat's where `ogiaas.vercel.app` comes in. We can simply pass the title of our blog post to our generator service and it will generate the image for us on the fly!\n\nIt looks like the following:\n\n```html\n\u003chead\u003e\n  \u003ctitle\u003eHello World\u003c/title\u003e\n  \u003cmeta\n    property=\"og:image\"\n    content=\"https://ogiaas.vercel.app/Hello%20World.png\"\n  /\u003e\n\u003c/head\u003e\n```\n\nNow try changing the text `Hello%20World` to the title of your choosing and watch the magic happen ✨\n\n## 🚀 Deploy your own\n\nYou'll want to fork this repository and deploy your own image generator.\n\n1. Click the fork button at the top right of GitHub\n2. Clone the repo to your local machine with `git clone URL_OF_FORKED_REPO_HERE`\n3. Change directory with `cd ogiaas`\n4. Make changes by swapping out images, changing colors, etc (see [contributing](https://github.com/uiuxarghya/ogiaas/blob/main/CONTRIBUTING.md) for more info)\n5. Remove all configuration inside `vercel.json` besides `rewrites`\n6. Run locally with `vercel dev` and visit [localhost:3000](http://localhost:3000) (if nothing happens, run `npm install -g vercel`)\n7. Deploy to the cloud by running `vercel` and you'll get a unique URL\n8. Setup [GitHub](https://vercel.com/github) to auto-deploy on push\n\nOnce you have an image generator that sparks joy, you can setup [automatic GitHub](https://vercel.com/github) deployments so that pushing to master will deploy to production! 🚀\n\n## 🙌 Acknowledgement\n\nCredit where credit is due. This started as a fork of from [Vercel's OG image generator](https://github.com/uiuxarghya/ogiaas) repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiuxarghya%2Fogiaas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiuxarghya%2Fogiaas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiuxarghya%2Fogiaas/lists"}