The app needs root access only to open the http port, after that it can run under a low privilege user.
The userid
module is required to get the user id.
Unfortunatly it works only on the linux platform, you will have to add it under optionalDependencies.