How kingjrm/genshinarchive works
Teyvat Archive is a Next.js reference and exploration site for Genshin Impact story content. Visitors enter through the home page or shared navigation, then browse character, classified-file, story-arc, location, volume, and lore views; selection state and character profiles are managed by the shared archive shell. Content is held in typed local datasets rather than a database or API. The graph preserves the documented browsing branches and shared motion layer; connections to unsampled implementations are included only where the README or source index supports them.
Main entry points: ArchiveShell.tsx Archive shell · ArcsExplorer.tsx Arc explorer · characters.ts Character records · PageMotion.tsx Page motion
Components 24
App routes
- Home page
src/app/page.tsx - Characters route
src/app/characters/page.tsx - Classified route
src/app/classified-files/page.tsx - Arcs route
src/app/arcs/page.tsx - Locations route
src/app/locations/page.tsx - Volumes route
src/app/volumes/page.tsx - Lore route
src/app/lore/page.tsx
Archive explorers
- Character explorer
src/components/CharactersExplorer.tsx - Classified explorer
src/components/DevilsExplorer.tsx - Arc explorer
src/components/ArcsExplorer.tsx - Location explorer
src/components/LocationsExplorer.tsx - Volume gallery
src/components/VolumesExplorer.tsx
Archive content
- Character records
src/data/characters.ts - Classified records
src/data/devils.ts - Story arc records
src/data/arcs.ts - Location records
src/data/locations.ts - Volume records
src/data/volumes.ts - Lore records
src/data/lore.ts
Shared experience
- Archive shell
src/components/ArchiveShell.tsx - Character profile
src/components/CharacterProfile.tsx - Modal accessibility
src/lib/useModal.ts
Motion system
- Page motion
src/animations/PageMotion.tsx - Selection motion
src/animations/usePanelMotion.ts
Other components
- Visitor
Connections 44
- Visitor → Home page: opens
README.md - Visitor → Characters route: browses
README.md - Visitor → Classified route: browses
README.md - Visitor → Arcs route: browses
README.md - Visitor → Locations route: browses
README.md - Visitor → Volumes route: browses
README.md - Visitor → Lore route: browses
README.md - Characters route → Character explorer: renders
src/app/characters/page.tsx - Classified route → Classified explorer: renders
src/app/classified-files/page.tsx - Arcs route → Arc explorer: renders
src/app/arcs/page.tsx - Locations route → Location explorer: renders
src/app/locations/page.tsx - Volumes route → Volume gallery: renders
src/app/volumes/page.tsx - Character explorer → Character records: reads
src/components/CharactersExplorer.tsx - Classified explorer → Classified records: reads
src/components/DevilsExplorer.tsx - Arc explorer → Story arc records: reads
src/components/ArcsExplorer.tsx - Arc explorer → Character records: reads
src/components/ArcsExplorer.tsx - Arc explorer → Classified records: reads
src/components/ArcsExplorer.tsx - Arc explorer → Location records: reads
src/components/ArcsExplorer.tsx - Location explorer → Location records: reads
src/components/LocationsExplorer.tsx - Location explorer → Story arc records: reads
src/components/LocationsExplorer.tsx - Location explorer → Character records: reads
src/components/LocationsExplorer.tsx - Volume gallery → Volume records: reads
src/components/VolumesExplorer.tsx - Volume gallery → Story arc records: reads
src/components/VolumesExplorer.tsx - Lore route → Lore records: reads
src/app/lore/page.tsx - Lore route → Character records: reads
src/app/lore/page.tsx - Home page → Character records: reads
src/app/page.tsx - Home page → Story arc records: reads
- Home page → Archive shell: uses navigation
- Archive shell → Character records: loads records
src/components/ArchiveShell.tsx - Archive shell → Character profile: renders
src/components/ArchiveShell.tsx - Archive shell → Modal accessibility: uses
src/components/ArchiveShell.tsx - Character explorer → Archive shell: gets selection
src/components/CharactersExplorer.tsx - Classified explorer → Archive shell: gets selection
src/components/DevilsExplorer.tsx - Arc explorer → Archive shell: gets selection
src/components/ArcsExplorer.tsx - Location explorer → Archive shell: uses context
src/components/LocationsExplorer.tsx - Volume gallery → Archive shell: uses context
src/components/VolumesExplorer.tsx - Character explorer → Selection motion: animates selection
src/components/CharactersExplorer.tsx - Classified explorer → Selection motion: animates selection
src/components/DevilsExplorer.tsx - Home page → Page motion: uses
src/app/page.tsx - Characters route → Page motion: uses
src/app/characters/page.tsx - Classified route → Page motion: uses
src/app/classified-files/page.tsx - Arcs route → Page motion: uses
src/app/arcs/page.tsx - Locations route → Page motion: uses
src/app/locations/page.tsx - Volumes route → Page motion: uses
src/app/volumes/page.tsx