Skip to content

9am/hits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hits

Get dynamically generated bitmap hit counter on your READMEs!

Features

  • Show a dynamic hits counter by inserting a <img>.
  • Resolve referer automatically.
  • Show last n days trends with charts=date&last_n_days={n}.
  • Customise prefix text with prefix={text}.
  • Align with system dark mode with 0 config.
  • 2 color themes out of the box. (more are comming...)
  • Secure your hits with ALLOW_REFERER env.
  • Deploy your own version with Deno deploy and Deno KV.

Embed

After deployment, copy-paste this into you Github markdown, and replace the {referer}.

![hits](https://{your-domain}.deno.dev/api?referer={referer})

You don't need to pass the {referer} when embeding into web pages.

<img src="https://{your-domain}.deno.dev/api" referrerpolicy="no-referrer-when-downgrade" />

Demo

Embed in Github markdown.
Themes grayscale
Customise prefix
14 days trends

Support the project

If you like this project, consider
Buy Me A Coffee

License

MIT