badgen.net icon indicating copy to clipboard operation
badgen.net copied to clipboard

Simpleicon support

Open rusty-snake opened this issue 5 months ago • 4 comments

?&icon=https://... has the undocumented requirement that the "path" must end with .svg. However a lot of icon CDNs have a icon name or color at the path-end without a .svg. Although they server valid SVG with a correct content-type header, badgen.net does not pick them up.

rusty-snake avatar Jul 26 '25 09:07 rusty-snake

Good idea, it should behave like this.

amio avatar Jul 29 '25 01:07 amio

Works fine on localhost: http://localhost:3001/badge/color/blue/blue?label=test&icon=https://cdn.simpleicons.org/.NET/white

Image

But not via the server: https://badgen.net/badge/color/blue/blue?label=test&icon=https://cdn.simpleicons.org/.NET/white:

Falke-Design avatar Aug 10 '25 07:08 Falke-Design

Perhaps we may reference external icons with <image> element in svg, rather than embedding them within the server. But this approach would faces CORS restrictions.

amio avatar Sep 12 '25 02:09 amio

Or we simply make simpleicons a builtin resource.

amio avatar Sep 12 '25 02:09 amio