A Node.js API that serves random images on your readme.
- Clone the repository with Git or download the source.
- Put your desired images on
images
inside thesrc
folder. - Install all project dependencies with
npm i
orbun i
. - Run the server with
npm start
orbun start
.
While testing, you can use nodemon
to avoid restarting manually the server whenever you changed something.
- Install
nodemon
withnpm i nodemon -g
orbun i nodemon -g
- Then run it with just
nodemon
. With this, you can avoid restarting your server manually. Do not worry.nodemon
restarts the server whenever you changed some file.
Please read this carefully if you are really going to use this:
- Images are being served on a 1:1 aspect ratio, with the resolution being 300x300 by default. Feel free to change this if you want.
- Ignore the sample images. These are only meant to be on my personal README.
- Only requests from GitHub's Camo service are allowed.
2025 Lucas Gabriel (lucmsilva) - BSD 3-Clause