How mohirshakir/testing1 works
UPHS Scan-in is a browser app backed by serverless API routes and Neon. The main workflow is staff signing in, then accessing or saving role-authorized employee and scan data; administrators also manage user accounts. The README documents additional records and import capabilities, but the frontend implementation was not sampled, so its internal flows are not inferred. API routes visibly use shared session/database helpers, and those helpers configure Neon. The graph reflects these boundaries rather than assuming specific browser-to-route calls.
Main entry points: data.js Data access · shared.js Auth and database helpers · index.html Scan-in app · login.js Login
Components 12
Browser app
- Scan-in app
public/index.html
Identity and access
- Login
api/login.js - Session status
api/me.js - Logout
api/logout.js - User administration
api/users.js
Scan-in records
- Data access
api/data.js - Employee records
api/data.js - Scan logs
api/data.js - Other app records
api/data.js
Shared services
- Auth and database helpers
lib/shared.js - Neon database
Other components
- Staff and admins
Connections 16
- Staff and admins → Scan-in app: uses
README.md - Scan-in app → Login: signs in via
README.md - Scan-in app → Data access: saves data via
README.md - Scan-in app → User administration: manages users via
README.md - Login → Auth and database helpers: uses helpers
api/login.js - Session status → Auth and database helpers: uses helpers
api/me.js - Logout → Auth and database helpers: clears cookie
api/logout.js - User administration → Auth and database helpers: uses helpers
api/users.js - Data access → Auth and database helpers: uses helpers
api/data.js - Data access → Employee records: reads and writes
api/data.js - Data access → Scan logs: reads and writes
api/data.js - Data access → Other app records: reads and writes
api/data.js - Login → Neon database: reads and updates users
api/login.js - User administration → Neon database: manages users
api/users.js - Data access → Neon database: reads and writes records
api/data.js - Auth and database helpers → Neon database: configures SQL client
lib/shared.js