MCPcopy
hub / github.com/jwngr/sdow

github.com/jwngr/sdow @main sqlite

repository ↗ · DeepWiki ↗
87 symbols 227 edges 44 files 28 documented · 32%
README

Six Degrees of Wikipedia

Six Degrees of Wikipedia Logo

Six Degrees of Wikipedia traverses Wikipedia page links to find the shortest path between any two of the millions of pages on the world's largest free online encyclopedia.

Documentation

  • Data Source - Where data for the project comes from, including how to download or generate the Six Degrees of Wikipedia database yourself.
  • Web Server Setup - How to set up a web server to run a production version of the Six Degrees of Wikipedia website.
  • Local Setup - How to set up your local machine to run your own version of Six Degrees of Wikipedia.
  • Miscellaneous - A collection of interesting searches and edge case page titles.

Blog

Inspiration

Resources

Contributing

Contributions to the project are welcome! See the contribution page for details on how to get everything set up in your local environment.

Extension points exported contracts — how you extend this code

DefaultTheme (Interface)
(no doc)
website/src/styled.d.ts
FetchShortestPathsResponse (Interface)
(no doc)
website/src/api.ts
WikipediaPage (Interface)
(no doc)
website/src/types.ts
ShortestPathsApiResponse (Interface)
(no doc)
website/src/types.ts
ShortestPathsErrorResponse (Interface)
(no doc)
website/src/types.ts

Core symbols most depended-on inside this repo

with_commas
called by 15
scripts/generate_updated_wikipedia_facts.py
get_percent_of_pages
called by 9
scripts/generate_updated_wikipedia_facts.py
getNumberWithCommas
called by 9
website/src/utils.ts
getWikipediaPageUrl
called by 5
website/src/utils.ts
query_wikipedia_api
called by 3
scripts/lookup_wikipedia_page_info.py
getRandomPageTitle
called by 3
website/src/utils.ts
fetch_page
called by 2
sdow/database.py
fetch_links_count_helper
called by 2
sdow/database.py

Shape

Function 53
Interface 17
Method 13
Class 2
Route 2

Languages

TypeScript60%
Python40%

Modules by API surface

sdow/database.py12 symbols
sdow/helpers.py10 symbols
sdow/server.py8 symbols
website/src/utils.ts5 symbols
website/src/components/ResultsGraph.tsx5 symbols
website/src/components/Home.tsx5 symbols
website/src/types.ts4 symbols
website/src/components/ResultsList.tsx4 symbols
website/src/components/common/StyledTextLink.tsx3 symbols
website/src/components/blog/posts/searchResultsAnalysis/data.ts3 symbols
website/src/components/Results.tsx3 symbols
website/src/components/charts/BarChart.tsx2 symbols

Dependencies from manifests, versioned

@eslint/js10.0.1 · 1×
@types/d37.4.3 · 1×
@types/lodash4.17.24 · 1×
@types/node25.9.1 · 1×
@types/react19.2.15 · 1×
@types/react-autosuggest10.1.11 · 1×
@types/react-dom19.2.3 · 1×
@types/react-modal3.16.3 · 1×
@vitejs/plugin-react6.0.2 · 1×
d37.9.0 · 1×
eslint10.4.0 · 1×

For agents

$ claude mcp add sdow \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact