Backend and APIs
The backend is served by scripts/portal-proxy.mjs. It combines Prototics storage, authentication, Portal proxying, layer query helpers, and Utility Network operations.
Authentication
POST /api/prototics/auth/registerPOST /api/prototics/auth/loginPOST /api/prototics/auth/logoutGET /api/prototics/auth/mePUT /api/prototics/auth/me
Configurations and Styles
Use bearer authorization for configuration and style endpoints. The backend supports list, create, read, update, and delete operations for both record types.
Operational APIs
/api/portalproxies Portal REST calls./api/layer-fieldsreads available fields./api/layer-queryqueries layer features./api/utility-network/traceforwards Utility Network trace requests./api/assistantsupports assistant-backed profile help where configured.
Storage
The default VPS data directory is /opt/profiletool/data. JSON files include users, sessions, trial requests, configurations, styles, datasets, and mail outbox records.