882 karma · joined Jan 4, 2015 (11y ago) · 102 submissions
Shortwave: https://shortwave.com Personal: https://jwn.gr
comment 8y ago · link · parent
[1] https://github.com/jwngr/sdow/commit/6e42e06488a592784e5d3d2...
comment 8y ago · link · parent
[1] https://github.com/jwngr/sdow/commit/6e42e06488a592784e5d3d2...
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
So, the website files are hosted on Firebase while the backend is hosted on GCE. The database is actually not hosted; it's just a SQLite file stored on my GCE instance.
comment 8y ago · link · parent
[1] https://github.com/jwngr/sdow#database-creation-process [2] https://lists.debian.org/debian-kernel/2017/12/msg00265.html
comment 8y ago · link · parent
Every time a query is made, a bi-directional breadth-first search[3] is run which uses the |-separated incoming and outgoing links and runs a fairly standard BFS algorithm. A lot of the hard work was precomputed, which minimizes the number of required database queries and makes each search respond fairly quickly.
[1] https://github.com/jwngr/sdow/blob/master/database/buildData... [2] https://github.com/jwngr/sdow#database-creation-process [3] https://github.com/jwngr/sdow/blob/master/sdow/breadth_first...
comment 8y ago · link · parent
[1] https://github.com/jwngr/sdow/blob/a2699dc95d884ec64a4641630... [2] https://github.com/jwngr/sdow/blob/a2699dc95d884ec64a4641630...
comment 8y ago · link · parent
And yes, the graph is not connected (there are both nodes with no outgoing links and with no incoming links), but over 99% of the pages are connected, so the answer would still be interesting and worthwhile.
comment 8y ago · link · parent
Can you tell me more about what you mean by filtering by mutual paths?
comment 8y ago · link · parent
comment 8y ago · link · parent
[1] https://github.com/jwngr/sdow/blob/a2699dc95d884ec64a4641630...
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
The graph visualization / performance is definitely not ideal. I spent a ton of time trying to make d3 more performant and layout the graph more nicely, but ultimately I just had to cut my losses and go with what I had. I do think there is room for improvement and I'll look into your suggestion, which is something I didn't consider. SVG export is also a great idea!
comment 8y ago · link · parent
comment 8y ago · link · parent
[1] https://github.com/jwngr/sdow/blob/a2699dc95d884ec64a4641630...
comment 8y ago · link · parent
* Frontend: React (Create React App)
* Backend: Python Flask
* Database: SQLite
* Web (frontend) hosting: Firebase Hosting
* Server (backend) hosting: Google Compute Engine (it runs fine on a tiny f1-micro instance)
All the code is open source[1] and I'm happy to answer any questions about building or maintaining it!85.
Show HN: Six Degrees of Wikipedia(sixdegreesofwikipedia.com ↗)
1176 points · by jwngr · 8y ago · 324 comments
86.
Tic-tac-tic-tac-toe(tic-tac-tic-tac-toe.firebaseapp.com ↗)
1 points · by jwngr · 9y ago · discuss
87.
Firebase JavaScript SDK on GitHub(github.com ↗)
2 points · by jwngr · 9y ago · discuss