Code Monkey home page Code Monkey logo

github-profile-views-counter's Introduction

GitHub README profile views counter

Simple GitHub readme profile views statistics counter made with Yii2 Framework. You can add this shortcode to your github profile for free and see how many times your profile has been viewed.

Banner about GitHub profile views counter

Usage

Replace [YOUR_PROFILE_USERNAME] with your profile username, for example: github-profile-views-counter, so the link comes out: https://gpvc.arturio.dev/github-profile-views-counter and afterwards just add it to your profile readme file using code bellow.

GitHub will proxy this url trough github como servers but don't worry, links are correct and cache control is set to no cache, so views will be constantly updated.

![Profile views](https://gpvc.arturio.dev/[YOUR_PROFILE_USERNAME])

Profile views

https://gpvc.arturio.dev/github-profile-views-counter

Self hosted

  • Clone repository
  • run composer install
  • copy config-dist/ to config/
  • edit config/db.php
  • make directories: runtime/ web/assets/
  • make runtime/ web/assets ./yii directories writable: chmod 775
  • run ./yii2 migrate
  • enjoy

Docker

Build image docker build -t gpvc . Run container docker-compose --env-file .env up -d

How to create github profile readme?

https://arturio.dev/github-profile-readme/

github-profile-views-counter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

github-profile-views-counter's Issues

Color Changes

Is it possible to change the colour of the profile views box?

Repeated views to my profile by me counted

Editing/Viewing my own profile adds the count. If i refresh on the profile page, then also it increase. It should ideally track uniquie views, or some option to enable it.

Other repo's is calling your https://gpvc.arturio.dev/ API as a refresh page...

Hi there...

I was trying to implement some self hosted counter, but when got to see some examples, saw that some repo's we find call your API a refresh call on the url...

EX: https://turnipguy30.github.io/Celebi/

<!doctype html>

html lang="en" dir="ltr">
head>
meta charset="utf-8" http-equiv="refresh" content="0; URL=armand-morin.html">
link rel="icon" href="../images/celebi.png">
title>armand-morin | Celebi</title>
style>@import url("../styles/index.css");</style>
/head>
body>
h1>armand-morin
img src="https://gpvc.arturio.dev/armand-morin">
/body>
/html>

I saw that the number keeps getting up if I stay some time in the site, and thought that you don't have caching on your code.

Didn't know a lot about that, but maybe this could help with server issues...

This can be faked via simple py app

We can manually add views via a simple code like below

import requests
for i in range(1000):
    requests.get('https://gpvc.arturio.dev/charindithjaindu')

you need to block same ip if that ip getting more requests🤷‍♂️.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.