pvbc, or "Page View Badge Counter" is a little API which gives a shields.io-esq badge with a page view count!
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
MVP. I decided to use tokio-postgres
, axum
, and bb8
for this project. Axum handles the webserver, tokio-postgres
and bb8 handle postgres and connection pooling. I used the shields
library to create badges.
You can use this API on your SoM profile with custom CSS! See this example. Note: You must get a UUID from the demo link before you can use this.
h1.text-2xl > a:nth-child(1) > span:nth-child(1)::after {
content: "";
display: inline-block;
width: 3em;
height: 1em;
background: url('LINK YOU GOT FROM API') no-repeat center center;
background-size: contain;
vertical-align: middle;
}
Demo is available now.