Skip to Content
Technical docsTechnical overview

Technical overview

These pages are for developers and maintainers. Day-to-day clinic users can ignore this section.

Stack

LayerTechnology
AppNext.js (App Router) + TypeScript + React + ShadCN UI
Link & settings storageUpstash Redis
File destinationMicrosoft Graph / OneDrive
AuthMicrosoft Entra ID (MSAL) with PKCE; signed HttpOnly cookies
EmailAzure Communication Services
Optional on VercelVercel Blob for durable OneDrive token cache

Surfaces

SurfaceURLUsers
Parent upload portal/ via /portalaccess/{token}Parents / caregivers
Admin console/setupAllowlisted Microsoft accounts
Public info/info, /privacy, /tosAnyone

Key modules in the application repo

PathResponsibility
lib/server.tsRedis, config, links, MSAL/token cache, cookies, Graph helpers
lib/upload.tsBrowser upload orchestration
lib/email.tsACS send helper
lib/appConfig.tsShared types and defaults
lib/uploadFilename.ts / lib/age.tsNaming and age math
components/uploadArea.tsxFile picker / upload controls
app/setup/page.tsxAdmin console

Continue with Architecture or API reference.

Last updated on