How alex-m-2013/mh-database works
MH Database is a browser-based Monster Hunter reference for five game releases. Users navigate to a game, search or filter its monster cards, and open a monster detail page; the app also offers favourites, informational/settings pages, mobile-friendly navigation, and light/dark themes. The graph reflects documented routing and sampled component calls. The fetch implementation and several page/component bodies were not excerpted, so uncertain data and favourites wiring is omitted or marked unverified.
Main entry points: App.tsx App routes · Main.tsx Game listing · MonsterPage.tsx Monster detail · NavBar.tsx Navigation
Components 20
Application navigation
- App routes
src/App.tsx - Navigation
src/components/NavBar/NavBar.tsx - Side navigation
src/components/NavBar/Sidenav/Sidenav.tsx - About page
src/components/pages/About.tsx
Monster browsing
- Game listing
src/components/Main/Main.tsx - Monster search
src/components/Main/SearchBar.tsx - Weakness filter
src/components/Main/Filter.tsx - Monster cards
src/components/Main/MonsterCards.tsx - Monster card
src/components/Main/MonsterCard.tsx
Monster details
- Monster detail
src/components/pages/MonsterPage.tsx - Monster fetch
src/utils/fetchMonsters.ts - Game data helpers
src/utils/games.ts - Monster models
src/utils/monsters.ts
User preferences
- Favourites page
src/components/pages/Favourites.tsx - Favourite control
src/components/FavouriteButton.tsx - Theme switcher
src/components/NavBar/ThemeSwitcher.tsx - Settings page
src/components/pages/Settings.tsx
Monster catalog
- Monster icons
public/assets/icons/Monsters - Game datasets
public/data
Other components
- User
Connections 19
- User → App routes: opens
README.md - App routes → Navigation: renders
src/App.tsx - App routes → Game listing: routes to
src/App.tsx - App routes → Monster detail: routes to
src/App.tsx - App routes → Favourites page: routes to
src/App.tsx - App routes → Settings page: routes to
src/App.tsx - App routes → About page: routes to
src/App.tsx - Navigation → Side navigation: renders
src/components/NavBar/NavBar.tsx - Navigation → Theme switcher: renders
src/components/NavBar/NavBar.tsx - Game listing → Monster search: renders
src/components/Main/Main.tsx - Game listing → Weakness filter: renders
src/components/Main/Main.tsx - Game listing → Monster cards: renders
src/components/Main/Main.tsx - Monster cards → Monster card: uses
src/components/Main/MonsterCards.tsx - Monster detail → Monster fetch: loads monsters
src/components/pages/MonsterPage.tsx - Monster detail → Game data helpers: uses helpers
src/components/pages/MonsterPage.tsx - Game data helpers → Monster models: uses models
src/utils/games.ts - Monster detail → Monster icons: loads icons
src/components/pages/MonsterPage.tsx - Favourites page → Favourite control: uses
src/components/pages/Favourites.tsx - Monster fetch → Game datasets: loads datasets