- 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
orBase64
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
andBase64
- 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!
- If you get an error while accessing the API endpoints is most likely that I'm out of free monthly Heroku Dyno hours 🤐
- Check out this amazingly documented book Official Documentation
- First, install GraphicsMagick
- If using
macOS
run
brew install graphicsmagick
brew install pkg-config cairo pango libpng jpeg giflib librsvg
- 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
- Clone this repo
- Open the containing folder
- Type first,
npm install --build-from-source
(make sure you did step2
or3
depending of your os) - Then, to run it, type
npm start
- Open the API in your browser http://localhost:6969/api/v1
- To run the tests (234 of them actually), type
npm test
- API Request limit is 65 requests per minute per IP, to slightly prevent spamming Heroku
- API Endpoint URL hosted on heroku ➡️ https://memerizer.herokuapp.com/api/v1