Philosophy, origin of everything.
An interactive demonstration of the Wikipedia "Getting to Philosophy" phenomenon.
When you click the first link in the main text of almost any Wikipedia article and keep repeating the process, you usually end up at Philosophy.
Wikisophy is an interactive web app that automates this phenomenon by starting from any article and following each first link, showing how diverse topics converge on philosophy.
- Search for an article or let the app pick a random one.
- The app will display the path taken to reach the "Philosophy" article, along with the number of steps.
- Based on the your journey, you may reach Philosophy, enter a loop or hit a dead end.
The application follows these rules to find the "first link":
- Only considers links in the main article text
- Skips links inside parentheses
- Skips italicized text
- Ignores infoboxes, tables, hatnotes, and navigation elements
- Excludes Wikipedia namespace links (File:, Help:, Category:, etc.)
- Bun (recommended) or Node.js
# Clone the repository
git clone https://github.com/mdonmez/wikisophy.git
cd wikisophy
# Install dependencies
bun install
# Start the development server
bun run dev
# Open http://localhost:5173 in your browser# Create an optimized production build
bun run build
# Preview the production build
bun run previewYou can contribute by opening an issue or submitting a pull request.
This project is licensed under the MIT License.