Skip to content

donaldzou/hits-counter

Repository files navigation

Hits Counter

Due to the recent close down of hits.seeyoufarm.com, I decided to recreate the same service.
Thanks @gjbae1212 for the hardworking.

What is this?

This project allows you to create a badge like this:

Badge

to record how many visit your site have!

How to use?

Visit Hits Counter to create your badge

Index

Follow the form to input the URL, label, pick an icon and color and click Generate.

You should see the Result section below right away.

Index

Once you're satisfied with the result, simply copy & paste the code below to your website (HTML) or Markdown file. With the URL, you can also get the JSON result of the badge by simply toggling the JSON switch under URL.

Other Features

Self Hosting

This project allows you to self-host. Simply git clone this project, npm install, npm build and use follow instructions from the npm output.

The only manual setup is the database. This project is using Postgresql, and the application is connected to your database through .env file

DATABASE_URL=
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_PORT=
DATABASE=

Required Datatable

tracking_urls

Schemas
Column Name Column Types Default
id UUID
url VARCHAR
track_datatime DATE NOW()::DATE
total_hits INTEGER

About

A simple website visit counter

Resources

Stars

Watchers

Forks