Skip to content
/ diskusage Public

Simple node application to visualise disk usage on a computer

Notifications You must be signed in to change notification settings

rnjn/diskusage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages