Skip to content

Latest commit

ย 

History

382 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โœˆ๏ธ Fly GACA

The Modern Flight Intelligence & Academic Platform for Saudi Civil Aviation

ุงู„ู…ู†ุตุฉ ุงู„ุฑู‚ู…ูŠุฉ ุงู„ู…ุชูƒุงู…ู„ุฉ ู„ุนู„ูˆู… ูˆู„ูˆุงุฆุญ ุงู„ุทูŠุฑุงู† ุงู„ู…ุฏู†ูŠ ุงู„ุณุนูˆุฏูŠ

ุตู†ุน ููŠ ุงู„ุณุนูˆุฏูŠุฉ Bilingual EN/AR Status: Live 74 GACAR Parts React 19 TypeScript Strict Express 5 55+ Calculators 61 Aerodromes PDPL Compliant License MIT

๐ŸŒ Web App (flygaca.com) โ€ข ๐Ÿค– Captain Adel AI โ€ข ๐Ÿ“ฑ iOS Apps โ€ข ๐Ÿข Master Office โ€ข ๐Ÿค— Hugging Face


Important

Independent Educational Ecosystem. Fly GACA is an independent educational initiative and is not affiliated with, endorsed by, or operated by the General Authority of Civil Aviation (GACA) or the Government of Saudi Arabia. The authoritative source for all civil aviation regulations is always gaca.gov.sa.

ูู„ุงูŠ ู‚ุงูƒุง ู…ู†ุธูˆู…ุฉ ุชุนู„ูŠู…ูŠุฉ ู…ุณุชู‚ู„ุฉ. ูˆู‡ูŠ ุบูŠุฑ ุชุงุจุนุฉ ู„ู„ู‡ูŠุฆุฉ ุงู„ุนุงู…ุฉ ู„ู„ุทูŠุฑุงู† ุงู„ู…ุฏู†ูŠ (GACA) ูˆู„ุง ู…ุนุชู…ุฏุฉ ู…ู†ู‡ุง. ุงู„ู…ุตุฏุฑ ุงู„ุฑุณู…ูŠ ูˆุงู„ู…ุนุชู…ุฏ ู„ุฌู…ูŠุน ู„ูˆุงุฆุญ ูˆุฃู†ุธู…ุฉ ุงู„ุทูŠุฑุงู† ุงู„ู…ุฏู†ูŠ ู‡ูˆ ู…ูˆู‚ุน ุงู„ู‡ูŠุฆุฉ ุงู„ุฑุณู…ูŠ ุฏุงุฆู…ู‹ุง.


๐Ÿ— Fly GACA Family Repositories

Repository Role Tech Stack Status
FlyGACA Main web platform, 55+ flight tools, 74 GACAR Parts & ground school React 19, Vite, Express 5, TypeScript ๐Ÿš€ Live
Captain-Adel AI flight instructor service with cite-or-refuse GACAR grounding Node.js, Express, Gemini RAG, ALLaM, Python ๐Ÿš€ Live
FlyGACA-ios Flagship native iOS app suite (ELPT, AIP, Flight Deck) Swift 5.9+, SwiftUI, SwiftData, SPM ๐Ÿ“ฑ TestFlight
FlyGACA-Family Family root & ecosystem hub contract JSON Schemas, Contracts, Shared Assets ๐Ÿฆ… Hub
Office Operations, governance, KSA compliance & headless PDF pipeline Markdown OS, ZATCA UBL 2.1, Headless Chromium ๐Ÿข Active

๐ŸŽฏ What's Inside?

Fly GACA is the all-in-one flight platform built specifically for Saudi civil aviation:

  • ๐Ÿ“š Deep GACAR Regulatory Library: 74 GACAR Parts indexed with 211 reference documents, section anchors (ยง91.155), and sub-millisecond client lookup.
  • ๐Ÿค– Captain Adel AI Flight Instructor: Multi-provider RAG (Gemini 2.5 Flash + in-Kingdom ALLaM) with strict "Cite-or-Refuse" precision.
  • ๐Ÿงฎ 55+ Pure Flight Calculators: Crosswind components, true airspeed (TAS), weight & balance CG envelopes, density altitude, fuel planning, and runway performance.
  • ๐ŸŽ“ Part 141 Ground School: 1,000+ bilingual exam questions across 26 banks with Leitner spaced-repetition flashcards.
  • ๐ŸŒค๏ธ Live Saudi Aerodrome Weather: Real-time METAR/TAF decoder for 61 Saudi aerodromes with flight category indicators (VFR, MVFR, IFR, LIFR).
  • ๐Ÿ“ฑ 100% Offline Capable: Complete mobile flight bag capability with zero internet dependency in the cockpit.

๐Ÿ›๏ธ System Architecture

