pull down to refresh

Something I worked on over the weekend ^_^

It shows the largest connected component of the network generated from Stacker News posts, connected via internal SN links.

(Posts not connected to this largest connected component are not included)

I'm especially proud of the spiraling effect, which I accomplished using a compression algorithm to push nodes out from the center and pull them inwards from the outer rim, and then creating a spiral effect so make the overall graph more circular.

It went from this:

To this:

reply

~Stacker_Sports is an island and ~HealthAndFitness is relegated to “other”

Oof @grayruby @Undisciplined @Aardvark

reply

Awesome, nice work! Are ~Stacker_Sports and ~AI out on the edges because they don't connect as well with the other territorys?

reply

Yeah I think so. ~AI has multiple clusters of points due to @optimism's weekly summary posts, each one generates one of these clusters.

~Stacker_Sports tends to have these long chains because I think they run a lot of contests with update posts that reference the previous post.

~science's daily puzzles also led to this effect

reply

Cool! One day I'll get those started again. One day...

reply

That's a nice work there!

reply
30 sats \ 0 replies \ @jasonb 5 Nov

There’s some t-shirts opportunities in there for sure.

reply

Wow looks amazing!

reply

really cool visual representation of the site!

thought this was kinda ironic, uppermost node with only one connection that you could say, unravels from there to the rest and its a post about a circle puzzle

reply

Haha what a fun coincidence

reply

Cool! What's the toolchain?

reply

python, networkx, and pygraphviz to build the graph and node positions.

A custom algorithm to create the spiraling effect

just html and cytoscape to create the app

hosted on github pages

I used AI to help me out a lot. Most of the index.html was built by ChatGPT/Claude, but I did have to do a lot of customization afterwards.

reply

Looks super interesting and fun. I feel like a newbie, each time I see some coding done around here. I am far of that domain.

reply
<script src="https://cdn.jsdelivr.net/npm/cytoscape@3.27.0/dist/cytoscape.min.js"></script>

I love standalone htmls with getting javascript from CDN. It's such a simple yet powerful way to create ad-hoc documents.

reply
30 sats \ 1 reply \ @plebpoet 6 Nov

holy sh*t dude

reply

Data is beautiful

reply
0 sats \ 0 replies \ @anon 7 Nov

It is kind of beautiful! title: "Look at My Horse, My Horse Is Amazing..."—On Custody, Tech, and SN's Future

I remember coming across this story when it was new, and seeing it today at the center of a real mass of stories gives me a pretty good feeling that things are running smoothly compared to back then.

reply