Generate baseline PNG image
https:/api.basely.dev/baseline.png
Generates a baseline PNG image using the Baseline component with customizable parameters. The generated image can be customized with various props.
Query parameters
titlestringRequired
Title text for the baseline imagetoolGroupsarrayRequired
JSON array of tool groups configuration
Examples:[ [ {"tool":"bun","supported":true}, {"tool":"node","supported":true,"label":"20.x"}, {"tool":"pnpm","supported":true,"label":"9.x"} ] ] toolstringRequired
Name of the tool (e.g., "bun", "node", "pnpm")supportedbooleanRequired
Whether the tool is supportedlabelstring
Optional label for the tool version
fontstring
Custom font URL (CSS)Examples:https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap cssstring
Custom CSS stylesheightintegerDefaults: 800
Image height in pixelsRequired range:x >= 1 widthintegerDefaults: 468
Image width in pixelsRequired range:x >= 1
Response
PNG image generated successfully
Example request
curl --request GET \ --url 'https://api.basely.dev/baseline.png?title=string&toolGroups=%5B%0A%20%20%5B%0A%20%20%20%20%7B%22tool%22%3A%22bun%22%2C%22supported%22%3Atrue%7D%2C%0A%20%20%20%20%7B%22tool%22%3A%22node%22%2C%22supported%22%3Atrue%2C%22label%22%3A%2220.x%22%7D%2C%0A%20%20%20%20%7B%22tool%22%3A%22pnpm%22%2C%22supported%22%3Atrue%2C%22label%22%3A%229.x%22%7D%0A%20%20%5D%0A%5D%0A' \ --header 'accept: image/png'
Example response
"string"
Built with