Skip to content

mhsattarian/tweet2img

Repository files navigation

tweet2img

Loading...

Generate an image from a tweet, so that it can be easier to share! ¯\_(ツ)_/¯

this project uses twitter embed public API, so there is no need for apiKey or such thing. it is running on a netlify serverless funciton and uses puppeteer to open the embed page and take a screenshot.

Usage

copy link of a tweet and place at the end:

https://tweet2img.netlify.app/img?url=<HERE>

Params

  • theme=dark enables dark theme.
  • liked=true makes tweet liked.
  • removeComments=true removes comments section.

examples

live example of this tweet:

https://tweet2img.netlify.app/img?url=https://twitter.com/Mehdi70501002/status/1262117721090785280&removeComments=true

Loading...

live example of this tweet:

https://tweet2img.netlify.app/img?theme=dark&url=https://twitter.com/fermatslibrary/status/1271069698088632321?s=19

Loading...

About

Generates an image from a given tweet! (Puppeteer + Netlify serverless functions + Svelte)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published