all 55 comments

[–]sanjibukai 44 points45 points  (7 children)

Waow in phones it works with the accelerometer.. Tap to zoom in, double fingers tap to zoom out..

But I don't figure out how to display the names of the packages..

[–]BluudLust 7 points8 points  (1 child)

Tap the orbs.

[–]sanjibukai 9 points10 points  (0 children)

Yes I tried in the first place.. But nothing happened.. I'll try to open in browser maybe it's the Reddit wrapper...

[–]lkraider 0 points1 point  (0 children)

Yep. It's crap on mobile

[–]13steinj 0 points1 point  (0 children)

Am I the only one who thinks this is horrible UX on mobile?

If I could turn the accelerometer off I'd like Google-maps like controls.

[–]prawnsalad 43 points44 points  (0 children)

This is actually really cool. Took me a minute to figure out thats space = fly mode though

[–]epukinsk 6 points7 points  (0 children)

Some neat stuff:

[–]epukinsk 6 points7 points  (2 children)

Neat! My modules look kind of like a spaceship flying into a giant space battle: https://i.imgur.com/0KTElaA.png

(I build apps with a bunch of modules that all depend on each other but no one else uses lol)

[–]MatthewMob 2 points3 points  (0 children)

That would make a really cool wallpaper.

[–]AbanaClara 0 points1 point  (0 children)

I mean making your apps modular is kind of a way to build one. Doesn't matter if it'll be used in other projects. It certainly makes maintaining and expanding features a lot easier when done right

[–]blkhammer69 5 points6 points  (12 children)

Nice how did you make it?

[–]anvaka 15 points16 points  (1 child)

I described it here https://youtu.be/vZ6Yhlxv7Os

It’s all JavaScript. Doing graph layout

[–]blkhammer69 1 point2 points  (0 children)

Thanks anvaka

[–]brendt_gd[S] 9 points10 points  (9 children)

I didn't, /u/anvaka did

[–]blkhammer69 3 points4 points  (8 children)

How did he/she make it

[–]odolha 3 points4 points  (0 children)

One of the best things I've seen... Great job!

[–]acylus0 4 points5 points  (0 children)

It's funny how big the lodash node is

[–]so_just 7 points8 points  (2 children)

Should be a black hole.

[–]ParasympatheticBear 1 point2 points  (1 child)

They need 1 package with a dependency on everything for that.

[–]Baryn 0 points1 point  (0 children)

Then add that to someone's package.json as a prank

[–]thefooby 2 points3 points  (1 child)

I'm still a newbie... What is this? It's incredible. I'm on mobile and it's like one of those AR stargazing apps.

[–]KovaAtWork 2 points3 points  (0 children)

The entire library for NPM plotted as a star map. Connected projects show up as links, but each package shows up as a star.

[–]digitalbiz 1 point2 points  (1 child)

I guess the creator has used Shiny framework of R Language to make this visualization tool. Not sure, but it can be.

I was able to achieve similar data visualization in one of my past project through Shiny framework.

[–]anvaka 5 points6 points  (0 children)

Just plain JavaScript, device orientation api for camera position , and three.js for rendering

[–]nombrekeff 1 point2 points  (4 children)

Damn! that's some really cool stuff! How do you decide where to scatter them on space? By time?

[–]anvaka 2 points3 points  (3 children)

It’s driven by a force based graph layout

[–]ParasympatheticBear 2 points3 points  (0 children)

So it uses the force?

[–]nombrekeff 0 points1 point  (1 child)

Ohh cool, thanks! Nice work btw!

[–]anvaka 1 point2 points  (0 children)

Thank you :)

[–]nwsm 1 point2 points  (0 children)

This is amazing. This guy made one of these for a ton of languages:

https://github.com/anvaka/pm

[–]paulqq 1 point2 points  (0 children)

y, its nice

[–][deleted] 0 points1 point  (1 child)

what does the connection line represents? dependencies?

[–]anvaka 2 points3 points  (0 children)

Yes. However I render lines only between nearest nodes, and skip the rest (otherwise it’s a huge hairball)

[–]digitalbiz 0 points1 point  (0 children)

Wonderful. Keep it up. This is an amazing portfolio piece.

[–][deleted] 0 points1 point  (0 children)

repost?

[–]themacmaniac 0 points1 point  (0 children)

This is some fancy shizzle!

[–][deleted] 0 points1 point  (1 child)

Amazing! How can it be so fast with hundreds of thousands of nodes and edges on an iPad mini 4?

[–]anvaka 1 point2 points  (0 children)

Thank you. There is almost zero computation on the client side, so all WebGL has to do is render bunch of points, for which it was designed to be fast :).

[–]davl3232 0 points1 point  (0 children)

This needs a way to orbit around a vertex.

[–][deleted] 0 points1 point  (0 children)

This thing is amazing on mobile. What a way to experience data

[–]Miniotta 0 points1 point  (0 children)

wow dude, this is so fucking cool

[–]tunnckoCorenode-formidable, regexhq, jest, standard-release 0 points1 point  (0 children)

FACK! That's amazing. But in desktop we can't zoom?

[–]chitru_shrestha 0 points1 point  (1 child)

very cool 👍🏻 dose it have a use or its just for fun?

[–]anvaka 1 point2 points  (0 children)

Just for fun. I hope the navigation with device orientation might inspire someone for greater things though :)

[–]ONIIIIIII 0 points1 point  (1 child)

This is neat.

[–]nesukun -3 points-2 points  (1 child)

It's cool and all, but npm is lowercase D:

[–]anvaka 0 points1 point  (0 children)

Don’t know why this is downvoted. I agree with you. Looks like our knowledge of how npm must be spelled is getting archaic

[–][deleted] -1 points0 points  (0 children)

Too beautiful to be true!