How henrymedeiros/yugioh-deck-builder works
Yu-Gi-Oh! Deck Builder is a React frontend for finding cards, assembling decks, inspecting card and deck information, and importing or exporting .ydk files. Users search and filter the external card catalog, select results into main or extra decks, then inspect statistics or save a deck; loading a deck resolves its card IDs through the API. The graph follows relationships shown in excerpts and the source index. Several components and contexts are indexed but unsampled, so their internal interactions are not asserted.
Main entry points: App.jsx Application Shell · CardsList.jsx Card Results · MainDeck.jsx Main Deck · ExtraDeck.jsx Extra Deck
Components 24
Application
- Application Shell
src/App.jsx - Deck Controls
src/components/NavBar.jsx - Footer
src/components/Footer.jsx
Card Search
- Search Filters
src/components/Search.jsx - Search View
src/components/CardsSearch.jsx - Card Results
src/components/CardsList.jsx - Card Tile
src/components/Card.jsx - YGOPRODeck API
Deck Building
- Deck Views
src/components/Decks.jsx - Main Deck
src/components/MainDeck.jsx - Extra Deck
src/components/ExtraDeck.jsx - Deck Statistics
src/components/DeckStats.jsx - Deck Area Title
src/components/AreaTitle.jsx - Card Type Icons
src/components/CardIcon.jsx - Deck Options
src/components/Options.jsx
Card Details
- Card Information
src/components/CardInfo.jsx
Shared State
- Search State
src/contexts/SearchContext.jsx - Deck State
src/contexts/DecksContext.jsx - Main Deck State
src/contexts/MainDeckContext.jsx - Extra Deck State
src/contexts/ExtraDeckContext.jsx - Selected Card State
src/contexts/SelectedCardContext.jsx - Card and Deck Helpers
src/utils/helpers.js - Card Constants
src/lib/constants.js
Other components
- Deck Builder User
Connections 35
- Deck Builder User → Application Shell: uses
README.md - Application Shell → Deck Controls: renders
src/App.jsx - Application Shell → Card Information: renders
src/App.jsx - Application Shell → Deck Views: renders
src/App.jsx - Application Shell → Search View: renders
src/App.jsx - Application Shell → Footer: renders
src/App.jsx - Search View → Search Filters: renders
src/components/CardsSearch.jsx - Search View → Card Results: renders
src/components/CardsSearch.jsx - Search Filters → YGOPRODeck API: requests cards
src/components/Search.jsx - Search Filters → Search State: updates results
src/components/Search.jsx - Card Results → Search State: reads results
src/components/CardsList.jsx - Card Results → Card Tile: renders
src/components/CardsList.jsx - Card Results → Deck State: adds cards
src/components/CardsList.jsx - Card Results → Selected Card State: selects card
src/components/CardsList.jsx - Deck Controls → YGOPRODeck API: fetches card IDs
src/components/NavBar.jsx - Deck Controls → Deck State: loads or clears
src/components/NavBar.jsx - Deck Controls → Card and Deck Helpers: converts card data
src/components/NavBar.jsx - Deck Views → Main Deck: renders
src/components/Decks.jsx - Deck Views → Extra Deck: renders
src/components/Decks.jsx - Main Deck → Deck Statistics: renders
src/components/MainDeck.jsx - Extra Deck → Deck Statistics: renders
src/components/ExtraDeck.jsx - Main Deck → Deck State: reads deck
src/components/MainDeck.jsx - Extra Deck → Deck State: reads deck
src/components/ExtraDeck.jsx - Main Deck → Selected Card State: reads selection
src/components/MainDeck.jsx - Extra Deck → Selected Card State: reads selection
src/components/ExtraDeck.jsx - Deck Statistics → Card and Deck Helpers: calculates prices
src/components/DeckStats.jsx - Deck Statistics → Card Type Icons: renders
src/components/DeckStats.jsx - Main Deck → Deck Area Title: renders
src/components/MainDeck.jsx - Extra Deck → Deck Area Title: renders
src/components/ExtraDeck.jsx - Card Information → Selected Card State: reads selection
src/components/CardInfo.jsx - Deck Options → Main Deck State: uses state
src/components/Options.jsx - Deck Options → Extra Deck State: uses state
src/components/Options.jsx - Deck Builder User → Deck Controls: imports or exports
README.md - Deck Builder User → Search Filters: searches cards
README.md - Deck Builder User → Deck Views: builds decks
README.md