Open Site Counter is a FastAPI-based API that allows:
- registering website visits (
/register), - retrieving statistics and a connection graph (
/get).
- SQLite storage with SQLAlchemy
- Hashing for efficient lookups
/registerendpoint to log visits/getendpoint to return stats and connection graphsfrontendfolder, showcasing an example of how to use the application
- Python 3.10+ or Docker
chmod +x run.sh
./run.shThe API will be available at http://127.0.0.1:5001.
- Build the Docker image:
docker build -t open-site-counter .- Run the container exposing port 5001:
docker run -d -p 5001:5001 open-site-counterYou can also pull and use the prebuilt Docker image from the GitHub page.