How ananyo-sen-b2530066/pokedex works
Rotom-Dex is a Pokédex web app: users browse and filter Pokémon, inspect moves, abilities, evolutions and weaknesses, and play two guessing games. The main runtime path is the browser calling the Express API, which serves data assembled by the fetcher from PokéAPI or disk cache. The graph retains documented frontend capabilities even where implementation excerpts are partial; those links are documented or marked unverified. Source excerpts establish core service calls, but not every API route or game interaction.
Main entry points: app.ts Express API · app.js Pokédex interface · dataFetcher.ts Data loading and queries · pokeapiClient.ts PokéAPI client
Components 19
Browser experience
- Pokédex interface
public/app.js - Search and browse
public/app.js - Pokemon details
public/app.js - Guess Pokémon
public/app.js - Dex Duel
public/app.js
API and runtime
- Express API
src/app.ts - Server launcher
src/index.ts - Netlify function
netlify/functions/api.ts
Pokédex domain
- Data loading and queries
src/services/dataFetcher.ts - Pokemon and move models
src/models/pokemonModel.ts - Weakness analysis
src/services/weaknessCalculator.ts - Type effectiveness chart
src/types/typeChart.ts - G-Max and Z moves
src/services/gmaxMoves.ts - Project path resolver
src/services/projectPaths.ts
Data sources
- PokéAPI client
src/services/pokeapiClient.ts - PokéAPI
- Disk cache
data/cache.json - Curated dex data
data
Other components
- Player
Connections 21
- Player → Pokédex interface: uses
README.md - Pokédex interface → Express API: requests API
public/app.js - Pokédex interface → Search and browse: provides
public/app.js - Pokédex interface → Pokemon details: provides
README.md - Pokédex interface → Guess Pokémon: provides
README.md - Pokédex interface → Dex Duel: provides
README.md - Server launcher → Express API: starts
src/index.ts - Netlify function → Express API: wraps
netlify/functions/api.ts - Express API → Data loading and queries: queries
src/app.ts - Express API → G-Max and Z moves: looks up moves
src/app.ts - Express API → Project path resolver: resolves files
src/app.ts - Data loading and queries → PokéAPI client: fetches data
src/services/dataFetcher.ts - Data loading and queries → Weakness analysis: computes weaknesses
src/services/dataFetcher.ts - Data loading and queries → Pokemon and move models: builds records
src/services/dataFetcher.ts - Weakness analysis → Type effectiveness chart: reads chart
src/services/weaknessCalculator.ts - Weakness analysis → Pokemon and move models: uses types
src/services/weaknessCalculator.ts - PokéAPI client → Project path resolver: resolves cache
src/services/pokeapiClient.ts - PokéAPI client → PokéAPI: fetches records
src/services/pokeapiClient.ts - PokéAPI client → Disk cache: reads and writes
README.md - Server launcher → Data loading and queries: refreshes data
src/index.ts - Express API → Curated dex data: loads metadata
src/app.ts