How peregrinoe/inventarionext works
Inventario is a browser-based asset-management system: users sign in, manage people and equipment, record assignments and lifecycle events, then review dashboard statistics or export reports. The modular client uses Supabase for authentication and persistence; the repository also contains a separate Express API backed by PostgreSQL. The README documents the main inventory capabilities, while sampled source confirms selected client persistence and API behavior; links among unsampled modules are limited to documented responsibilities.
Main entry points: database.js Data access · auth.js Client authentication · server.js Express API · images.js Image handling
Components 20
Inventory workflows
- Inventory interface
index.html - Colaborators
js/modules/colaboradores.js - Computer equipment
js/modules/equipos.js - Mobile phones
js/modules/celulares.js - Asset assignments
js/modules/asignaciones.js - Software licenses
js/modules/licencias.js - Accessories
js/modules/accesorios.js - Asset offboarding
js/modules/bajas.js - Dashboard
js/modules/dashboard.js - Reports
js/modules/reportes.js
Client foundation
- Image handling
js/core/images.js - Data access
js/core/database.js
Authentication
- Client authentication
js/core/auth.js
API backend
- Express API
api/server.js - JWT authorization
api/middleware/auth.js - PostgreSQL access
api/db.js
Data services
- PostgreSQL database
Other components
- Inventory user
- Supabase
- API client
Connections 21
- Inventory user → Inventory interface: uses
- Inventory interface → Client authentication: signs in
- Client authentication → Supabase: authenticates
- Client authentication → Data access: loads data
- Colaborators → Data access: reads/writes
- Computer equipment → Data access: reads/writes
- Mobile phones → Data access: reads/writes
- Asset assignments → Data access: reads/writes
- Software licenses → Data access: reads/writes
- Accessories → Data access: reads/writes
- Asset offboarding → Data access: reads/writes
- Dashboard → Data access: reads
- Reports → Data access: exports data
- Colaborators → Image handling: uses
- Computer equipment → Image handling: uses
- Mobile phones → Image handling: uses
- Data access → Supabase: queries
- API client → Express API: requests
- Express API → JWT authorization: checks access
- Express API → PostgreSQL access: queries
- PostgreSQL access → PostgreSQL database: reads/writes