Files
Heimdall/docs/README.md
T

77 lines
3.8 KiB
Markdown
Raw Normal View History

# 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 web installable (PWA)** | [Audit et plan PWA](pwa.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 |
2026-10-21 16:03:16 +02:00
| **Enregistrements** | `docs/specs.md` (§20-21) + `docs/hangfire-usage.md` | RustFS/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 |
| **IA (ONNX)** | `docs/specs.md` | détection, face, ALPR — ONNX Runtime sur agents GPU |
| **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<TId>, 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 |
| `pwa.md` | Audit PWA du serveur Blazor, architecture cible et plan de réalisation |
| `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**
## Audit du 20 octobre 2026
- [Rapport fonctionnel et technique](audits/2026-10-20-audit-complet.md)
- [Plan d’implémentation priorisé](audits/2026-10-20-plan-implementation.md)
- [Résultats de validation](audits/2026-10-20-validation.md)
- [Audit et plan PWA](pwa.md)