All Projects → heybereket → hits

heybereket / hits

Licence: MIT license
❄ A customizable and super fast badge for displaying hits for any link

Programming Languages

typescript
32286 projects
go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

hits.link - the better hits counter

Hits

API Docs

Create a new Hit:
GET https://hits.link/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://api.hits.link/v1/top (30s cache, 50reqs/minute)

Used on

Open a PR to add your website!

Running Locally

# Copy all .env.example files into your .env file

# Run Docker Compose 
$ docker-compose up -d

# Sync Database
$ cd api/prisma && go run github.com/prisma/prisma-client-go db push

# Start Go API
$ cd api && go run main.go

# Install dependencies
$ cd web && yarn

# Run web
$ cd web && yarn dev

Stack

Frontend:
- Next.js
- TypeScript

Backend:
- Go
- Fiber
- Prisma

Maintainers

  • @heybereket
  • @Looskie
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].