Skip to content

😿 A sad Memerizer API that generates meme pictures on the fly

License

Notifications You must be signed in to change notification settings

tutyamxx/memerizer

Repository files navigation



Memerizer

  • A sad Memerizer API that generates meme pictures on the fly using JavaScript, without the need of saving them to your device!
  • It also never writes any data on the machine that is running, everything happens magically on the memory using buffers!
  • It returns the picture data type as a Buffer or Base64 string (useful for directly displaying them in a website or on your Discord, Slack, bots or any other IRC channels)
  • It has 31 unique endpoints for dank image manipulations 🤘🏽🤪🤘🏽
  • Heavily relies on Jimp and GraphicsMagick
  • Currently supported data type response formats are: Buffer and Base64
  • Originally, my discord bot used to have these commands, but I thought to transform them into an API, this way other people can easily generate memes with it.
  • Thanks to my friend CoachAprax for this dank banner
  • To see the results in base64 format from your API responses is super easy. I'll show you how! As an example copy the long string from this Memerizer API Response and go to My base64 Decoder page and try it out!

IMPORTANT !

  • If you get an error while accessing the API endpoints is most likely that I'm out of free monthly Heroku Dyno hours 🤐

How to use

How to run it locally

  1. First, install GraphicsMagick
  2. If using macOS run
brew install graphicsmagick
brew install pkg-config cairo pango libpng jpeg giflib librsvg
  1. If using ubuntu run
sudo apt-get install graphicsmagick -y
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev -y
  1. Clone this repo
  2. Open the containing folder
  3. Type first, npm install --build-from-source (make sure you did step 2 or 3 depending of your os)
  4. Then, to run it, type npm start
  5. Open the API in your browser http://localhost:6969/api/v1
  6. To run the tests (234 of them actually), type npm test

Usage

About

😿 A sad Memerizer API that generates meme pictures on the fly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published