Skip to content

A lightweight, self-hosted SVG visitor counter powered by FastAPI and Redis, deployed via Docker Compose

License

jagaldol/profile-counter

Repository files navigation

Profile Counter

A self-hosted profile counter created as a replacement for the now-defunct https://profile-counter.glitch.me/:yourkey:/count.svg service.

🚀 Features

  • Self-hosted and lightweight
  • Real-time profile visit counting
  • Embeddable SVG badge for websites

🔍 Demo

Profile Counter Repo :: Visitor's Count

This badge shows the counter for this repository.

👉 Visit https://server.jagaldol.com/profile-counter to see the usage guide and try it out live.

🛠️ Usage

This project is self-hosted using Docker Compose. The backend is powered by a FastAPI server connected to a Redis store.

1. Prerequisites

  • Docker
  • Docker Compose

2. Start the Service

Clone the repository and run the following command:

cp .env.example .env
docker-compose up -d

This will launch:

  • app.py: the FastAPI application server
  • Redis: the data store for tracking visit counts

3. Access the Counter

Once running, you can embed the counter using:

<img src="http://localhost:8000/profile-counter/:your-key:/count.svg" />

Replace :your-key: with your own identifier.

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A lightweight, self-hosted SVG visitor counter powered by FastAPI and Redis, deployed via Docker Compose

Topics

Resources

License

Stars

Watchers

Forks