Generate a dynamic image for social media sharing based on HTML templates using Kodyfire. This is just the beginning.
🏠 Homepage
social-image-kodyfire requires the kodyfire-cli to be installed
npm install -g kodyfire-cli
npm install social-image-kodyfire
In order to generate your artifacts, run the generate
command. The syntax is kody generate|g [kody] [concept]
. If you ommit kody
and concept
the assistant will prompt you to select them. As an example, run the following command from your terminal:
kody generate react component
Refer to the kodyfire generate your artifact section. Once your project is initialized and ready for kody, run the following command to generate your images.
kody run -s kody-social-image.json
basic
(credits: puppeteer-social-image)
Renders text on a background image.
title
string - text to renderlogo
string - URL for the logoimageUrl
string - URL for the background imagebackground
string - Valid CSS background colorcolor
string - Valid CSS colorwatermark
string - (optional) text for footer
article
(credits: puppeteer-social-image)
Display a title and subtitle on a background image, with an optional eyebrow
title
string - title textsubtitle
string - subtitle texteyebrow
string - eyebrow text that renders above the title. Use for datelogo
string - URL for the logoimageUrl
string - URL for the background imagebackground
string - Valid CSS background colorcolor
string - Valid CSS colorwatermark
string - (optional) text for footer
fiftyfifty
(credits: puppeteer-social-image)
Tempate with split content
title
string - title textsubtitle
string - subtitle textlogo
string - URL for the logoimageUrl
string - URL for the background imagebackground
string - Valid CSS background colorcolor
string - Valid CSS colorwatermark
string - (optional) text for footer
doodle
(credits: css-doodle)
Tempate using the doodle-css as background
fakeBox | neon | seeding | strings |
![]() |
![]() |
![]() |
![]() |
timeTravel | tubes | unicode |
![]() |
![]() |
![]() |
title
string - title textsubtitle
string - subtitle textlogo
string - URL for the logodoodle
enum - doodle background name [fakeBox, neon, seeding, strings, timeTravel,tubes, unicode]color
string - Valid CSS colorwatermark
string - (optional) text for footer
Add the following params to your generated concepts. As an example, the final updated concepts might look like the following:
{
"name": "image-3",
"template": "fiftyfifty.html.template",
"split": "diagonal",
"fontWeight": "medium",
"fontSize": "80px",
"title": "Hello World!",
"subtitle": "Your subtitle",
"eyebrow": "17 July 2022",
"logo": "https://noqta.tn/_next/image?url=%2Fimages%2Flogo.svg&w=256&q=75",
"background": "tranparent",
"imageUrl": "https://images.unsplash.com/photo-1507608869274-d3177c8bb4c7?w=1950&q=80",
"color": "#000",
"includeWatermark": true,
"watermark": "social-image-kodyfire",
"size": "facebook",
"outputDir": ""
}
- Add common social post dimensions as size
- Allow passing arguments to doodles
- Compose doodle for dymamic backgrounds
- Add template for most common post subjects
- Add add meme template
TODO
👤 Anis Marrouchi
- Website: https://noqta.tn
- Twitter: @anis_marrouchi
- GitHub: @anis-marrouchi
- LinkedIn: @marrouchi
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
- puppeteer-social-image by chrisvxd Big Thanks for the provided templates.
- css-doodle by css-doodle Beautiful work, We are so thankful.
- puppeteer by puppeteer Danke schone!
Copyright © 2022 Anis Marrouchi.
This project is MIT licensed.
This README was generated with ❤️ by readme-kodyfire