How codeledge/entitree works
EntiTree is a web app for searching people and other entities, choosing a relationship property, and exploring the resulting interactive tree. The documented workflow supports Wikidata, FactGrid, and Geni data, with language and theme settings; the source also indicates bookmarkable tree expansion and enriched entity details. The graph emphasizes those user-facing stages and the entity-loading/state layers. Some routes and integrations are unsampled, so only documented or indexed relationships are linked.
Main entry points: SearchBar.tsx Search and select · getEntities.ts Relationship entity loading · index.tsx Home page · treeActions.ts Tree expansion actions
Components 24
Search and routes
- Home page
src/pages/index.tsx - Search and select
src/layout/SearchBar.tsx - Search suggestions
src/layout/SearchSuggestions.tsx - Header and navigation
src/layout/Header.tsx - Tree routes
src/pages
Tree exploration
- Tree visualization
src/components/Graph.tsx - Entity cards
src/components/EntityNodeCard.tsx - Relationship controls
src/components/toggle/RelativeToggle.tsx - Tree expansion actions
src/actions/treeActions.ts
Entity data
- Relationship entity loading
src/treeHelpers/getEntities.ts - Wikibase entity formatting
src/lib/formatWikibaseEntity.ts - Geni profile formatting
src/lib/formatGeniProfile.ts - Relationship connectors
src/lib/addEntityConnectors.ts - Geni API client
src/services/apiService.ts - Geni API routes
src/pages/api - Fandom enrichment
src/services/fandomService.ts
State and settings
- Tree state
src/store/treeSlice.ts - Settings state
src/store/settingsSlice.ts - Application store
src/store/index.ts - Settings and themes
src/modals/SettingsModal.tsx - URL bookmarks
src/treeHelpers/addUrlBookmark.ts
Other components
- Explorer
- Wikidata / FactGrid
- Geni service
Connections 29
- Explorer → Home page: opens
README.md - Home page → Header and navigation: renders
src/pages/index.tsx - Home page → Search and select: renders
src/pages/index.tsx - Search and select → Search suggestions: uses
src/layout/SearchBar.tsx - Explorer → Search and select: searches
README.md - Search and select → Wikidata / FactGrid: queries
src/layout/SearchBar.tsx - Search and select → Geni API client: searches
src/layout/SearchBar.tsx - Search and select → Tree routes: routes selection
src/layout/SearchBar.tsx - Explorer → Tree routes: chooses property
README.md - Tree routes → Tree visualization: shows tree
- Tree visualization → Entity cards: renders nodes
- Entity cards → Tree expansion actions: dispatches toggles
src/components/EntityNodeCard.tsx - Tree expansion actions → Relationship entity loading: loads relations
src/actions/treeActions.ts - Relationship entity loading → Wikidata / FactGrid: fetches entities
src/treeHelpers/getEntities.ts - Relationship entity loading → Geni API client: loads profiles
src/treeHelpers/getEntities.ts - Relationship entity loading → Wikibase entity formatting: formats entities
src/treeHelpers/getEntities.ts - Relationship entity loading → Geni profile formatting: formats profiles
src/treeHelpers/getEntities.ts - Relationship entity loading → Relationship connectors: adds connectors
src/treeHelpers/getEntities.ts - Wikibase entity formatting → Fandom enrichment: adds page data
src/lib/formatWikibaseEntity.ts - Entity cards → Fandom enrichment: loads page props
src/components/EntityNodeCard.tsx - Tree expansion actions → Tree state: dispatches state
src/actions/treeActions.ts - Tree expansion actions → URL bookmarks: updates URL
src/actions/treeActions.ts - Search and select → Settings state: reads source
src/layout/SearchBar.tsx - Home page → Settings state: sets source
src/pages/index.tsx - Settings and themes → Settings state: configures
- Application store → Settings state: registers
src/store/index.ts - Application store → Tree state: registers
src/store/index.ts - Geni API client → Geni API routes: calls API routes
src/services/apiService.ts - Geni API routes → Geni service: queries profiles