Seamlessly create and embed custom SVG icons in your applications. From simple shapes to dynamic indicators, deliver scalable vector graphics as a service.
import { Do } from '@do-inc/sdk';
// Initialize the .do platform
const platform = new Do('YOUR_API_KEY');
// Generate a simple circle SVG icon
const { svg } = await platform.run('icon0.svg', {
shape: 'circle',
color: '#4F46E5',
size: 64,
});
// Returns the raw SVG string, ready to be embedded
console.log(svg);