graph TB
    subgraph Client["Client Tier (Web SPA & Mobile Flight Bag)"]
        UI["React 19 + TypeScript SPA<br/>(Tailwind CSS + Falcon Tokens)"]
        Offline["Service Worker & IndexedDB<br/>(100% Offline Capability)"]
        i18n["Bilingual Engine (EN โ‡„ AR)<br/>(RTL / LTR Native)"]
    end

    subgraph Backend["API & Edge Tier (Cloud Run me-central2)"]
        API["Express 5 REST & SSE API"]
        CalcEngine["55+ Flight Calculators<br/>(Pure Math & URL-State)"]
        WeatherEngine["NOAA / Saudi METAR & TAF<br/>(61 Aerodromes Decoder)"]
    end

    subgraph Intelligence["AI & Knowledge Tier"]
        Adel["Captain Adel RAG Service<br/>(Cite-or-Refuse Precision)"]
        Corpus["GACAR Regulatory Library<br/>(74 Parts, 211 Documents)"]
        Models["Gemini 2.5 Flash + ALLaM (KSA)"]
    end

    subgraph Storage["Data & Security Tier"]
        DB[(PostgreSQL / Supabase)]
        PDPL["PDPL Compliance Gate<br/>(In-Kingdom Data Residency)"]
    end

    UI --> API
    UI --> CalcEngine
    Offline --> UI
    i18n --> UI
    API --> WeatherEngine
    API --> Adel
    Adel --> Corpus
    Adel --> Models
    API --> DB
    DB --> PDPL
Loading

๐ŸŽ“ Spaced Repetition (SRS) Engine Flow

Fly GACA implements an academically rigorous Leitner 5-box spaced-repetition algorithm verified across web and iOS implementations:

flowchart LR
    subgraph LeitnerCycle["Leitner 5-Box Spaced Repetition Engine"]
        B0["Box 0<br/>New / Reset"] --> B1["Box 1<br/>Review: 1 Day"]
        B1 -->|Correct| B2["Box 2<br/>Review: 3 Days"]
        B1 -->|Incorrect| B0
        B2 -->|Correct| B3["Box 3<br/>Review: 7 Days"]
        B2 -->|Incorrect| B1
        B3 -->|Correct| B4["Box 4<br/>Review: 14 Days"]
        B3 -->|Incorrect| B1
        B4 -->|Correct| B5["Box 5<br/>Mastered: 30 Days"]
        B4 -->|Incorrect| B1
    end
Loading

โšก Quick Start in 30 Seconds

1๏ธโƒฃ Clone & Install

git clone https://github.com/iflygaca/FlyGACA.git
cd FlyGACA && npm install

2๏ธโƒฃ Set Up Environment

cp .env.example .env.local
# Add GEMINI_API_KEY (optional โ€” works in mock mode without it)

3๏ธโƒฃ Launch Local Dev Server

npm run dev
# ๐Ÿš€ Running at http://localhost:5173

๐ŸŒŸ Platform Feature Matrix

Feature Description Coverage / Metrics Status
GACAR Regulations Index Searchable regulatory catalog with AST anchors and cross-references 74 Parts, 211 Documents โœ… Production
Captain Adel AI Grounded flight instructor with cite-or-refuse precision and SSE stream Arabic (ALLaM) + English (Gemini) โœ… Production
Pure Flight Calculators Deterministic aerodynamic and navigation algorithms with URL-state sharing 55+ Verified Calculators โœ… Production
Aero Weather Center Real-time METAR/TAF parser, flight categories, and crosswind calculations 61 Saudi Aerodromes โœ… Production
Part 141 Exam Prep Timed mock exams, question explanations, and category breakdowns 1,000+ Questions, 26 Banks โœ… Production
B2B Academy Suite Cohort readiness tracking, instructor analytics, and seat licensing ATOs, Airlines & ANSPs โœ… Production
Offline Flight Bag Full local persistence for cockpit use without cellular connectivity 100% Offline Capable โœ… Production
KSA Data Residency Immutable audit trails and zero PII logging under Saudi PDPL me-central2 (Dammam) โœ… Production

๐Ÿงฎ Flight Calculators Catalog (55+ Pure Tools)

Click to expand flight calculator categories & tools
Category Tools & Calculators Input Parameters GACAR Reference
Altimetry & Atmosphere Density Altitude, Pressure Altitude, ISA Deviation, True Altitude QNH, OAT, Field Elevation GACAR ยง91.119
Airspeed & Dynamics CAS to TAS, Mach Number, Sound Speed, Dynamic Pressure IAS, CAS, Altitude, Temp GACAR ยง91.117
Wind & Drift Crosswind/Headwind Component, Wind Correction Angle, Groundspeed Runway Heading, Wind Dir/Speed GACAR ยง91.155
Weight & Balance Center of Gravity (CG) Envelope, Zero Fuel Weight, Moment Arm Station Weights, Empty Weight GACAR ยง91.103
Fuel & Range Fuel Burn Rate, Minimum VFR/IFR Reserves, Bingo Fuel, Endurance Consumption Rate, Contingency GACAR ยง91.167
Runway Performance Takeoff Distance Factor, Landing Roll, Climb Gradient, Obstacle Clearance Weight, Density Alt, Slope GACAR ยง91.103

