# budeadanielm/youthcomfarcasa architecture

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

- Interactive diagram: https://gitdiagram.com/budeadanielm/youthcomfarcasa
- Repository: https://github.com/budeadanielm/youthcomfarcasa

## Overview

Fărcașa EYV is a Romanian youth-community website with public information and participation pages, plus account and administrative functions. Visitors can explore the program, events, posts and monitoring information; the site also exposes forum, feedback and contact entry points. The sampled code shows shared theme, language, navigation and account UI, and a data/auth layer with Firebase and local-storage behavior. HTML page capabilities come from the file tree; unsampled page-to-data connections are not asserted.

Main entry points: [`js/db.js`](https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/db.js) (Data and auth), [`js/main.js`](https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/main.js) (Shared UI), [`index.html`](https://github.com/budeadanielm/youthcomfarcasa/blob/main/index.html) (Home), [`postari.html`](https://github.com/budeadanielm/youthcomfarcasa/blob/main/postari.html) (Posts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public engagement"]
  node_home["Home<br/>[index.html]"]
  node_posts["Posts<br/>[postari.html]"]
  node_forum["Forum<br/>[forum.html]"]
  node_community["Community<br/>[comunitate.html]"]
  node_feedback["Feedback<br/>[feedback.html]"]
  node_contact["Contact<br/>[contact.html]"]
end

subgraph group_program["Program information"]
  node_program["EYV program<br/>[program.html]"]
  node_events["Events<br/>[evenimente.html]"]
  node_monitoring["Monitoring<br/>[monitorizare.html]"]
  node_impact["Impact<br/>[impact.html]"]
  node_resources["Resources<br/>[resurse.html]"]
  node_about["About<br/>[despre.html]"]
end

subgraph group_account["Accounts and administration"]
  node_login["Sign in<br/>[login.html]"]
  node_dashboard["Dashboard<br/>[dashboard.html]"]
  node_settings["Account settings<br/>[setari.html]"]
  node_ticket["Ban ticket<br/>[tichet.html]"]
  node_setup["Setup<br/>[setup.html]"]
end

subgraph group_runtime["Shared runtime"]
  node_shared["Shared UI<br/>[main.js]"]
  node_data["Data and auth<br/>[db.js]"]
  node_firebase["Firebase config<br/>[firebase-config.js]"]
end

node_visitor(("Visitor"))
node_firestore[("Firestore")]
node_browser[("Browser storage")]

node_visitor -.->|"visits"| node_home
node_visitor -.->|"browses"| node_posts
node_visitor -.->|"joins"| node_forum
node_visitor -.->|"explores"| node_community
node_visitor -.->|"submits feedback"| node_feedback
node_visitor -.->|"sends message"| node_contact
node_visitor -.->|"explores"| node_program
node_visitor -.->|"browses"| node_events
node_visitor -.->|"reviews"| node_monitoring
node_visitor -.->|"reviews"| node_impact
node_visitor -.->|"browses"| node_resources
node_visitor -.->|"learns about"| node_about
node_visitor -.->|"signs in"| node_login
node_shared -->|"calls auth and inbox APIs"| node_data
node_shared -->|"stores preferences"| node_browser
node_data -->|"reads and writes"| node_firestore
node_data -->|"fallback storage"| node_browser
node_data -.->|"uses configuration"| node_firebase

click node_home "https://github.com/budeadanielm/youthcomfarcasa/blob/main/index.html"
click node_posts "https://github.com/budeadanielm/youthcomfarcasa/blob/main/postari.html"
click node_forum "https://github.com/budeadanielm/youthcomfarcasa/blob/main/forum.html"
click node_community "https://github.com/budeadanielm/youthcomfarcasa/blob/main/comunitate.html"
click node_feedback "https://github.com/budeadanielm/youthcomfarcasa/blob/main/feedback.html"
click node_contact "https://github.com/budeadanielm/youthcomfarcasa/blob/main/contact.html"
click node_program "https://github.com/budeadanielm/youthcomfarcasa/blob/main/program.html"
click node_events "https://github.com/budeadanielm/youthcomfarcasa/blob/main/evenimente.html"
click node_monitoring "https://github.com/budeadanielm/youthcomfarcasa/blob/main/monitorizare.html"
click node_impact "https://github.com/budeadanielm/youthcomfarcasa/blob/main/impact.html"
click node_resources "https://github.com/budeadanielm/youthcomfarcasa/blob/main/resurse.html"
click node_about "https://github.com/budeadanielm/youthcomfarcasa/blob/main/despre.html"
click node_login "https://github.com/budeadanielm/youthcomfarcasa/blob/main/login.html"
click node_dashboard "https://github.com/budeadanielm/youthcomfarcasa/blob/main/dashboard.html"
click node_settings "https://github.com/budeadanielm/youthcomfarcasa/blob/main/setari.html"
click node_ticket "https://github.com/budeadanielm/youthcomfarcasa/blob/main/tichet.html"
click node_setup "https://github.com/budeadanielm/youthcomfarcasa/blob/main/setup.html"
click node_shared "https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/main.js"
click node_data "https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/db.js"
click node_firebase "https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/firebase-config.js"

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_posts,node_forum,node_community,node_feedback,node_contact toneBlue
class node_program,node_events,node_monitoring,node_impact,node_resources,node_about,node_firestore,node_browser toneAmber
class node_login,node_dashboard,node_settings,node_ticket,node_setup toneMint
class node_shared,node_data,node_firebase toneRose
class node_visitor toneIndigo
```

## Components

### Public engagement

- [Home](https://github.com/budeadanielm/youthcomfarcasa/blob/main/index.html): `index.html`
- [Posts](https://github.com/budeadanielm/youthcomfarcasa/blob/main/postari.html): `postari.html`
- [Forum](https://github.com/budeadanielm/youthcomfarcasa/blob/main/forum.html): `forum.html`
- [Community](https://github.com/budeadanielm/youthcomfarcasa/blob/main/comunitate.html): `comunitate.html`
- [Feedback](https://github.com/budeadanielm/youthcomfarcasa/blob/main/feedback.html): `feedback.html`
- [Contact](https://github.com/budeadanielm/youthcomfarcasa/blob/main/contact.html): `contact.html`

### Program information

- [EYV program](https://github.com/budeadanielm/youthcomfarcasa/blob/main/program.html): `program.html`
- [Events](https://github.com/budeadanielm/youthcomfarcasa/blob/main/evenimente.html): `evenimente.html`
- [Monitoring](https://github.com/budeadanielm/youthcomfarcasa/blob/main/monitorizare.html): `monitorizare.html`
- [Impact](https://github.com/budeadanielm/youthcomfarcasa/blob/main/impact.html): `impact.html`
- [Resources](https://github.com/budeadanielm/youthcomfarcasa/blob/main/resurse.html): `resurse.html`
- [About](https://github.com/budeadanielm/youthcomfarcasa/blob/main/despre.html): `despre.html`

### Accounts and administration

- [Sign in](https://github.com/budeadanielm/youthcomfarcasa/blob/main/login.html): `login.html`
- [Dashboard](https://github.com/budeadanielm/youthcomfarcasa/blob/main/dashboard.html): `dashboard.html`
- [Account settings](https://github.com/budeadanielm/youthcomfarcasa/blob/main/setari.html): `setari.html`
- [Ban ticket](https://github.com/budeadanielm/youthcomfarcasa/blob/main/tichet.html): `tichet.html`
- [Setup](https://github.com/budeadanielm/youthcomfarcasa/blob/main/setup.html): `setup.html`

### Shared runtime

- [Shared UI](https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/main.js): `js/main.js`
- [Data and auth](https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/db.js): `js/db.js`
- [Firebase config](https://github.com/budeadanielm/youthcomfarcasa/blob/main/js/firebase-config.js): `js/firebase-config.js`

### Other components

- **Visitor**
- **Firestore**
- **Browser storage**

## Connections

- Visitor → Home: visits
- Visitor → Posts: browses
- Visitor → Forum: joins
- Visitor → Community: explores
- Visitor → Feedback: submits feedback
- Visitor → Contact: sends message
- Visitor → EYV program: explores
- Visitor → Events: browses
- Visitor → Monitoring: reviews
- Visitor → Impact: reviews
- Visitor → Resources: browses
- Visitor → About: learns about
- Visitor → Sign in: signs in
- Shared UI → Data and auth: calls auth and inbox APIs (evidence: `js/main.js`)
- Shared UI → Browser storage: stores preferences (evidence: `js/main.js`)
- Data and auth → Firestore: reads and writes (evidence: `js/db.js`)
- Data and auth → Browser storage: fallback storage (evidence: `js/db.js`)
- Data and auth → Firebase config: uses configuration
