zernonia / tweetic

Convert Tweets to Static HTML
https://tweetic.zernonia.com/
MIT License
241 stars 17 forks source link

Add API to generate Tweet image #29

Open zernonia opened 2 years ago

zernonia commented 2 years ago

Add API endpoint to generate the tweets as jpg/png, similar to poet.so

Rohithgilla12 commented 2 years ago

@zernonia I want to give it a try! I have experience with puppetter and creating endpoints for capturing such things.

I would like to give it a try next week, if that's okay!

zernonia commented 2 years ago

Sure can. But hosting pupetteer-core in vercel (where Tweetic is currently hosting on) is not a good solution as it would max-out the function size (50mb)

Rohithgilla12 commented 2 years ago

Sure can. But hosting pupetteer-core in vercel (where Tweetic is currently hosting on) is not a good solution as it would max-out the function size (50mb)

We could take inspiration from this

https://github.com/vercel/virtual-event-starter-kit/blob/main/lib/screenshot.ts

I used it in past on vercel too

Rohithgilla12 commented 2 years ago

@zernonia is there any example .env file? I think we could have one .env.example file to show what we would be needing before starting the development.