This project renders dependency graphs of npm packages. It uses the npm registry to obtain package metadata, sprotty for rendering the graphs, and ELK for automatic layout. It can be run either as a standalone application with a simple web page or as a Theia extension. Theia supports both the web browser and Electron.
The standalone application is available at npm-dependencies.com. Find more details on this project in this blog post.
You need Yarn in order to build this project.
$ git clone https://github.com/TypeFox/npm-dependency-graph.git
$ cd npm-dependency-graph
$ yarn
$ cd standalone-app
$ yarn start
Point your web browser to http://localhost:3001/
$ cd browser-app
$ yarn start
Point your web browser to http://localhost:3000/
$ yarn rebuild:electron
$ cd electron-app
$ yarn start
If you would like to switch back to the browser app, run yarn rebuild:browser
.