GithubHelp home page GithubHelp logo

prikhi / github-analytics Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 51 KB

Aggregate Traffic Graphs for All Your Github Repositories!

Haskell 94.92% Nix 5.08%
haskell reflex-frp github analytics aggregation

github-analytics's Introduction

Github Analtics

I wanted an application that would pull all the traffic data from my github repositories & show me a graph & table of total pageviews & clones, along with a breakdown per repository.

A screenshot of the Github Analytics application, showing a table of repositories and their view counts from the last 14 days.

This is project is built with Haskell's reflex-platform, mostly because I wanted to try it out.

Run

First install nix, it's easiest to do via the reflex-platform:

$ git submodule update --recursive --init
$ reflex-platform/try-reflex
[nix-shell] $ exit

You might need to add something like source ~/.nix-profile/etc/profile.d/nix.sh to your .bashrc.

The easiest way to start developing is launching GHCi to run the server & GTK client:

# Start the server:
$ ./manage.hs server-repl
> main
# In another terminal:
$ ./manage.hs client-repl
> main
# After making some changes:
> :r
> main

Changes to common/ will require restarting ghci. The client repl also has a mainServer function that will allow you build with GHC & connect with your browser to http://localhost:3911.

./manage.hs nix-build will make production builds of the server and the web, gtk, & mobile clients. This will take a while.

You can get faster, incremental builds using ./manage.hs ghc-build & ./manage.hs ghcjs-build.

TODO

  • Add graphs (probably using diagrams-reflex?), requires returning views per day

  • More data: referrers, pages, clones, unique views

  • Add organizations - with checkboxes to toggle on & off

  • Add filters - affiliation, type(fork/source), language, etc

  • Add table sorting

  • Figure out proper XHR error handling(use WithError function)

  • Style it

  • Add needed Github data types & endpoints to phadej/github package instead of writing it ourselves.

  • Make it permanent!

    • After receiving user/pass, make & store github API token & use that instead. Would be really cool to give users option to encrypt token w/ password and have them submit password when they want to update. Wouldn't let us automatically pull traffic data, but much more secure.
    • Save user's historical per-day data(maybe monthly data for people who aren't me)
      • github only gives us the last 14 days.
    • Cron job to update data every day? Would need to store api tokens unencrypted.

License

GPL-3.0

github-analytics's People

Contributors

prikhi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gaybro8777

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.