Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
/ api Public archive

❄ A customizable and super fast badge for displaying hits for any link

Notifications You must be signed in to change notification settings

hitsapp/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cc80dfc · Jan 21, 2025
Oct 14, 2023
Jan 3, 2024
Jan 3, 2024
Jan 3, 2024
Jan 21, 2025
Oct 14, 2023
Jan 3, 2024
Jan 3, 2024
Jan 3, 2024

Repository files navigation

UPDATE #2:

Bad news, I have archived this project due to time and money running it. Good news, AprilNEA has made an alternative that's a drop-in replacement to hits! If you would like to support and use their's, visit https://github.com/AprilNEA/hits.

- https://hits-app.vercel.app/hits?url=https://yoururl.com/
+ https://hits.aprilnea.com/hits?url=https://yoururl.com/

Note

I do not own nor have control over AprilNEA's websites, domains, or repositories!!

UPDATE:

The renewal price for hits.link was very expensive, so we decided to drop the domain. If you'd like to continue using hits please update your URLs to https://hits-app.vercel.app/hits?url=https://yoururl.com/

- https://hits.link/hits?url=https://yoururl.com/
+ https://hits-app.vercel.app/hits?url=https://yoururl.com/

Frontend: https://hits-app.vercel.app

API: https://hits.hop.sh/

hits - the better hits counter

Hits

Sponsored By

Hits is brought to you by Hop - No more configs. No more fuss. Just push your code.

API Docs

Create a new Hit:
GET https://hits-app.vercel.app/hits?url=https://yoururl.com (20reqs/minute)

Query Params:

Valid hex color codes are accepted (remove "#" in the queries that apply)
Default border type is round

?json - Send JSON with data instead of SVG
?label - Set label text
?bgLeft - Set the background colour of the label
?bgRight - Set the background colour of the hits number
?color - Set the text color
?border - Choose a border (square or round)

Get Top Hits:
GET https://hits.hop.sh/v1/leaderboard (30s cache, 50reqs/minute)

Used on

Open a PR to add your website!

Running Locally

# Run Docker Compose 
$ docker-compose up -d

# Install packages
$ go get

# Start API
$ go run main.go

Frontend

The frontend has been moved to a separate repository: https://github.com/hitsapp/web

Maintainers

  • @heybereket
  • @Looskie

About

❄ A customizable and super fast badge for displaying hits for any link

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages