# nikkisenpai27/nihongowithnikki architecture

> Architecture diagram of the GitHub repository nikkisenpai27/nihongowithnikki, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nikkisenpai27/nihongowithnikki
- Repository: https://github.com/nikkisenpai27/nihongowithnikki

## Overview

Nihongo with Nikki is a JLPT N5–N1 Japanese-learning dashboard. The principal workflow is to enter as a learner, navigate to a study module, and use its lessons and practice content; progress tracking and personalization support continued study. The README also describes dashboard goals, streaks, and gamification. The route, authentication gate, search, stores, and several data aggregators are evidenced by excerpts or the source index; individual study-view implementations were not sampled, so their internal connections are not asserted.

Main entry points: [`src/app/page.tsx`](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/app/page.tsx) (App router), [`src/components/nikki/app-shell.tsx`](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/nikki/app-shell.tsx) (App shell), [`src/components/nikki/global-search.tsx`](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/nikki/global-search.tsx) (Global search), [`src/components/views/dashboard-view.tsx`](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/dashboard-view.tsx) (Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_home["App router<br/>[page.tsx]"]
  node_auth["Sign-in page<br/>[auth-page.tsx]"]
  node_shell["App shell<br/>[app-shell.tsx]"]
  node_search["Global search<br/>[global-search.tsx]"]
end

subgraph group_learning["Study modules"]
  node_dashboard["Dashboard<br/>[dashboard-view.tsx]"]
  node_kanji["Kanji study<br/>[kanji-view.tsx]"]
  node_kana["Kana study<br/>[kana-view.tsx]"]
  node_vocab["Vocabulary<br/>[vocab-view.tsx]"]
  node_grammar["Grammar<br/>[grammar-view.tsx]"]
  node_reading["Reading practice<br/>[reading-view.tsx]"]
  node_listening["Listening practice<br/>[listening-view.tsx]"]
  node_stories["Stories<br/>[stories-view.tsx]"]
  node_quiz["Quiz practice<br/>[quiz-view.tsx]"]
  node_account["Account<br/>[account-view.tsx]"]
  node_settings["Settings<br/>[settings-view.tsx]"]
end

subgraph group_content["Learning content"]
  node_contentdata["JLPT content"]
end

subgraph group_state["Learner state"]
  node_navstate["Navigation state<br/>[nav-store.ts]"]
  node_progress["Progress tracking<br/>[progress-store.ts]"]
  node_preferences["Study preferences<br/>[settings-store.ts]"]
end

node_learner(("Learner"))

node_learner -->|"opens app"| node_home
node_home -->|"shows when signed out"| node_auth
node_home -->|"wraps signed-in view"| node_shell
node_home -->|"routes to"| node_dashboard
node_home -->|"routes to"| node_kanji
node_home -->|"routes to"| node_kana
node_home -->|"routes to"| node_vocab
node_home -->|"routes to"| node_grammar
node_home -->|"routes to"| node_reading
node_home -->|"routes to"| node_listening
node_home -->|"routes to"| node_stories
node_home -->|"routes to"| node_quiz
node_home -->|"routes to"| node_account
node_home -->|"routes to"| node_settings
node_shell -->|"reads and updates"| node_navstate
node_shell -->|"reads progress"| node_progress
node_shell -->|"renders search"| node_search
node_home -->|"selects current view"| node_navstate
node_home -->|"reads preferences"| node_preferences
node_search -->|"searches learning content"| node_contentdata
node_search -->|"reads furigana setting"| node_preferences
node_learner -.->|"tracks goals and streaks"| node_dashboard
node_learner -.->|"studies JLPT material"| node_contentdata

click node_home "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/app/page.tsx"
click node_auth "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/auth-page.tsx"
click node_shell "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/nikki/app-shell.tsx"
click node_search "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/nikki/global-search.tsx"
click node_dashboard "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/dashboard-view.tsx"
click node_kanji "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/kanji-view.tsx"
click node_kana "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/kana-view.tsx"
click node_vocab "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/vocab-view.tsx"
click node_grammar "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/grammar-view.tsx"
click node_reading "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/reading-view.tsx"
click node_listening "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/listening-view.tsx"
click node_stories "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/stories-view.tsx"
click node_quiz "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/quiz-view.tsx"
click node_account "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/account-view.tsx"
click node_settings "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/settings-view.tsx"
click node_contentdata "https://github.com/nikkisenpai27/nihongowithnikki/tree/main/src/lib/data"
click node_navstate "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/lib/stores/nav-store.ts"
click node_progress "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/lib/stores/progress-store.ts"
click node_preferences "https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/lib/stores/settings-store.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_auth,node_shell,node_search toneBlue
class node_dashboard,node_kanji,node_kana,node_vocab,node_grammar,node_reading,node_listening,node_stories,node_quiz,node_account,node_settings toneAmber
class node_contentdata toneMint
class node_navstate,node_progress,node_preferences toneRose
class node_learner toneIndigo
```

## Components

### App entry

- [App router](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Sign-in page](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/auth-page.tsx): `src/components/views/auth-page.tsx`
- [App shell](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/nikki/app-shell.tsx): `src/components/nikki/app-shell.tsx`
- [Global search](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/nikki/global-search.tsx): `src/components/nikki/global-search.tsx`

### Study modules

- [Dashboard](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/dashboard-view.tsx): `src/components/views/dashboard-view.tsx`
- [Kanji study](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/kanji-view.tsx): `src/components/views/kanji-view.tsx`
- [Kana study](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/kana-view.tsx): `src/components/views/kana-view.tsx`
- [Vocabulary](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/vocab-view.tsx): `src/components/views/vocab-view.tsx`
- [Grammar](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/grammar-view.tsx): `src/components/views/grammar-view.tsx`
- [Reading practice](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/reading-view.tsx): `src/components/views/reading-view.tsx`
- [Listening practice](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/listening-view.tsx): `src/components/views/listening-view.tsx`
- [Stories](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/stories-view.tsx): `src/components/views/stories-view.tsx`
- [Quiz practice](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/quiz-view.tsx): `src/components/views/quiz-view.tsx`
- [Account](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/account-view.tsx): `src/components/views/account-view.tsx`
- [Settings](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/components/views/settings-view.tsx): `src/components/views/settings-view.tsx`

### Learning content

- [JLPT content](https://github.com/nikkisenpai27/nihongowithnikki/tree/main/src/lib/data): `src/lib/data`

### Learner state

- [Navigation state](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/lib/stores/nav-store.ts): `src/lib/stores/nav-store.ts`
- [Progress tracking](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/lib/stores/progress-store.ts): `src/lib/stores/progress-store.ts`
- [Study preferences](https://github.com/nikkisenpai27/nihongowithnikki/blob/main/src/lib/stores/settings-store.ts): `src/lib/stores/settings-store.ts`

### Other components

- **Learner**

## Connections

- Learner → App router: opens app (evidence: `README.md`)
- App router → Sign-in page: shows when signed out (evidence: `src/app/page.tsx`)
- App router → App shell: wraps signed-in view (evidence: `src/app/page.tsx`)
- App router → Dashboard: routes to (evidence: `src/app/page.tsx`)
- App router → Kanji study: routes to (evidence: `src/app/page.tsx`)
- App router → Kana study: routes to (evidence: `src/app/page.tsx`)
- App router → Vocabulary: routes to (evidence: `src/app/page.tsx`)
- App router → Grammar: routes to (evidence: `src/app/page.tsx`)
- App router → Reading practice: routes to (evidence: `src/app/page.tsx`)
- App router → Listening practice: routes to (evidence: `src/app/page.tsx`)
- App router → Stories: routes to (evidence: `src/app/page.tsx`)
- App router → Quiz practice: routes to (evidence: `src/app/page.tsx`)
- App router → Account: routes to (evidence: `src/app/page.tsx`)
- App router → Settings: routes to (evidence: `src/app/page.tsx`)
- App shell → Navigation state: reads and updates (evidence: `src/components/nikki/app-shell.tsx`)
- App shell → Progress tracking: reads progress (evidence: `src/components/nikki/app-shell.tsx`)
- App shell → Global search: renders search (evidence: `src/components/nikki/app-shell.tsx`)
- App router → Navigation state: selects current view (evidence: `src/app/page.tsx`)
- App router → Study preferences: reads preferences (evidence: `src/app/page.tsx`)
- Global search → JLPT content: searches learning content (evidence: `src/components/nikki/global-search.tsx`)
- Global search → Study preferences: reads furigana setting (evidence: `src/components/nikki/global-search.tsx`)
- Learner → Dashboard: tracks goals and streaks (evidence: `README.md`)
- Learner → JLPT content: studies JLPT material (evidence: `README.md`)
