How aau-giraf/visual-tangible-artefacts works
Purpose and deployable entry points
VTA (Visual Tangible Artefacts), part of GIRAF, is a multi-client assistive-communication system centered on visual artefacts, boards, caregiver/child relationships, remote collaboration, and calls. It comprises:
• ASP.NET Core REST API: Backend/VTA.API/Program.cs
• ASP.NET Core real-time sync service: Backend/SyncService/Program.cs
• Flutter multi-platform end-user client: Frontend/vta_app/lib/main.dart
• Vue/Vite admin dashboard: Frontend/admin-dashboard/src/main.ts
Core API and domain boundary
The REST API exposes resource-oriented endpoints for users, artefacts, categories, boards, saved artefacts, relationships, assets, administration, and sync. Controllers are the HTTP/auth boundary; service interfaces and implementations contain application behavior and map domain entities to DTOs.
Paths: Backend/VTA.API/Controllers/BoardsController.cs, Backend/VTA.API/Controllers/ArtefactsController.cs, Backend/VTA.API/Services/BoardService.cs.
Persistence and domain model
VTA.Data is the shared Entity Framework Core persistence layer. VTAContext maps the database-first MySQL schema to artefacts, categories, relations, users, saved boards/artefacts, and sessions. API services operate through this boundary rather than exposing database entities directly.
Paths: Backend/VTA.Data/DbContexts/VTAContext.cs, Backend/VTA.Data/Models/Artefact.cs, Backend/VTA.Data/Models/SavedBoard.cs.
Board authoring and client state
The Flutter application follows an evolving MVVM-like layout: screens/widgets render boards; ChangeNotifier controllers coordinate interaction state; local database repositories retain user, artefact, board, and sync metadata. Board variants include artifact, linear, remote, and TalkingMat flows.
Paths: Frontend/vta_app/lib/src/app.dart, Frontend/vta_app/lib/src/controllers/artifact_board_controller.dart, Frontend/vta_app/lib/src/database/database.dart.
Remote collaboration and synchronization
The API provides durable sync-related data while SyncService provides live board-session coordination through SignalR. Its hub delegates session management, presence tracking, and board-event relay to services. Flutter’s SignalR stack routes inbound events, while remote sender/receiver and sync upload/download services propagate board changes and reconcile local/remote state.
Paths: Backend/SyncService/Hubs/BoardHub.cs, Backend/SyncService/Services/BoardSyncRelay.cs, Frontend/vta_app/lib/src/services/signalr_event_router.dart, Frontend/vta_app/lib/src/services/remote_sync_service.dart.
Calls, media, and external integrations
The Flutter client contains WebRTC/video-call and call-session management, likely coordinated with the SyncService session/presence layer. The API owns image, sound, and text-to-speech service boundaries, including an ElevenLabs adapter. Client audio, recording, camera, and network-media capabilities remain platform-facing adapters.
Paths: Frontend/vta_app/lib/src/services/webrtc_service.dart, Frontend/vta_app/lib/src/services/call_manager.dart, Backend/VTA.API/Utilities/ElevenLabsService.cs, Backend/VTA.API/Services/ImageService.cs.
Administration, infrastructure, and delivery
The Vue dashboard is a separate authenticated administrative client for users, administrators, caregivers, children, and pairings, calling API-specific Axios modules. Backend services have Dockerfiles; the repository Docker Compose configuration likely composes runtime dependencies. Production API deployment is VPS/systemd-based, while CI runs .NET tests against ephemeral MySQL via Testcontainers. Secrets provide JWT, database, and deployment configuration.
Paths: Frontend/admin-dashboard/src/router/index.ts, Frontend/admin-dashboard/src/api/axios.ts, docker-compose.yml, .github/workflows/dotnet-ci-cd.yml.
Main entry points: VTA.API/Program.cs VTA REST API · remote_sync_service.dart Client sync stack · main.dart VTA app · SyncService/Program.cs SyncService
Components 19
Backend services
REST, real-time, and shared persistence runtimes.
- VTA REST API · HTTP and authentication boundary for VTA resources.
Backend/VTA.API/Program.cs - Resource controllers · Boards and artefacts endpoints route requests into application services.
Backend/VTA.API/Controllers/BoardsController.cs - Board service · Applies board behavior and DTO mapping.
Backend/VTA.API/Services/BoardService.cs - VTA.Data · Shared database-first persistence boundary.
Backend/VTA.Data/DbContexts/VTAContext.cs - Domain entities · Artefacts, saved boards, users, relations, and sessions.
Backend/VTA.Data/Models/Artefact.cs - Media and TTS services · Image, sound, and text-to-speech boundaries.
Backend/VTA.API/Services/ImageService.cs - ElevenLabs adapter
Backend/VTA.API/Utilities/ElevenLabsService.cs - SyncService · Live board-session coordination runtime.
Backend/SyncService/Program.cs - Board hub · Accepts clients and delegates session events.
Backend/SyncService/Hubs/BoardHub.cs - Board sync relay · Tracks presence and relays board events.
Backend/SyncService/Services/BoardSyncRelay.cs
Flutter client
End-user board, collaboration, and call client.
- VTA app · Multi-platform end-user client.
Frontend/vta_app/lib/main.dart - Board UI and controllers · Board variants render through widgets and ChangeNotifier interaction state.
Frontend/vta_app/lib/src/controllers/artifact_board_controller.dart - Local repositories · Retains user, artefact, board, and sync metadata.
Frontend/vta_app/lib/src/database/database.dart - Client sync stack · Routes events and uploads/downloads remote board changes.
Frontend/vta_app/lib/src/services/remote_sync_service.dart - Call stack · Manages video calls and call sessions.
Frontend/vta_app/lib/src/services/webrtc_service.dart
Admin client
Separate administrative dashboard.
- Admin dashboard · Authenticated administration for users, roles, and pairings.
Frontend/admin-dashboard/src/main.ts - Admin API client · Dashboard API transport and authentication.
Frontend/admin-dashboard/src/api/axios.ts
Delivery
Local composition and CI/CD.
- Docker Compose · Composes backend runtime dependencies.
docker-compose.yml - CI/CD workflow · Runs .NET tests with ephemeral MySQL and deployment steps.
.github/workflows/dotnet-ci-cd.yml
Connections 21
- VTA REST API → Resource controllers: hosts
- Resource controllers → Board service: invokes
- Board service → VTA.Data: persists through
- VTA.Data → Domain entities: maps
- VTA REST API → Media and TTS services: provides
- Media and TTS services → ElevenLabs adapter: uses TTS
- SyncService → Board hub: hosts
- Board hub → Board sync relay: delegates to
- VTA app → Board UI and controllers: renders
- Board UI and controllers → Local repositories: reads and writes
- VTA app → Client sync stack: uses
- Client sync stack → Local repositories: reconciles
- Client sync stack → Board hub: SignalR events
- Client sync stack → VTA REST API: durable sync data
- VTA app → Call stack: uses
- Call stack → SyncService: session and presence
- Admin dashboard → Admin API client: uses
- Admin API client → VTA REST API: admin requests
- Docker Compose → VTA REST API: runs
- Docker Compose → SyncService: runs
- CI/CD workflow → VTA REST API: tests and deploys