pvbc

pvbc

2 devlogs
2h 25m
•  Ship certified
Created by Gangsta Ozcan

pvbc, or "Page View Badge Counter" is a little API which gives a shields.io-esq badge with a page view count!

Timeline

Ship 1

0 payouts of shell 0 shells

Gangsta Ozcan

4 days ago

Gangsta Ozcan Covers 2 devlogs and 2h 25m

got it working on nest, added a UI to homepage.

Update attachment

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.

Update attachment