Coder Social home page Coder Social logo

guifi-graph's Introduction

guifi-graph

This is a little program that consumes guifi.net's data, and generates a portable HTML file that, when opened in a browser, turns into an interactive graph showing the nodes, the links between them, and more info.

The HTML is minified and has no dependencies, so you can use it wherever you like. When compressed, it usually weigths around 2MB (and it contains the whole network!).

It lets you filter the graph by zone at start. Then, it puts the corresponding nodes in a force-field directed graph, ending in a beautiful layout.

This tool isn't ideal to visualize the real distribution of the nodes in the terrain; use guifi-earth for that matter

Installation

You should have Node.JS already installed. Then:

$ git clone https://github.com/jmendeth/guifi-earth.git
$ cd guifi-earth
$ npm install

That's it.

Usage

You should first download guifi.net's CNML:

$ wget http://guifi.net/snpservices/data/guifi.cnml

Then, build the HTML graph:

$ gulp

The graph will be generated in build/guifi.<date>.html, where <date> is the date, in ISO 8601 Extended Format, that guifi.cnml was generated.

Tweaking

If you know JavaScript, it's easy to tweak the appearence and behaviour of the graph. These are the files you probably want to modify.

styles.scss contains, well, the SCSS.
main.js contains the logic to render the graph and UI.
assets/ contains images and other resources used.
vendor/ contains the third-party JS libraries used.
view.html contains the HTML to put it all together.

Thanks to SubtlePatterns for the background.

guifi-graph's People

Watchers

James Cloos avatar Alba Mendez 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.