Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nexoscreation/thumbline-generator
This project is a serverless Open Graph (OG) image generator built with Nuxt 3.
https://github.com/nexoscreation/thumbline-generator
nuxt-3 og-image-generator seo-optimization thumbnail-generator
Last synced: about 6 hours ago
JSON representation
This project is a serverless Open Graph (OG) image generator built with Nuxt 3.
- Host: GitHub
- URL: https://github.com/nexoscreation/thumbline-generator
- Owner: nexoscreation
- Created: 2024-10-06T06:21:52.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-15T17:34:30.000Z (4 months ago)
- Last Synced: 2024-10-17T00:31:05.289Z (4 months ago)
- Topics: nuxt-3, og-image-generator, seo-optimization, thumbnail-generator
- Language: Vue
- Homepage: https://thumbline-generator.vercel.app/
- Size: 277 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![GitHub Pages](https://img.shields.io/github/deployments/nexoscreation/thumbline-generator/github-pages.svg?style=flat-square&color=cyan)
![GitHub Release](https://img.shields.io/github/v/release/nexoscreation/thumbline-generator.svg?style=flat-square&color=cyan)
![GitHub License](https://img.shields.io/github/license/nexoscreation/thumbline-generator.svg?style=flat-square&color=cyan)
![GitHub code size](https://img.shields.io/github/languages/code-size/nexoscreation/thumbline-generator.svg?style=flat-square&color=cyan)---
# Serverless OG Image Generator
![image](https://thumbline-generator.vercel.app/api/og-image?title=Serverless%20OG%20Image%20Generator&bgColor=%231e293b&textColor=%23ffffff&logoUrl=https://nexoscreation.com/logo.png)
This project is a serverless Open Graph (OG) image generator built with Nuxt 3. The API dynamically generates OG images by accepting parameters such as `title`, `bgColor`, `textColor`, and `logoUrl`.
---
## Features
- Generate OG images with custom title text.
- Customize the background and text colors.
- Add a logo to the generated image.
- Supports PNG format output.
- Serverless, built with Nuxt 3.---
## Links
[![Web Demo](https://img.shields.io/badge/Web-Demo-blue?style=for-the-badge&logo=google-chrome)](https://nexoscreation.github.io/thumbline-generator)
[![GitHub Repo](https://img.shields.io/badge/GitHub-Repo-green?style=for-the-badge&logo=github)](https://github.com/nexoscreation/thumbline-generator)
[![YouTube Video](https://img.shields.io/badge/YouTube-Video-red?style=for-the-badge&logo=youtube)](https://youtu.be/rMnDe0iEGRs?si=B2viVesOhHYusbBG)---
## API Usage
### Endpoint
```bash
GET /api/og-image
```### Query Parameters
| Parameter | Type | Required | Description | Example |
|-------------|----------|----------|------------------------------------------------------------|---------------------------------------------------|
| `title` | `string` | Yes | The main title text to display on the image. | `My Awesome Blog Post` |
| `bgColor` | `string` | No | Hex code for the background color of the image. | `#1e293b` |
| `textColor` | `string` | No | Hex code for the color of the text. | `#ffffff` |
| `logoUrl` | `string` | No | URL of the logo image to display in the top left corner. | `https://example.com/logo.png` |### Example Request
```bash
GET http://localhost:3000/api/og-image?title=My%20Awesome%20Blog%20Post&bgColor=%231e293b&textColor=%23ffffff&logoUrl=https://example.com/logo.png
```### Example Response
The above request will return an Open Graph image with the specified parameters, which can be used for social sharing.
### Error Responses
If the `title` parameter is missing, the API will return the following error:
```json
{
"error": "Title is required"
}
```---
## Contributing
We welcome contributions! Feel free to fork this repo, submit issues, or create pull requests.
1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Make your changes and commit them (`git commit -m 'Add new feature'`).
4. Push the branch (`git push origin feature-branch`).
5. Open a pull request.---
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
---
Created with ❤️ by [Nexos Creation](https://github.com/nexoscreation).