Coder Social home page Coder Social logo

realtime's Introduction

Realtime

Realtime visualizes GitHub activity in real time.

The architecture works as follows:

  • A celery instance kicks off a scrape task every second which queries the GitHub API endpoint at https://github.com/timeline.json. A human-readable string of the event is generated A forked repository B from C/B with a link to A/B. That JSON object is then sent to a Redis Pub/Sub which is consumed by
  • a small NodeJS instance with Socket.IO which pushes the live data to all connected clients. It also caches a couple hundred events so clients can "pre-load" events to fill their screen upon first connecting.
  • The front-end then has 2 views of said data-stream
    • One is to simply display a global "list-view" of all events that describes what's happening.
    • Another is one that queries all available gravatars (this used to happen on the server until gravatar banned my server IP) and simply lists the event's author's avatar along with the programming language associated with the event. This allows you to efficiently reduce every programmer to their physical appearance and choice of programming language.

Please note that the live web app at http://realtime.doda.co/ is currently offline. It was fun to demo this to fellow dev buddies while I was building it, though I don't really see a reason to run 3,600 requests / hour against GitHub's API just for the fun of it.

realtime's People

Watchers

James Cloos avatar Abou Mohamed  avatar

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.