SVG Counter

This worker manages counters and serves images presenting them. You can use it for a classic 90's visitor (well, page view) counter.

Just create an img tag referencing the path /count/$NAME in this worker, where $NAME. is the key for your counter.

E.g. <img height="24px" src="https://svg-counter.fmb.workers.dev/count/home" />

A browser getting that URL will increment the count and the response is an SVG showing the updated number.

If you want to monitor your counters on e.g. some dashboard, you can use the prefix /show instead of count and you will just be served the image without incrementing.

The image is somewhat themeable, you can choose the colors using query parameters "on", "off", "bg", "gaps". Use the /test prefix and include the "text" parameter to see how different numbers look without using a real counter.

View the source of this page for more examples below:

views today:

this month:

total views: