GithubHelp home page GithubHelp logo

bra1n / cryptolights Goto Github PK

View Code? Open in Web Editor NEW
61.0 5.0 18.0 1.71 MB

Live visualisation of blockchain transactions for popular cryptocurrencies

Home Page: https://bra1n.github.io/cryptolights/

License: BSD 3-Clause "New" or "Revised" License

HTML 27.79% CoffeeScript 61.87% CSS 10.34%
cryptocurrency bitcoin litecoin ethereum nano blockchain ripple

cryptolights's Introduction

CryptoLights

Live transaction visualization for Bitcoin, Ethereum, Litecoin, Ripple and Nano

https://bra1n.github.io/cryptolights/

Explanation

Payments made through modern crypto currencies are broadcast to the internet where everyone can track them. This website takes advantage of that and show a "meteor" descending from the top of the page for every transaction that is sent through the network. These transactions are considered "unconfirmed" until a new block (on the blockchain) is "mined", confirming these transactions. Ripple and Nano are an exception here, because they use a different approach to verify and store transactions.

Whenever a transaction is sent, a meteor will be created in the lane of the corresponding currency. Depending on the Dollar volume of the transaction, the meteor will have a certain color and size. For currencies that require a fee to send a transaction, the meteor will also have a "trail" with a length relative to the size of the fees that were paid for this transaction. The same applies to the speed of the meteor - higher transaction fees will make it go faster and also increase the chance to be confirmed in a shorter amount of time.

Every now and then, you will see a blue bar descend in the lanes of BTC, ETH or LTC. This bar represents a block that has just been mined. It will have a height depending on the number of confirmed transactions within that block. Ripple and Nano don't have a centralised blockchain and thus lack network-wide blocks.

Each meteor can also be clicked on to see the transaction that it is based on.

Meteor sizes / colors and transaction volumes

The meteor size and color is based on the amount of money being transferred. (except for donations) Ethereum contract transactions and Ripple IOUs usually don't transfer any money (so the transaction volume is $0). Transactions above $1 million will still grow in size but won't change colors beyond red.

Color Size Transaction volume
Blue 5px-20px $0 - $100
Turquoise 20px-30px $100 - $1000
Green 30px-40px $1000 - $10,000
Yellow 40px-50px $10,000 - $100,000
Orange 50px-60px $100,000 - $1,000,000
Red 60px+ $1,000,000+

Meteor trails

Meteor trail lengths are not capped, but scale logarithmically like meteor sizes.

Trail Length Transaction Fee
0px $0
10px $0.01 - $0.3
15px $0.5
25px $1
40px $2
60px $4
85px $10
140px $50

CryptoLights screensaver

To set the website up as a screensaver, you'll usually need a third-party tool. Once you have the screensaver tool installed, simply use http://cryptolights.info/#nohelp as the URL. This will prevent the help overlay (and navigation icons) from showing on the screensaver. The following links should provide you with a way to set up a screensaver for this website:

Contributing

This website was built with Coffeescript, CSS and HTML. You'll need a Coffeescript compiler to generate the JS files. Maybe I'll add some Gulp tasks in the future to simplify compiling and deployment. If you want to see your favorite crypto currency added to the list, you'll need a public websocket where each transaction (and block, if there are any) is broadcast. Then simply copy one of the implementations in /currencies, change the API and callbacks and adjust the HTML and CSS accordingly. If everything works fine, you're probably also going to need the logo of your coin as a background image for the new meteor lane. Apart from that, feel free to modify the code however you like and open pull requests or issues for features you'd like to see implemented!

Acknowledgements

This visualisation is implementing on the following APIs:

Furthermore, it uses Google Webfonts and Material Icons.

cryptolights's People

Contributors

bra1n avatar michael1011 avatar

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

Watchers

 avatar  avatar  avatar  avatar  avatar

cryptolights's Issues

Ethereum transaction WebSocket appears to be broken

(Hi, really cool project btw)

I visited the site today noticing Ethereum transactions were absent. Digging in the console I can see the WebSocket it is trying to contact for ethereum tx info is returning a 503. I'm guessing the socket is broken or dead.

Just thought I'd bring this to attention as an issue for anyone wondering why it's not working.

WebSocket connection to 'wss://ethersocket.herokuapp.com/' failed: Error during WebSocket handshake: Unexpected response code: 503

More fluid nano

The nano tx comes in batches every 5-10 sec. The other coins are more fluid. Maybe the nanode api don't allow tighter updates but perhaps build a module to allow it to work with local RPC calls if you run your own node?

Ethereum has no activity

The Ethereum section has been broken for a while. I'm not sure if this project is still maintained but it would be nice if it started working again.

Add XRP (Ripple)

Adding XRP would make the list of top 10 payment coins complete.

Ideas

  • add a (total) live market cap
  • make blocks clickable
  • allow switching between different currencies
  • add a "close" icon to help overlay
  • add Bitcoin Cash
  • add WAVES (http://ws.wavesplatform.com/)
  • add Ripple
  • make statistics expandable and add more statistics
  • make it easier to click on interesting (big, fast, ?) transactions

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.