How tanishqkrk/ariwa works
This repository is a work-in-progress word-guessing game web app. The visible player flow is to browse game modes, open a mode, and play a word-guessing round with a grid and keyboard; settings and local game state support play. The README provides no additional product description, and the daily-word page is only a stub. The multiplayer mode data and hint API routes exist in the tree, but their behavior and wiring were not established by the sampled source, so they are not represented as a connected workflow.
Main entry points: casual-mode/page.tsx Casual game · app/page.tsx Home · GlobalSettingsComponent.tsx Global settings · all-modes/page.tsx Mode catalog
Components 24
Mode discovery
- Home
app/page.tsx - Mode catalog
app/all-modes/page.tsx - Mode definitions
lib/GameModesData.ts
Word gameplay
- Casual game
app/play/casual-mode/page.tsx - Daily word stub
app/play/daily-word/page.tsx - Guess grid
components/GameGrid.tsx - Game keyboard
components/Keyboard.tsx
Shared UI and state
- Site shell
app/layout.tsx - Navigation
components/Navbar.tsx - Mode carousel
components/Carousel.tsx - Global settings
components/GlobalSettingsComponent.tsx - Game settings state
context/GameDataContext.tsx - Drawer UI
components/ui/Drawer.tsx - Settings switch
components/ui/Switch.tsx - Settings slider
components/ui/Slider.tsx - Mode tabs
components/Tabs.tsx - Game modal
components/Modal.tsx - Sound effects
lib/sounds.ts - Stopwatch hook
lib/useStopwatch.tsx
Word logic
- Word validation
utils/checkWord.ts - Word selection
utils/generateRandomWord.ts - Word lists
utils/words.json - Dictionary data
utils/dictionary.json
Other components
- Player
Connections 27
- Player → Home: opens
- Home → Navigation: renders
app/page.tsx - Home → Mode carousel: renders
app/page.tsx - Home → Global settings: renders
app/page.tsx - Home → Mode definitions: reads
app/page.tsx - Home → Mode catalog: links to
app/page.tsx - Mode catalog → Mode tabs: renders
app/all-modes/page.tsx - Mode catalog → Mode definitions: reads
app/all-modes/page.tsx - Mode catalog → Casual game: links to
- Site shell → Navigation: renders
app/layout.tsx - Site shell → Game settings state: provides
app/layout.tsx - Casual game → Guess grid: renders
app/play/casual-mode/page.tsx - Casual game → Game keyboard: uses
app/play/casual-mode/page.tsx - Casual game → Word validation: validates with
app/play/casual-mode/page.tsx - Casual game → Word selection: requests word
app/play/casual-mode/page.tsx - Casual game → Global settings: renders
app/play/casual-mode/page.tsx - Casual game → Drawer UI: uses
app/play/casual-mode/page.tsx - Casual game → Sound effects: plays
app/play/casual-mode/page.tsx - Casual game → Stopwatch hook: uses
app/play/casual-mode/page.tsx - Global settings → Game settings state: reads and updates
components/GlobalSettingsComponent.tsx - Global settings → Drawer UI: uses
components/GlobalSettingsComponent.tsx - Global settings → Settings switch: renders
components/GlobalSettingsComponent.tsx - Global settings → Settings slider: renders
components/GlobalSettingsComponent.tsx - Game keyboard → Game settings state: reads
components/Keyboard.tsx - Word validation → Word lists: checks
utils/checkWord.ts - Word validation → Dictionary data: checks
utils/checkWord.ts - Word selection → Word lists: filters
utils/generateRandomWord.ts