{"id":18993593,"url":"https://github.com/benikk/og-image","last_synced_at":"2025-10-11T19:35:07.451Z","repository":{"id":251931685,"uuid":"838639102","full_name":"BeNikk/og-image","owner":"BeNikk","description":"Dynamic og image creator","archived":false,"fork":false,"pushed_at":"2024-08-06T16:42:26.000Z","size":1081,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T15:26:02.324Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://og-image-f6i8.vercel.app/","language":"JavaScript","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/BeNikk.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-08-06T04:09:52.000Z","updated_at":"2024-08-06T16:45:39.000Z","dependencies_parsed_at":"2024-08-06T17:09:41.590Z","dependency_job_id":null,"html_url":"https://github.com/BeNikk/og-image","commit_stats":null,"previous_names":["benikk/og-image"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeNikk%2Fog-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeNikk%2Fog-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeNikk%2Fog-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeNikk%2Fog-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeNikk","download_url":"https://codeload.github.com/BeNikk/og-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240008212,"owners_count":19733274,"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":[],"created_at":"2024-11-08T17:22:15.873Z","updated_at":"2025-10-11T19:35:02.421Z","avatar_url":"https://github.com/BeNikk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dynamic OG Image generation\n\n## Overview\nThis project is a dynamic post page built using React and Node.js. It generates Open Graph (og:image) images based on the post content and integrates Cloudinary for image storage and management. Users can create posts with titles, content, and optional images. The system then generates a visually appealing og:image, stores it in Cloudinary, and provides the image link.\n\n\n## Technologies Used\n\n- **Frontend**: React, Tailwind CSS\n- **Backend**: Node.js, Express\n- **Image Processing**: Canvas,\n- **Other Libraries**: Helmet, Multer\n\n## Features\n\n- Dynamic post creation with title, content, and optional image upload.\n- Automatic generation of og:image based on post content.\n- Storage of og:image in Cloudinary.\n- Provision of a direct link for the generated og:image.\n- Adding the image as a meta tag.\n\n\n## System Workflow\n\n1. **User Input**: User submits text and optional image data.\n2. **Canvas Image Generation**: Backend generates OG image using Canvas.\n3. **Cloudinary Upload**: Generated image is uploaded to Cloudinary.\n4. **Cloudinary URL Generation**: Cloudinary generates a unique URL for the image.\n5. **API Response**: API returns the Cloudinary image URL.\n6. **Client-side Rendering**: Client-side renders the OG image using the returned URL.\n7. **Meta Tag Integration**: OG image URL is added as a meta tag (`og:image`) to the HTML header.\n\n\n## Benefits\n\n* **Dynamic OG Images**: Generate custom OG images based on user input.\n* **Scalability**: Cloudinary handles image storage and delivery.(any cdn like s3 could have worked)\n* **Performance**: Images served via CDN ensure fast loading times.\n* **Security**: Cloudinary provides secure image hosting and SSL encryption.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenikk%2Fog-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenikk%2Fog-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenikk%2Fog-image/lists"}