# Heimdall — Documentation Bienvenue dans la documentation technique de Heimdall, plateforme de vidéosurveillance IA locale, multi-site, auto-hébergée. --- ## 🧭 Par où commencer | Si vous cherchez... | Allez voir | |---|---| | **Vue d'ensemble** du projet | `docs/specs.md` (Vision, Architecture, Stack) | | **Plan d'implémentation** (23 phases) | `docs/implementation.md` | | **Maquettes UI Blazor** détaillées | `docs/ui-pages.md` | | **Application Android** (Kotlin + Jetpack Compose) | `docs/mobile-app.md` | ## 🏗️ Domaines fonctionnels | Domaine | Document | Contenu | |---|---|---| | **Sites & Agents** | `docs/specs.md` (§11-12) | Sites, tokens, registration, heartbeat, bootstrap | | **Caméras & IA** | `docs/specs.md` (§14-19) | ONVIF, Imou, FFmpeg, GPU, AI Pipeline, détection | | **Streaming live** | `docs/specs.md` (§13) + `docs/signalr-usage.md` | WebRTC, SIPSorcery, SFU, signaling, JS Interop | | **Enregistrements** | `docs/specs.md` (§20-21) + `docs/hangfire-usage.md` | MinIO/S3, rétention, stockage local | | **Événements** | `docs/specs.md` (§16-19) | Personnes, véhicules, plaques, notifications | | **Notifications** | `docs/notifications.md` | Email SMTP, Gotify, templates Markdown i18n | ## 🔧 Domaines techniques | Domaine | Document | Contenu | |---|---|---| | **Auth & Rôles** | `docs/auth-roles.md` | Identity, JWT, permissions, UI par rôle, site-scope | | **CodeProject.AI** | `docs/codeproject-ai.md` | API endpoints, modules, modèles, performances, pipeline | | **Hangfire (jobs)** | `docs/hangfire-usage.md` | Central PostgreSQL, Agent InMemory, tous les jobs | | **SignalR (temps réel)** | `docs/signalr-usage.md` | 5 hubs, events, streaming, monitoring, notifications | | **Déploiement Docker** | `docs/specs.md` (§30) | Containers, GPU passthrough, docker-compose | ## 📐 Structure du projet ``` Heimdall/ ├── src/ │ ├── Heimdall.Domain # Entités, Value Objects, Enums │ ├── Heimdall.Domain.Primitives # Types de base (Entity, ValueObject) │ ├── Heimdall.Contracts # DTOs partagés, constantes │ ├── Heimdall.Application # CQRS (Command/Query/Handler) │ ├── Heimdall.Infrastructure # EF Core, PostgreSQL, S3, Identity │ ├── Heimdall.Api # API REST + SignalR Hubs │ ├── Heimdall.Web # Blazor Web App (MudBlazor) │ ├── Heimdall.Agent # Worker + SIPSorcery + FFmpeg │ └── Heimdall.Workers # Hangfire jobs ├── tests/ # xUnit + Shouldly + NSubstitute ├── docker/ # Docker Compose + Dockerfiles └── docs/ # Documentation (ce dossier) ``` ## 📋 Fichiers de documentation | Fichier | Description | |---|---| | `specs.md` | Spécification complète : vision, architecture, features, déploiement | | `implementation.md` | Plan d'implémentation en 23 phases ordonnées | | `ui-pages.md` | Pages Blazor (MudBlazor) : maquettes ASCII, composants, états | | `mobile-app.md` | App Android (Kotlin + Jetpack Compose) : Clean Arch, WebRTC natif, tests | | `auth-roles.md` | Auth : 2 user types, permissions, site-scope, UI visibility | | `notifications.md` | Email (SMTP), Gotify, templates Markdown i18n, hangfile queue | | `hangfire-usage.md` | Jobs Central (PostgreSQL) + Agent (InMemory) complets | | `signalr-usage.md` | 5 hubs SignalR : events, streaming, monitoring, notifications, admin | **Total : ~5 600 lignes de documentation**