How pecs-mate/pesc-mate works
PECS MATE is a browser-based AAC platform: users select picture, text, or RFID cards, assemble an utterance, and communicate it through speech; caregivers and support staff extend this workflow by managing cards, boards, practice, and records. The map includes documented product branches whose implementation was not sampled, using exact paths from the tree. Sampled source supports the application/API entry and several service relationships; unsampled domain wiring is omitted rather than inferred. Optional AI speech and offline behavior are shown as distinct capabilities.
Main entry points: router.py Domain API routes · api.js API client · SupportWorkspacePage.jsx Support workspace · use-speech-controller.js Speech controller
Components 34
AAC experience
- Web application
frontend/src/App.jsx - Communication workspace
frontend/src/pages/CommunicatorPage.jsx - Speech controller
frontend/src/hooks/use-speech-controller.js - Offline session
frontend/src/hooks/use-offline-session.js - RFID board
frontend/src/RfidBoard.jsx
Cards and boards
- Card catalog
frontend/src/hooks/useLiveCardCatalog.js - Card registration
frontend/src/PhysicalCardImporter.jsx - A4 editor and sharing
frontend/src/A4Workspace.jsx - Board management
frontend/src/BoardConfiguration.jsx
Practice and support
- Practice and courses
frontend/src/PracticeOverview.jsx - Support workspace
frontend/src/pages/SupportWorkspacePage.jsx - Records and insights
frontend/src/SupportRecordTabs.jsx
API and services
- API client
frontend/src/services/api.js - FastAPI application
backend/app/main.py - Domain API routes
backend/app/api/router.py - Identity and permissions
backend/app/api/accounts.py - Card API
backend/app/api/cards.py - Board API
backend/app/api/boards.py - Communication API
backend/app/api/communication.py - Learning APIs
backend/app/api/learning.py - Records API
backend/app/api/records.py - RFID API
backend/app/api/rfid.py - Practice suggestions
backend/app/api/practice_suggestions.py - Card submission service
backend/app/services/card_submissions.py - Sentence and history service
backend/app/services/communication.py - Sentence generation
backend/app/services/model.py - Image storage
backend/app/services/image_storage.py
State and speech
- MongoDB
- Browser offline store
frontend/src/services/offlineStore.js - Speech synthesis
backend/app/services/speech_runtime.py - MeloTTS
services/melotts/server.py
Other components
- AAC user
- Caregiver / staff
- RFID reader
Connections 38
- AAC user → Web application: uses
- Caregiver / staff → Web application: manages through
- RFID reader → RFID board: tags cards
- Web application → Communication workspace: renders
frontend/src/App.jsx - Web application → Support workspace: renders
frontend/src/App.jsx - Communication workspace → Card catalog: refreshes
frontend/src/hooks/useLiveCardCatalog.js - Communication workspace → Speech controller: controls speech
- RFID board → API client: sends mapping requests
- Support workspace → Card registration: renders
frontend/src/pages/SupportWorkspacePage.jsx - Support workspace → A4 editor and sharing: offers
- Support workspace → Board management: offers
frontend/src/pages/SupportWorkspacePage.jsx - Support workspace → Records and insights: renders
frontend/src/pages/SupportWorkspacePage.jsx - Practice and courses → API client: requests practice
- Speech controller → API client: requests audio
frontend/src/hooks/use-speech-controller.js - Speech controller → Browser offline store: queues events
frontend/src/hooks/use-speech-controller.js - Card catalog → API client: loads cards
frontend/src/hooks/useLiveCardCatalog.js - API client → FastAPI application: calls
- FastAPI application → Domain API routes: mounts
backend/app/main.py - Domain API routes → Identity and permissions: registers
backend/app/api/router.py - Domain API routes → Card API: registers
backend/app/api/router.py - Domain API routes → Board API: registers
backend/app/api/router.py - Domain API routes → Communication API: registers
backend/app/api/router.py - Domain API routes → Learning APIs: registers
backend/app/api/router.py - Domain API routes → Records API: registers
backend/app/api/router.py - Domain API routes → RFID API: registers
backend/app/api/router.py - Domain API routes → Practice suggestions: registers
backend/app/api/router.py - Card API → Card submission service: calls
backend/app/api/cards.py - Communication API → Sentence and history service: uses
- Sentence and history service → Sentence generation: generates with
backend/app/services/communication.py - FastAPI application → MongoDB: configures access
- Speech synthesis → MeloTTS: uses
- Card registration → API client: submits cards
- Card submission service → Image storage: stores images
- Image storage → MongoDB: stores derivatives
- Sentence and history service → MongoDB: persists history
backend/app/services/communication.py - Speech controller → API client: saves settings
frontend/src/hooks/use-speech-controller.js - Offline session → Browser offline store: manages offline state
- Practice suggestions → Learning APIs: supports practice