# rasoolzia/developer-interview-website architecture

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

- Interactive diagram: https://gitdiagram.com/rasoolzia/developer-interview-website
- Repository: https://github.com/rasoolzia/developer-interview-website

## Overview

Developer Interview Website is a multilingual presentation layer for interview questions; it fetches generated static JSON from the companion content repository and renders searchable, browsable question pages. The main path is content API → typed domain services → route views → user-facing pages. Separate branches cover URL-synced search and filters, local bookmark and report workflows, and locale/theme presentation. Relationships are limited to the README and source-index references or excerpts; unsampled page wiring is not inferred beyond those references.

Main entry points: [`src/app/[locale]/layout.tsx`](https://github.com/rasoolzia/developer-interview-website/blob/main/src/app/%5Blocale%5D/layout.tsx) (Locale routes), [`src/shared/api/repositories/search.repository.ts`](https://github.com/rasoolzia/developer-interview-website/blob/main/src/shared/api/repositories/search.repository.ts) (JSON repositories), [`src/entities/search/api/search.service.ts`](https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/search/api/search.service.ts) (Search service), [`src/features/bookmark/api/bookmark.service.ts`](https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/bookmark/api/bookmark.service.ts) (Bookmark service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Routing and pages"]
  node_routes["Locale routes<br/>[layout.tsx]"]
  node_landing["Landing view<br/>[landing-view.tsx]"]
  node_topicview["Topic views<br/>[topics-view.tsx]"]
  node_questionview["Question view"]
  node_searchview["Search view<br/>[search.service.ts]"]
  node_bookmarkview["Bookmark views<br/>[bookmarks-view.tsx]"]
  node_reportview["Report views<br/>[reports-view.tsx]"]
end

subgraph group_content["Content discovery"]
  node_domainservice["Domain service<br/>[domain.service.ts]"]
  node_topicservice["Topic service<br/>[topic.service.ts]"]
  node_questionservice["Question service"]
  node_searchservice["Search service<br/>[search.service.ts]"]
end

subgraph group_actions["User actions"]
  node_filters["Search filters"]
  node_bookmarkservice["Bookmark service"]
  node_bookmarkstore[("Bookmark store")]
  node_reportservice["Report service<br/>[report.service.ts]"]
  node_reportstore[("Report store")]
end

subgraph group_platform["Shared platform"]
  node_i18n["Locale routing<br/>[routing.ts]"]
  node_theme["Theme provider<br/>[theme-provider.tsx]"]
  node_repositories["JSON repositories"]
  node_api["Validated API client<br/>[client.ts]"]
end

node_visitor(("Visitor"))
node_contentrepo[("Generated JSON API")]

node_visitor -->|"opens pages"| node_routes
node_routes -->|"uses locale routing"| node_i18n
node_routes -.->|"renders landing"| node_landing
node_routes -->|"renders topics"| node_topicview
node_routes -->|"renders search"| node_searchview
node_routes -.->|"renders questions"| node_questionview
node_routes -.->|"renders bookmarks"| node_bookmarkview
node_routes -.->|"renders reports"| node_reportview
node_contentrepo -->|"serves JSON"| node_repositories
node_repositories -->|"fetches and validates"| node_api
node_api -->|"requests resources"| node_contentrepo
node_domainservice -->|"loads manifest"| node_repositories
node_topicservice -.->|"loads topic data"| node_repositories
node_questionservice -->|"loads topic questions"| node_topicservice
node_questionservice -->|"resolves question IDs"| node_searchservice
node_searchservice -->|"loads search index"| node_repositories
node_searchview -->|"gets search items"| node_searchservice
node_filters -->|"supplies URL filters"| node_searchview
node_bookmarkview -.->|"manages lists"| node_bookmarkservice
node_bookmarkservice -->|"reads and writes"| node_bookmarkstore
node_bookmarkservice -->|"resolves saved questions"| node_searchservice
node_reportview -.->|"manages reports"| node_reportservice
node_reportservice -->|"uses local storage"| node_reportstore
node_theme -.->|"provides theme"| node_routes

click node_routes "https://github.com/rasoolzia/developer-interview-website/blob/main/src/app/%5Blocale%5D/layout.tsx"
click node_landing "https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/landing/ui/landing-view.tsx"
click node_topicview "https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/topic/ui/topics-view.tsx"
click node_questionview "https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/question/ui/question-details-view.tsx"
click node_searchview "https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/search/api/search.service.ts"
click node_bookmarkview "https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/bookmark/ui/bookmarks-view.tsx"
click node_reportview "https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/report/ui/reports-view.tsx"
click node_domainservice "https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/domain/api/domain.service.ts"
click node_topicservice "https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/topic/api/topic.service.ts"
click node_questionservice "https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/question/api/question.service.ts"
click node_searchservice "https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/search/api/search.service.ts"
click node_filters "https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/filters/ui/filters-content.tsx"
click node_bookmarkservice "https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/bookmark/api/bookmark.service.ts"
click node_bookmarkstore "https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/bookmark/storage/indexed-db-bookmark.repository.ts"
click node_reportservice "https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/report/api/report.service.ts"
click node_reportstore "https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/report/storage/indexed-db-report.repository.ts"
click node_i18n "https://github.com/rasoolzia/developer-interview-website/blob/main/src/shared/config/i18n/routing.ts"
click node_theme "https://github.com/rasoolzia/developer-interview-website/blob/main/src/app/providers/theme-provider.tsx"
click node_repositories "https://github.com/rasoolzia/developer-interview-website/blob/main/src/shared/api/repositories/search.repository.ts"
click node_api "https://github.com/rasoolzia/developer-interview-website/blob/main/src/shared/api/client.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_routes,node_landing,node_topicview,node_questionview,node_searchview,node_bookmarkview,node_reportview toneBlue
class node_domainservice,node_topicservice,node_questionservice,node_searchservice,node_contentrepo toneAmber
class node_filters,node_bookmarkservice,node_bookmarkstore,node_reportservice,node_reportstore toneMint
class node_i18n,node_theme,node_repositories,node_api toneRose
class node_visitor toneIndigo
```

## Components

### Routing and pages

- [Locale routes](https://github.com/rasoolzia/developer-interview-website/blob/main/src/app/%5Blocale%5D/layout.tsx): `src/app/[locale]/layout.tsx`
- [Landing view](https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/landing/ui/landing-view.tsx): `src/views/landing/ui/landing-view.tsx`
- [Topic views](https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/topic/ui/topics-view.tsx): `src/views/topic/ui/topics-view.tsx`
- [Question view](https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/question/ui/question-details-view.tsx): `src/views/question/ui/question-details-view.tsx`
- [Search view](https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/search/api/search.service.ts): `src/views/search/api/search.service.ts`
- [Bookmark views](https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/bookmark/ui/bookmarks-view.tsx): `src/views/bookmark/ui/bookmarks-view.tsx`
- [Report views](https://github.com/rasoolzia/developer-interview-website/blob/main/src/views/report/ui/reports-view.tsx): `src/views/report/ui/reports-view.tsx`

### Content discovery

- [Domain service](https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/domain/api/domain.service.ts): `src/entities/domain/api/domain.service.ts`
- [Topic service](https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/topic/api/topic.service.ts): `src/entities/topic/api/topic.service.ts`
- [Question service](https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/question/api/question.service.ts): `src/entities/question/api/question.service.ts`
- [Search service](https://github.com/rasoolzia/developer-interview-website/blob/main/src/entities/search/api/search.service.ts): `src/entities/search/api/search.service.ts`

### User actions

- [Search filters](https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/filters/ui/filters-content.tsx): `src/features/filters/ui/filters-content.tsx`
- [Bookmark service](https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/bookmark/api/bookmark.service.ts): `src/features/bookmark/api/bookmark.service.ts`
- [Bookmark store](https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/bookmark/storage/indexed-db-bookmark.repository.ts): `src/features/bookmark/storage/indexed-db-bookmark.repository.ts`
- [Report service](https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/report/api/report.service.ts): `src/features/report/api/report.service.ts`
- [Report store](https://github.com/rasoolzia/developer-interview-website/blob/main/src/features/report/storage/indexed-db-report.repository.ts): `src/features/report/storage/indexed-db-report.repository.ts`

### Shared platform

- [Locale routing](https://github.com/rasoolzia/developer-interview-website/blob/main/src/shared/config/i18n/routing.ts): `src/shared/config/i18n/routing.ts`
- [Theme provider](https://github.com/rasoolzia/developer-interview-website/blob/main/src/app/providers/theme-provider.tsx): `src/app/providers/theme-provider.tsx`
- [JSON repositories](https://github.com/rasoolzia/developer-interview-website/blob/main/src/shared/api/repositories/search.repository.ts): `src/shared/api/repositories/search.repository.ts`
- [Validated API client](https://github.com/rasoolzia/developer-interview-website/blob/main/src/shared/api/client.ts): `src/shared/api/client.ts`

### Other components

- **Visitor**
- **Generated JSON API**

## Connections

- Visitor → Locale routes: opens pages (evidence: `README.md`)
- Locale routes → Locale routing: uses locale routing (evidence: `README.md`)
- Locale routes → Landing view: renders landing
- Locale routes → Topic views: renders topics
- Locale routes → Search view: renders search
- Locale routes → Question view: renders questions
- Locale routes → Bookmark views: renders bookmarks
- Locale routes → Report views: renders reports
- Generated JSON API → JSON repositories: serves JSON (evidence: `README.md`)
- JSON repositories → Validated API client: fetches and validates (evidence: `src/shared/api/repositories/search.repository.ts`)
- Validated API client → Generated JSON API: requests resources (evidence: `README.md`)
- Domain service → JSON repositories: loads manifest (evidence: `src/entities/domain/api/domain.service.ts`)
- Topic service → JSON repositories: loads topic data
- Question service → Topic service: loads topic questions (evidence: `src/entities/question/api/question.service.ts`)
- Question service → Search service: resolves question IDs (evidence: `src/entities/question/api/question.service.ts`)
- Search service → JSON repositories: loads search index (evidence: `src/entities/search/api/search.service.ts`)
- Search view → Search service: gets search items (evidence: `src/views/search/api/search.service.ts`)
- Search filters → Search view: supplies URL filters (evidence: `README.md`)
- Bookmark views → Bookmark service: manages lists
- Bookmark service → Bookmark store: reads and writes (evidence: `src/features/bookmark/api/bookmark.service.ts`)
- Bookmark service → Search service: resolves saved questions (evidence: `src/features/bookmark/api/bookmark.service.ts`)
- Report views → Report service: manages reports
- Report service → Report store: uses local storage (evidence: `src/features/report/api/report.service.ts`)
- Theme provider → Locale routes: provides theme