๐Ÿ›  Tech Stack

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                      Client Layer                      โ”‚
โ”‚     React 19  โ€ข  TypeScript Strict  โ€ข  Vite 6          โ”‚
โ”‚     Tailwind CSS  โ€ข  Falcon Design Tokens  โ€ข  i18n     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                      Backend Layer                     โ”‚
โ”‚     Express 5  โ€ข  Node.js 20+  โ€ข  Cloud Run            โ”‚
โ”‚     Server-Sent Events (SSE)  โ€ข  Zod Validation        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                   Intelligence Layer                   โ”‚
โ”‚     Captain Adel  โ€ข  Gemini 2.5 Flash  โ€ข  ALLaM (KSA)  โ”‚
โ”‚     Dense Vector (BGE-M3)  โ€ข  Lexical Inverted (BM25)  โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                   Data & Storage Layer                 โ”‚
โ”‚     PostgreSQL  โ€ข  Supabase pgvector  โ€ข  IndexedDB     โ”‚
โ”‚     Forward-Only Migrations  โ€ข  PDPL-Compliant         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ— Project Directory Structure

FlyGACA/
โ”œโ”€โ”€ src/                    # React 19 Client SPA (Vite)
โ”‚   โ”œโ”€โ”€ components/         # Reusable Falcon design UI components
โ”‚   โ”œโ”€โ”€ pages/              # Route-based page views
โ”‚   โ”œโ”€โ”€ lib/                # Deterministic flight calculator engines
โ”‚   โ””โ”€โ”€ i18n/               # Bilingual English/Arabic translations
โ”œโ”€โ”€ server/                 # Express 5 API Backend
โ”‚   โ”œโ”€โ”€ routes/             # RESTful API endpoints & SSE chat
โ”‚   โ”œโ”€โ”€ middleware/         # Security, CORS, and auth gates
โ”‚   โ””โ”€โ”€ brain/              # AI retrieval and grounding engine
โ”œโ”€โ”€ content/                # Content authoring pipelines
โ”‚   โ””โ”€โ”€ regulations/        # 74 GACAR Parts (Authoring Markdown AST)
โ”œโ”€โ”€ docs/                   # Architectural runbooks and B2B specs
โ”‚   โ””โ”€โ”€ b2b/                # Part 141 ATO Academy platform
โ”œโ”€โ”€ screenshots/            # Automated screenshot pipelines
โ”œโ”€โ”€ terraform/              # GCP cloud monitoring & uptime alerts
โ””โ”€โ”€ tests/                  # Vitest suite (2,392+ unit tests) & Playwright e2e

๐Ÿ’ป Developer Commands

# ๐Ÿงช Quality & Testing
npm run lint              # ESLint strict validation
npm run typecheck         # Full TypeScript strict verification
npm test                  # Run Vitest test suite (2,392+ tests)
npm run test:watch        # Interactive watch mode for test suites
npm run test:e2e          # Playwright end-to-end browser tests
npm run verify            # Complete pre-flight validation bundle

# ๐Ÿš€ Development
npm run dev               # Vite local dev server with API mock
npm run dev:api           # Express API server on :3000
npm run dev:db            # Start local PostgreSQL container

# ๐Ÿ“ฆ Build & Production
npm run build             # Compile production web client bundle
npm run build:api         # Build Express API production artifacts
npm run preview           # Locally test the production build

# ๐Ÿงฎ Regulatory & Content Pipelines
npm run parse:regulations # Compile content/regulations/*.md into lookup JSON
npm run tools:test        # Verify 55+ flight calculator math vectors

๐Ÿ‡ธ๐Ÿ‡ฆ PDPL Compliance & Data Residency

  • โœ… In-Kingdom Data Residency: Primary database and compute hosted in Saudi Arabia (me-central2).
  • โœ… Zero PII Logging: Student chat interactions and calculations are scrubbed of personal identifiers.
  • โœ… Immutable Audit Trail: Strict record of regulatory citations without user tracking.
  • โœ… Right to Erasure: Fully compliant with Saudi Personal Data Protection Law (PDPL).

๐Ÿ“– Sub-Documentation Directories


๐Ÿง‘โ€๐Ÿ’ป Contributing

We warmly welcome contributions from pilots, software engineers, aviation safety experts, and educators:

  1. Fork the repository (https://github.com/iflygaca/FlyGACA)
  2. Create your feature branch (git checkout -b feat/ground-school-module)
  3. Commit your changes (git commit -m "feat: add weight and balance envelope visualizer")
  4. Test thoroughly (npm run verify)
  5. Push to your branch and open a Pull Request

See CONTRIBUTING.md for detailed guidelines.


๐Ÿ“œ License

Software components are released under the MIT License. Civil aviation regulations are property of the General Authority of Civil Aviation (GACA) and presented for educational purposes.


Built for pilots. Grounded in regulations. Powered by AI.

Website ยท Ask Captain Adel ยท Report an Issue ยท Star โญ

๐Ÿ‡ธ๐Ÿ‡ฆ ุตู†ุน ููŠ ุงู„ุณุนูˆุฏูŠุฉ ยท Made in Saudi Arabia

About

All-in-one flight platform built for Saudi civil aviation.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages