An open API service indexing awesome lists of open source software.

https://github.com/rqbazan/peya-img-gen


https://github.com/rqbazan/peya-img-gen

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

# peya-img-gen 🖼

- **Framework**: [Next.js](https://nextjs.org)
- **Deployment**: [Vercel](https://vercel.com)
- **Styling**: [Tailwind CSS](https://tailwindcss.com)

# Usage

GET /repository-cover (get image for repositories cover)

##### Query Parameters

> | name | type | data type |
> | ---------- | -------- | --------- |
> | `title` | required | string |
> | `subtitle` | required | string |

##### Responses

> | http code | content-type | response |
> | --------- | ------------ | --------------- |
> | `200` | `image/png` | generated image |

##### Example URL

- https://peya-img-gen.vercel.app/repository-cover?title=React%20OCTA&subtitle=Q-Commerce%20Tribe

GET /storybook-logo (get logo for storybook apps)

##### Query Parameters

> | name | type | default | data type |
> | ----------- | -------- | ------- | --------- |
> | `undertext` | required | - | string |
> | `fontSize` | optional | `14.5` | number |
> | `width` | optional | `178` | number |
> | `height` | optional | `62` | number |

##### Responses

> | http code | content-type | response |
> | --------- | ------------ | --------------- |
> | `200` | `image/png` | generated image |

##### Example URL

- https://peya-img-gen.vercel.app/storybook-logo?undertext=groceries-react-app-layout