https://github.com/rqbazan/peya-img-gen
https://github.com/rqbazan/peya-img-gen
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rqbazan/peya-img-gen
- Owner: rqbazan
- Created: 2023-08-27T16:13:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-27T17:10:50.000Z (about 2 years ago)
- Last Synced: 2025-02-06T19:52:08.582Z (8 months ago)
- Language: TypeScript
- Homepage: https://peya-img-gen.vercel.app
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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