# emtiajium/vocabulary-flashcard-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/emtiajium/vocabulary-flashcard-frontend
- Repository: https://github.com/emtiajium/vocabulary-flashcard-frontend

## Overview

Firecracker Vocabulary is a web and Android vocabulary-learning app. Users sign in, browse and search vocabulary, create or edit entries, and practice through dictionary, guessing-game, and Leitner flashcard flows; cohorts and account deletion are additional capabilities. The router exposes these screens and checks locally stored authentication, while feature views use shared HTTP and persistence services. The README identifies a separate backend and Firebase/Google sign-in setup. Some feature implementations were not sampled, so their internal links are omitted where the available evidence does not establish them.

Main entry points: [`src/router/index.ts`](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/router/index.ts) (App router), [`src/utils/HttpHandler.ts`](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/HttpHandler.ts) (HTTP client), [`src/utils/NativeStorage.ts`](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/NativeStorage.ts) (Native storage), [`src/utils/GoogleAuthentication.ts`](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/GoogleAuthentication.ts) (Google authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation and access"]
  node_router["App router<br/>[index.ts]"]
  node_signin["Sign-in<br/>[SignIn.vue]"]
  node_deletion["Account deletion<br/>[Deletion.vue]"]
  node_header["Shared header"]
end

subgraph group_vocabulary["Vocabulary learning"]
  node_vocablist["Vocabulary browser<br/>[VocabularyList.vue]"]
  node_vocabform["Vocabulary editor<br/>[AddVocabulary.vue]"]
  node_definitions["Definition editor<br/>[AddDefinition.vue]"]
  node_dictionary["Dictionary<br/>[DictionaryPage.vue]"]
  node_details["Vocabulary details"]
  node_linkers["Linker words<br/>[LinkerWord.vue]"]
end

subgraph group_practice["Practice and cohorts"]
  node_guessing["Guessing game<br/>[GuessingGame.vue]"]
  node_leitner["Leitner systems<br/>[LeitnerSystems.vue]"]
  node_boxes["Flashcard items"]
  node_cohort["Cohort<br/>[Cohort.vue]"]
end

subgraph group_services["App services"]
  node_auth["Google authentication"]
  node_storage[("Native storage<br/>[NativeStorage.ts]")]
  node_http["HTTP client<br/>[HttpHandler.ts]"]
  node_leitnersvc["Leitner service"]
end

node_user(("Learner"))
node_backend["Vocabulary backend"]
node_google["Google sign-in"]

node_user -->|"opens screens"| node_router
node_router -->|"routes to"| node_signin
node_router -->|"routes to"| node_vocablist
node_router -->|"routes to"| node_vocabform
node_router -->|"routes to"| node_dictionary
node_router -->|"routes to"| node_details
node_router -->|"routes to"| node_linkers
node_router -->|"routes to"| node_guessing
node_router -->|"routes to"| node_leitner
node_router -->|"routes to"| node_boxes
node_router -->|"routes to"| node_cohort
node_router -->|"routes to"| node_deletion
node_router -->|"checks auth"| node_storage
node_signin -.->|"signs in"| node_auth
node_auth -.->|"authenticates with"| node_google
node_auth -->|"stores user"| node_storage
node_vocablist -->|"searches vocab"| node_http
node_vocablist -->|"reads settings"| node_storage
node_vocabform -->|"saves vocab"| node_http
node_vocabform -->|"uses editor"| node_definitions
node_boxes -->|"loads items"| node_http
node_boxes -->|"reads reload flag"| node_storage
node_leitnersvc -->|"requests data"| node_http
node_http -->|"gets token"| node_auth
node_http -->|"sends requests"| node_backend
node_deletion -->|"deletes account"| node_http
node_deletion -->|"clears credentials"| node_storage
node_header -.->|"provides navigation"| node_user

click node_router "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/router/index.ts"
click node_signin "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/kick-off/SignIn.vue"
click node_auth "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/GoogleAuthentication.ts"
click node_storage "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/NativeStorage.ts"
click node_vocablist "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/VocabularyList.vue"
click node_vocabform "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-upsert/AddVocabulary.vue"
click node_definitions "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-upsert/AddDefinition.vue"
click node_dictionary "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/DictionaryPage.vue"
click node_details "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/VocabularyDetailsPage.vue"
click node_linkers "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/LinkerWord.vue"
click node_guessing "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/GuessingGame.vue"
click node_leitner "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/leitner-systems/LeitnerSystems.vue"
click node_boxes "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/leitner-systems/LeitnerBoxItems.vue"
click node_cohort "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/cohort/Cohort.vue"
click node_deletion "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/kick-the-bucket/Deletion.vue"
click node_http "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/HttpHandler.ts"
click node_leitnersvc "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/LeitnerSystemService.ts"
click node_header "https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/shared/FirecrackerHeader.vue"

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_router,node_signin,node_deletion,node_header toneBlue
class node_vocablist,node_vocabform,node_definitions,node_dictionary,node_details,node_linkers toneAmber
class node_guessing,node_leitner,node_boxes,node_cohort toneMint
class node_auth,node_storage,node_http,node_leitnersvc toneRose
class node_user,node_backend,node_google toneIndigo
```

## Components

### Navigation and access

- [App router](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/router/index.ts): `src/router/index.ts`
- [Sign-in](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/kick-off/SignIn.vue): `src/views/kick-off/SignIn.vue`
- [Account deletion](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/kick-the-bucket/Deletion.vue): `src/views/kick-the-bucket/Deletion.vue`
- [Shared header](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/shared/FirecrackerHeader.vue): `src/views/shared/FirecrackerHeader.vue`

### Vocabulary learning

- [Vocabulary browser](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/VocabularyList.vue): `src/views/vocab-read/VocabularyList.vue`
- [Vocabulary editor](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-upsert/AddVocabulary.vue): `src/views/vocab-upsert/AddVocabulary.vue`
- [Definition editor](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-upsert/AddDefinition.vue): `src/views/vocab-upsert/AddDefinition.vue`
- [Dictionary](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/DictionaryPage.vue): `src/views/vocab-read/DictionaryPage.vue`
- [Vocabulary details](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/VocabularyDetailsPage.vue): `src/views/vocab-read/VocabularyDetailsPage.vue`
- [Linker words](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/LinkerWord.vue): `src/views/vocab-read/LinkerWord.vue`

### Practice and cohorts

- [Guessing game](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/vocab-read/GuessingGame.vue): `src/views/vocab-read/GuessingGame.vue`
- [Leitner systems](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/leitner-systems/LeitnerSystems.vue): `src/views/leitner-systems/LeitnerSystems.vue`
- [Flashcard items](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/leitner-systems/LeitnerBoxItems.vue): `src/views/leitner-systems/LeitnerBoxItems.vue`
- [Cohort](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/views/cohort/Cohort.vue): `src/views/cohort/Cohort.vue`

### App services

- [Google authentication](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/GoogleAuthentication.ts): `src/utils/GoogleAuthentication.ts`
- [Native storage](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/NativeStorage.ts): `src/utils/NativeStorage.ts`
- [HTTP client](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/HttpHandler.ts): `src/utils/HttpHandler.ts`
- [Leitner service](https://github.com/emtiajium/vocabulary-flashcard-frontend/blob/master/src/utils/LeitnerSystemService.ts): `src/utils/LeitnerSystemService.ts`

### Other components

- **Learner**
- **Vocabulary backend**
- **Google sign-in**

## Connections

- Learner → App router: opens screens (evidence: `src/router/index.ts`)
- App router → Sign-in: routes to (evidence: `src/router/index.ts`)
- App router → Vocabulary browser: routes to (evidence: `src/router/index.ts`)
- App router → Vocabulary editor: routes to (evidence: `src/router/index.ts`)
- App router → Dictionary: routes to (evidence: `src/router/index.ts`)
- App router → Vocabulary details: routes to (evidence: `src/router/index.ts`)
- App router → Linker words: routes to (evidence: `src/router/index.ts`)
- App router → Guessing game: routes to (evidence: `src/router/index.ts`)
- App router → Leitner systems: routes to (evidence: `src/router/index.ts`)
- App router → Flashcard items: routes to (evidence: `src/router/index.ts`)
- App router → Cohort: routes to (evidence: `src/router/index.ts`)
- App router → Account deletion: routes to (evidence: `src/router/index.ts`)
- App router → Native storage: checks auth (evidence: `src/router/index.ts`)
- Sign-in → Google authentication: signs in
- Google authentication → Google sign-in: authenticates with
- Google authentication → Native storage: stores user (evidence: `src/utils/GoogleAuthentication.ts`)
- Vocabulary browser → HTTP client: searches vocab (evidence: `src/views/vocab-read/VocabularyList.vue`)
- Vocabulary browser → Native storage: reads settings (evidence: `src/views/vocab-read/VocabularyList.vue`)
- Vocabulary editor → HTTP client: saves vocab (evidence: `src/views/vocab-upsert/AddVocabulary.vue`)
- Vocabulary editor → Definition editor: uses editor (evidence: `src/views/vocab-upsert/AddVocabulary.vue`)
- Flashcard items → HTTP client: loads items (evidence: `src/views/leitner-systems/LeitnerBoxItems.vue`)
- Flashcard items → Native storage: reads reload flag (evidence: `src/views/leitner-systems/LeitnerBoxItems.vue`)
- Leitner service → HTTP client: requests data (evidence: `src/utils/LeitnerSystemService.ts`)
- HTTP client → Google authentication: gets token (evidence: `src/utils/HttpHandler.ts`)
- HTTP client → Vocabulary backend: sends requests
- Account deletion → HTTP client: deletes account (evidence: `src/views/kick-the-bucket/Deletion.vue`)
- Account deletion → Native storage: clears credentials (evidence: `src/views/kick-the-bucket/Deletion.vue`)
- Shared header → Learner: provides navigation
