sreeix / diskusage

Simple node application to visualise disk usage on a computer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

diskusage

Simple node application to visualise disk usage on a computer. Run the following in order.

  1. npm install

This install all the modules and dependencies

  1. run: node walker.js [path]

this creates a json representation of your file system (with the path above as root), and and saves it as public/xTree.json File sizes are in multiples of 1024. Many (eg. Macintosh) OSes follow the base 10 system, so your observation might differ from what your OS tells you, but not by a lot.

  1. run: node app.js

starts a express app which reads from the xTree.json file.

  1. open http://localhost:3000

You should see a bubble graph like below.

  • Rendering SVG is very slow for a lot of data (or maybe I am doing something wrong)
  • Renders upto "n" levels in the same page - see call to limitDepth method.
  • GETs the next level of depth on click, after zoom.
  • Why zoom? Because its fancy :)

alt text

TODO:

  • Slow performance - serve only the relevant levels
  • Treemap view would be nice.
  • Publish to NPM
  • Do all actions from the Web UI.

About

Simple node application to visualise disk usage on a computer


Languages

Language:JavaScript 99.6%Language:CSS 0.4%