From ee118f47355037be7ffe8c8a4b5f9f1d5f863773 Mon Sep 17 00:00:00 2001 From: claude Date: Fri, 2 Oct 2026 09:07:13 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20sch=C3=A9ma=20d'architecture=20dans=20l?= =?UTF-8?q?e=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 (1M context) --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 710a05d..1c17342 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,15 @@ Recherche de dépôts GitHub selon des critères, avec une interface web claire résultats (thème clair/sombre, responsive, interface en anglais ou en français). L'interface reprend le style de [Logstream](https://gitea.vlab.bzh/cedric/logstream). -``` -navigateur ──/api/search──▶ searchgit (Go) ──REST──▶ api.github.com/search/repositories - ──/api/saved───▶ ├── cache 5 min - └── planificateur ──▶ /data (instantanés JSON) -``` +## Architecture + +![Schéma d'architecture logique de Searchgit](docs/architecture.svg) + +Le navigateur charge l'interface embarquée dans le binaire Go, puis appelle l'API `/api/*` du +serveur. Le serveur interroge l'API GitHub Search à travers un cache mémoire de 5 minutes ; le +planificateur relance les recherches programmées et enregistre leurs instantanés en JSON dans le +volume `searchgit-data`. Le schéma se modifie dans +[`docs/architecture.excalidraw`](docs/architecture.excalidraw) (excalidraw.com, menu Ouvrir). ## Démarrage rapide