How endlesssjourney2/anime-app works
This is an anime search and detail-browsing web app backed by AniList’s GraphQL API. Users search a paginated anime catalog, choose a result, then view title information, characters, and related works. The graph follows the documented routes and sampled hook/API calls; some component wiring is supported by the source index, while unsampled implementation details are not inferred.
Main entry points: AnimeDetails.tsx Details page · Main.tsx Search page · router.tsx Route dispatch · useAnimeSearch.tsx Search state
Components 25
App and navigation
- React entry
src/main.tsx - App
src/App.tsx - Route dispatch
src/router.tsx - Page layout
src/Layout/Layout.tsx - Site header
src/features/Header/Header.tsx
Anime search
- Search page
src/pages/Main/Main.tsx - Search state
src/hooks/useAnimeSearch.tsx - Input debounce
src/hooks/useDebounce.ts - Anime result
src/pages/Main/components/AnimeItem/AnimeItem.tsx
Title details
- Details page
src/pages/Title/AnimeDetails.tsx - Detail state
src/hooks/useAnimeDetails.tsx - Title overview
src/pages/Title/components/AnimeHeader/AnimeHeader.tsx - Character section
src/pages/Title/components/CharactersSection/CharactersSection.tsx - Character card
src/pages/Title/components/CharactersSection/components/CharacterCard/CharacterCard.tsx - Relations section
src/pages/Title/components/RelationsSection/RelationsSection.tsx - Relation filter
src/helpers/displayableRelations.ts - Relation card
src/pages/Title/components/RelationsSection/components/RelationCard/RelationCard.tsx
Shared data and UI
- AniList API
src/api/aniListApi.ts - Loading indicator
src/features/components/LoadingComponent/LoadingComponent.tsx - Status badge
src/features/components/StatusBadge/StatusBadge.tsx - Media types
src/types/AniList.ts - Character types
src/types/Character.ts - Relation types
src/types/Relation.ts
Other components
- Browser user
- AniList GraphQL
Connections 25
- Browser user → React entry: opens app
- React entry → App: renders
src/main.tsx - App → Route dispatch: uses routes
src/App.tsx - Route dispatch → Page layout: wraps routes
src/router.tsx - Page layout → Site header: renders
src/Layout/Layout.tsx - Route dispatch → Search page: routes search
src/router.tsx - Route dispatch → Details page: routes title
src/router.tsx - Browser user → Search page: searches catalog
- Search page → Search state: uses search state
src/pages/Main/Main.tsx - Search state → Input debounce: debounces input
src/hooks/useAnimeSearch.tsx - Search state → AniList API: requests results
src/hooks/useAnimeSearch.tsx - AniList API → AniList GraphQL: posts GraphQL
src/api/aniListApi.ts - Search page → Anime result: renders results
src/pages/Main/Main.tsx - Search page → Loading indicator: shows loading
src/pages/Main/Main.tsx - Anime result → Status badge: renders badge
src/pages/Main/components/AnimeItem/AnimeItem.tsx - Details page → Detail state: loads title
src/pages/Title/AnimeDetails.tsx - Detail state → AniList API: requests title
src/hooks/useAnimeDetails.tsx - Details page → Loading indicator: shows loading
src/pages/Title/AnimeDetails.tsx - Details page → Title overview: renders overview
src/pages/Title/AnimeDetails.tsx - Details page → Character section: renders characters
src/pages/Title/AnimeDetails.tsx - Character section → Character card: renders cards
src/pages/Title/components/CharactersSection/CharactersSection.tsx - Details page → Relations section: renders relations
src/pages/Title/AnimeDetails.tsx - Relations section → Relation filter: filters relations
src/pages/Title/components/RelationsSection/RelationsSection.tsx - Relations section → Relation card: renders cards
src/pages/Title/components/RelationsSection/RelationsSection.tsx - Title overview → Status badge: renders badge
src/pages/Title/components/AnimeHeader/AnimeHeader.tsx