How isaactxr/rpvp works
Laboral is a web system for facially verified attendance, session operations, and administrative audit. Users sign in, access role-gated modules, and can check in/out through a blink-validated facial capture; administrators and instructors manage sessions, while authorized staff review attendance and audit exports. The backend separates HTTP routing/controllers from domain services and PostgreSQL; a separate recognition service evaluates submitted images. The README documents the frontend capabilities, but sampled frontend excerpts do not show its API calls, so those links are marked unverified.
Main entry points: reconhecerController.js Domain handlers · scripts Browser modules · database.js PostgreSQL · reconhecer.js HTTP routes
Components 29
Web interface
- Browser modules
frontend/scripts - Login and password
frontend/scripts/login.js - Session management
frontend/scripts/sessoes.js - Session detail
frontend/scripts/sessao.js - Attendance audit
frontend/scripts/registros.js - Operations dashboard
frontend/scripts/dashboard.js - User administration
frontend/scripts/usuarios.js - System settings
frontend/scripts/configuracoes.js
HTTP and access
- HTTP routes
backend/src/routes/reconhecer.js - Auth and roles
backend/src/middleware/auth.js - Domain handlers
backend/src/controllers/reconhecerController.js
Attendance operations
- Face recognition client
backend/src/services/faceRecognitionService.js - Recognition engine
face-recognition/app.py - Face collections
backend/src/services/usuarioFaceService.js - Presence records
backend/src/services/presencaService.js - Session lifecycle
backend/src/services/sessaoService.js - Audit queries
backend/src/services/auditoriaService.js - Audit exports
backend/src/services/auditoriaExportService.js - Session exports
backend/src/services/sessaoExportService.js
Administration
- User management
backend/src/services/usuarioService.js - User import/export
backend/src/services/usuarioImportExportService.js - Authentication service
backend/src/services/authService.js - Password cryptography
backend/src/services/cryptoService.js - Admin handlers
backend/src/controllers/adminController.js - Runtime configuration
backend/src/services/configService.js - Session types
backend/src/services/tipoSessaoService.js
Runtime and persistence
- PostgreSQL
backend/src/config/database.js - Express application
backend/server.js
Other components
- Staff and admins
Connections 34
- Staff and admins → Browser modules: uses
README.md - Browser modules → HTTP routes: calls API
- HTTP routes → Auth and roles: authenticates
backend/src/routes/reconhecer.js - HTTP routes → Domain handlers: dispatches
backend/src/routes/reconhecer.js - Auth and roles → Authentication service: validates session
backend/src/middleware/auth.js - Domain handlers → Face recognition client: requests match
backend/src/controllers/reconhecerController.js - Domain handlers → Face collections: loads candidates
backend/src/controllers/reconhecerController.js - Domain handlers → Presence records: records attendance
backend/src/controllers/reconhecerController.js - Domain handlers → Session lifecycle: handles sessions
backend/src/controllers/reconhecerController.js - Domain handlers → Audit queries: queries audit
backend/src/controllers/reconhecerController.js - Domain handlers → Audit exports: exports audit
backend/src/controllers/reconhecerController.js - Domain handlers → Session exports: exports sessions
backend/src/controllers/reconhecerController.js - Domain handlers → User management: manages users
backend/src/controllers/reconhecerController.js - Domain handlers → User import/export: imports users
backend/src/controllers/reconhecerController.js - Face recognition client → Runtime configuration: reads threshold
backend/src/services/faceRecognitionService.js - Face recognition client → Recognition engine: posts images
backend/src/services/faceRecognitionService.js - Admin handlers → Runtime configuration: updates settings
backend/src/controllers/adminController.js - Admin handlers → Session types: manages types
backend/src/controllers/adminController.js - Authentication service → Password cryptography: hashes passwords
backend/src/services/authService.js - Session lifecycle → PostgreSQL: reads and writes
backend/src/services/sessaoService.js - Presence records → PostgreSQL: reads and writes
backend/src/services/presencaService.js - Audit queries → PostgreSQL: queries records
backend/src/services/auditoriaService.js - User management → PostgreSQL: reads and writes
backend/src/services/usuarioService.js - Face collections → PostgreSQL: stores collections
backend/src/services/usuarioFaceService.js - Runtime configuration → PostgreSQL: stores settings
backend/src/services/configService.js - Session types → PostgreSQL: stores types
backend/src/services/tipoSessaoService.js - Express application → PostgreSQL: validates connection
backend/server.js - Login and password → Browser modules: supports access
- Session management → Browser modules: provides screens
- Session detail → Browser modules: provides screens
- Attendance audit → Browser modules: provides screens
- Operations dashboard → Browser modules: provides screens
- User administration → Browser modules: provides screens
- System settings → Browser modules: provides screens