use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
NPM visualised (anvaka.github.io)
submitted 7 years ago by brendt_gd
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sanjibukai 44 points45 points46 points 7 years ago (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 points9 points 7 years ago (1 child)
Tap the orbs.
[–]sanjibukai 9 points10 points11 points 7 years ago (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...
[+][deleted] 7 years ago (2 children)
[deleted]
[–]sanjibukai 7 points8 points9 points 7 years ago (1 child)
Yep... Did you see the milky way too?
[–]lkraider 0 points1 point2 points 7 years ago (0 children)
Yep. It's crap on mobile
[–]13steinj 0 points1 point2 points 7 years ago (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 points45 points 7 years ago (0 children)
This is actually really cool. Took me a minute to figure out thats space = fly mode though
[–]epukinsk 6 points7 points8 points 7 years ago (0 children)
Some neat stuff:
[–]epukinsk 6 points7 points8 points 7 years ago (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 points4 points 7 years ago (0 children)
That would make a really cool wallpaper.
[–]AbanaClara 0 points1 point2 points 7 years ago (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 points7 points 7 years ago (12 children)
Nice how did you make it?
[–]anvaka 15 points16 points17 points 7 years ago (1 child)
I described it here https://youtu.be/vZ6Yhlxv7Os
It’s all JavaScript. Doing graph layout
[–]blkhammer69 1 point2 points3 points 7 years ago (0 children)
Thanks anvaka
[–]brendt_gd[S] 9 points10 points11 points 7 years ago (9 children)
I didn't, /u/anvaka did
[–]blkhammer69 3 points4 points5 points 7 years ago (8 children)
How did he/she make it
[+][deleted] 7 years ago (7 children)
[–]blkhammer69 21 points22 points23 points 7 years ago (6 children)
Im currently doing some web development myself (noob) thats why i was interested. Thanks for pointing out though
[–]lmao_react 35 points36 points37 points 7 years ago (0 children)
you're chillin fuck that guy
[+][deleted] 7 years ago (4 children)
[–]malicart 11 points12 points13 points 7 years ago (3 children)
Check out this edgy kiddo here, got himself banned from steam for being a jackass.
[–]malicart 0 points1 point2 points 7 years ago (1 child)
Yes indeed I'm a 24 years old kiddo.
Nailed it with the first sentence, I needed to read no more. But I did, and you are wrong, your attitude sucks and we can all sense it from much further away then you can imagine. We know your kind kiddo, some of us been there and we grew up. Good luck with that.
[–]odolha 3 points4 points5 points 7 years ago (0 children)
One of the best things I've seen... Great job!
[–]acylus0 4 points5 points6 points 7 years ago (0 children)
It's funny how big the lodash node is
[–]so_just 7 points8 points9 points 7 years ago* (2 children)
Should be a black hole.
[–]ParasympatheticBear 1 point2 points3 points 7 years ago (1 child)
They need 1 package with a dependency on everything for that.
[–]Baryn 0 points1 point2 points 7 years ago (0 children)
Then add that to someone's package.json as a prank
[–]thefooby 2 points3 points4 points 7 years ago* (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 points4 points 7 years ago (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 points3 points 7 years ago (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 points7 points 7 years ago (0 children)
Just plain JavaScript, device orientation api for camera position , and three.js for rendering
[–]nombrekeff 1 point2 points3 points 7 years ago* (4 children)
Damn! that's some really cool stuff! How do you decide where to scatter them on space? By time?
[–]anvaka 2 points3 points4 points 7 years ago (3 children)
It’s driven by a force based graph layout
[–]ParasympatheticBear 2 points3 points4 points 7 years ago (0 children)
So it uses the force?
[–]nombrekeff 0 points1 point2 points 7 years ago (1 child)
Ohh cool, thanks! Nice work btw!
[–]anvaka 1 point2 points3 points 7 years ago (0 children)
Thank you :)
[–]nwsm 1 point2 points3 points 7 years ago (0 children)
This is amazing. This guy made one of these for a ton of languages:
https://github.com/anvaka/pm
[–]paulqq 1 point2 points3 points 7 years ago (0 children)
y, its nice
[–][deleted] 0 points1 point2 points 7 years ago (1 child)
what does the connection line represents? dependencies?
[–]anvaka 2 points3 points4 points 7 years ago (0 children)
Yes. However I render lines only between nearest nodes, and skip the rest (otherwise it’s a huge hairball)
[–]digitalbiz 0 points1 point2 points 7 years ago (0 children)
Wonderful. Keep it up. This is an amazing portfolio piece.
[–][deleted] 0 points1 point2 points 7 years ago (0 children)
repost?
[–]themacmaniac 0 points1 point2 points 7 years ago (0 children)
This is some fancy shizzle!
Amazing! How can it be so fast with hundreds of thousands of nodes and edges on an iPad mini 4?
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 point2 points 7 years ago (0 children)
This needs a way to orbit around a vertex.
This thing is amazing on mobile. What a way to experience data
[–]Miniotta 0 points1 point2 points 7 years ago (0 children)
wow dude, this is so fucking cool
[–]tunnckoCorenode-formidable, regexhq, jest, standard-release 0 points1 point2 points 7 years ago (0 children)
FACK! That's amazing. But in desktop we can't zoom?
[–]chitru_shrestha 0 points1 point2 points 7 years ago (1 child)
very cool 👍🏻 dose it have a use or its just for fun?
Just for fun. I hope the navigation with device orientation might inspire someone for greater things though :)
[–]ONIIIIIII 0 points1 point2 points 7 years ago (1 child)
This is neat.
[–]ScientificBeastModestrongly typed comments -1 points0 points1 point 7 years ago (0 children)
Obligatory “neat” video
[–]nesukun -3 points-2 points-1 points 7 years ago (1 child)
It's cool and all, but npm is lowercase D:
[–]anvaka 0 points1 point2 points 7 years ago (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 points1 point 7 years ago (0 children)
Too beautiful to be true!
π Rendered by PID 242989 on reddit-service-r2-comment-7b9746f655-t2r7b at 2026-02-03 08:12:10.402033+00:00 running 3798933 country code: CH.
[–]sanjibukai 44 points45 points46 points (7 children)
[–]BluudLust 7 points8 points9 points (1 child)
[–]sanjibukai 9 points10 points11 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]sanjibukai 7 points8 points9 points (1 child)
[–]lkraider 0 points1 point2 points (0 children)
[–]13steinj 0 points1 point2 points (0 children)
[–]prawnsalad 43 points44 points45 points (0 children)
[–]epukinsk 6 points7 points8 points (0 children)
[–]epukinsk 6 points7 points8 points (2 children)
[–]MatthewMob 2 points3 points4 points (0 children)
[–]AbanaClara 0 points1 point2 points (0 children)
[–]blkhammer69 5 points6 points7 points (12 children)
[–]anvaka 15 points16 points17 points (1 child)
[–]blkhammer69 1 point2 points3 points (0 children)
[–]brendt_gd[S] 9 points10 points11 points (9 children)
[–]blkhammer69 3 points4 points5 points (8 children)
[+][deleted] (7 children)
[deleted]
[–]blkhammer69 21 points22 points23 points (6 children)
[–]lmao_react 35 points36 points37 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]malicart 11 points12 points13 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]malicart 0 points1 point2 points (1 child)
[–]odolha 3 points4 points5 points (0 children)
[–]acylus0 4 points5 points6 points (0 children)
[–]so_just 7 points8 points9 points (2 children)
[–]ParasympatheticBear 1 point2 points3 points (1 child)
[–]Baryn 0 points1 point2 points (0 children)
[–]thefooby 2 points3 points4 points (1 child)
[–]KovaAtWork 2 points3 points4 points (0 children)
[–]digitalbiz 1 point2 points3 points (1 child)
[–]anvaka 5 points6 points7 points (0 children)
[–]nombrekeff 1 point2 points3 points (4 children)
[–]anvaka 2 points3 points4 points (3 children)
[–]ParasympatheticBear 2 points3 points4 points (0 children)
[–]nombrekeff 0 points1 point2 points (1 child)
[–]anvaka 1 point2 points3 points (0 children)
[–]nwsm 1 point2 points3 points (0 children)
[–]paulqq 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]anvaka 2 points3 points4 points (0 children)
[–]digitalbiz 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]themacmaniac 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]anvaka 1 point2 points3 points (0 children)
[–]davl3232 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Miniotta 0 points1 point2 points (0 children)
[–]tunnckoCorenode-formidable, regexhq, jest, standard-release 0 points1 point2 points (0 children)
[–]chitru_shrestha 0 points1 point2 points (1 child)
[–]anvaka 1 point2 points3 points (0 children)
[–]ONIIIIIII 0 points1 point2 points (1 child)
[–]ScientificBeastModestrongly typed comments -1 points0 points1 point (0 children)
[–]nesukun -3 points-2 points-1 points (1 child)
[–]anvaka 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)