# sabeurmohamedamin/au_passage_du_livre architecture

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

- Interactive diagram: https://gitdiagram.com/sabeurmohamedamin/au_passage_du_livre
- Repository: https://github.com/sabeurmohamedamin/au_passage_du_livre

## Overview

This is a Nuxt site for Au Passage du Livre, with public pages covering events, guests and speakers, articles, the organization, press, and contact. The principal user journey is entering the site, navigating a rendered page, and viewing its domain content; the sampled app shell confirms Nuxt page and layout rendering, but page-to-component wiring is not shown. A separate server area exposes contact and guest-profile APIs and defines a Drizzle-backed user database. The README is only a Nuxt starter, so capabilities are inferred from the source tree; unsampled relationships are omitted.

Main entry points: [`server/db/schema/users.ts`](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/users.ts) (Users table), [`server/db/schema/relations.ts`](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/relations.ts) (Schema relations), [`app/app.vue`](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/app.vue) (Nuxt app shell), [`server/db/index.ts`](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/index.ts) (Drizzle connection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Site shell"]
  node_app["Nuxt app shell<br/>[app.vue]"]
  node_layouts["Page layouts"]
end

subgraph group_content["Public content"]
  node_site_pages["Site pages"]
  node_event_pages["Event pages"]
  node_guest_pages["Guest pages"]
  node_guest_components["Guest components"]
  node_guest_data["Guest composable<br/>[useGuests.ts]"]
  node_event_components["Event components"]
  node_event_schedule["Schedule composable"]
  node_blog_pages["Blog pages"]
  node_articles["Article composable<br/>[useArticles.ts]"]
  node_organization_pages["Organization pages"]
  node_mission_page["Mission page<br/>[our-mission.vue]"]
  node_press_page["Press page<br/>[presse.vue]"]
  node_contact_page["Contact page<br/>[contactez-nous.vue]"]
end

subgraph group_server["Server APIs"]
  node_contact_api["Contact API<br/>[contact.post.ts]"]
  node_profile_api["Guest profile API<br/>[guest-profile.ts]"]
end

subgraph group_data["User data"]
  node_database["Drizzle connection<br/>[index.ts]"]
  node_user_table["Users table<br/>[users.ts]"]
  node_avatar_table["Avatars table<br/>[avatars.ts]"]
  node_account_table["Accounts table<br/>[accounts.ts]"]
  node_attempts_table["Login attempts table<br/>[login-attempts.ts]"]
  node_preferences_table["User preferences table"]
  node_relations["Schema relations<br/>[relations.ts]"]
end

node_visitor(("Site visitor"))
node_sqlite[("LibSQL database")]

node_visitor -.->|"opens site"| node_app
node_app -->|"renders layout"| node_layouts
node_app -->|"renders page"| node_site_pages
node_database -->|"connects to"| node_sqlite
node_database -->|"loads schema"| node_user_table
node_user_table -->|"references"| node_avatar_table
node_account_table -->|"references"| node_user_table
node_attempts_table -->|"references"| node_user_table
node_preferences_table -->|"references"| node_user_table
node_relations -->|"defines relations"| node_user_table
node_relations -->|"defines relations"| node_account_table
node_relations -->|"defines relations"| node_attempts_table
node_relations -->|"defines relations"| node_preferences_table
node_relations -->|"defines relations"| node_avatar_table

click node_app "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/app.vue"
click node_layouts "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/layouts"
click node_site_pages "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages"
click node_event_pages "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/evenements"
click node_guest_pages "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/artistes-et-intervenants"
click node_guest_components "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/components/guest"
click node_guest_data "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/composables/useGuests.ts"
click node_event_components "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/components"
click node_event_schedule "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/composables/useEventSchedule.ts"
click node_blog_pages "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/blog"
click node_articles "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/composables/useArticles.ts"
click node_organization_pages "https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/about-us"
click node_mission_page "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/pages/our-mission.vue"
click node_press_page "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/pages/presse.vue"
click node_contact_page "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/pages/contactez-nous.vue"
click node_contact_api "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/api/contact.post.ts"
click node_profile_api "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/api/guest-profile.ts"
click node_database "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/index.ts"
click node_user_table "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/users.ts"
click node_avatar_table "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/avatars.ts"
click node_account_table "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/accounts.ts"
click node_attempts_table "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/login-attempts.ts"
click node_preferences_table "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/user-preferences.ts"
click node_relations "https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/relations.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_app,node_layouts toneBlue
class node_site_pages,node_event_pages,node_guest_pages,node_guest_components,node_guest_data,node_event_components,node_event_schedule,node_blog_pages,node_articles,node_organization_pages,node_mission_page,node_press_page,node_contact_page,node_sqlite toneAmber
class node_contact_api,node_profile_api toneMint
class node_database,node_user_table,node_avatar_table,node_account_table,node_attempts_table,node_preferences_table,node_relations toneRose
class node_visitor toneIndigo
```

## Components

### Site shell

- [Nuxt app shell](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/app.vue): `app/app.vue`
- [Page layouts](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/layouts): `app/layouts`

### Public content

- [Site pages](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages): `app/pages`
- [Event pages](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/evenements): `app/pages/evenements`
- [Guest pages](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/artistes-et-intervenants): `app/pages/artistes-et-intervenants`
- [Guest components](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/components/guest): `app/components/guest`
- [Guest composable](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/composables/useGuests.ts): `app/composables/useGuests.ts`
- [Event components](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/components): `app/components`
- [Schedule composable](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/composables/useEventSchedule.ts): `app/composables/useEventSchedule.ts`
- [Blog pages](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/blog): `app/pages/blog`
- [Article composable](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/composables/useArticles.ts): `app/composables/useArticles.ts`
- [Organization pages](https://github.com/sabeurmohamedamin/au_passage_du_livre/tree/main/app/pages/about-us): `app/pages/about-us`
- [Mission page](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/pages/our-mission.vue): `app/pages/our-mission.vue`
- [Press page](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/pages/presse.vue): `app/pages/presse.vue`
- [Contact page](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/app/pages/contactez-nous.vue): `app/pages/contactez-nous.vue`

### Server APIs

- [Contact API](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/api/contact.post.ts): `server/api/contact.post.ts`
- [Guest profile API](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/api/guest-profile.ts): `server/api/guest-profile.ts`

### User data

- [Drizzle connection](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/index.ts): `server/db/index.ts`
- [Users table](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/users.ts): `server/db/schema/users.ts`
- [Avatars table](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/avatars.ts): `server/db/schema/avatars.ts`
- [Accounts table](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/accounts.ts): `server/db/schema/accounts.ts`
- [Login attempts table](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/login-attempts.ts): `server/db/schema/login-attempts.ts`
- [User preferences table](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/user-preferences.ts): `server/db/schema/user-preferences.ts`
- [Schema relations](https://github.com/sabeurmohamedamin/au_passage_du_livre/blob/main/server/db/schema/relations.ts): `server/db/schema/relations.ts`

### Other components

- **Site visitor**
- **LibSQL database**

## Connections

- Site visitor → Nuxt app shell: opens site
- Nuxt app shell → Page layouts: renders layout (evidence: `app/app.vue`)
- Nuxt app shell → Site pages: renders page (evidence: `app/app.vue`)
- Drizzle connection → LibSQL database: connects to (evidence: `server/db/index.ts`)
- Drizzle connection → Users table: loads schema (evidence: `server/db/index.ts`)
- Users table → Avatars table: references (evidence: `server/db/schema/users.ts`)
- Accounts table → Users table: references (evidence: `server/db/schema/accounts.ts`)
- Login attempts table → Users table: references (evidence: `server/db/schema/login-attempts.ts`)
- User preferences table → Users table: references (evidence: `server/db/schema/user-preferences.ts`)
- Schema relations → Users table: defines relations (evidence: `server/db/schema/relations.ts`)
- Schema relations → Accounts table: defines relations (evidence: `server/db/schema/relations.ts`)
- Schema relations → Login attempts table: defines relations (evidence: `server/db/schema/relations.ts`)
- Schema relations → User preferences table: defines relations (evidence: `server/db/schema/relations.ts`)
- Schema relations → Avatars table: defines relations (evidence: `server/db/schema/relations.ts`)
