Originally posted at ReCodes26.dev
When creating my portfolio website, I needed placeholder images for my incomplete ideas section. I decided that a nice linear gradient would match my website's theme, so I headed over to Google and searched for free placeholder gradient APIs. To my surprise, I couldn't find a gradient API that satisfied my needs. Some of the APIs were down, some required you to add text inside the gradient, and some offered SVG gradients, but no API. I needed something that was plug-and-play easy, like LoremPicsum, but for gradients, which led me to my latest idea:
PlaceGradient, an open-source, free API that generates placeholder SVG gradients.
What I needed
Most of the gradient generators produced pretty gradients, but they did not provide an API usable in image components. Since manually creating placeholder gradients in Inkscape is time-consuming, I wanted a tiny API to generate random SVG images at runtime.






