Hand an options object to DeviceDetectionOnPremisePipelineBuilder or DeviceDetectionCloudPipelineBuilder, call build(), then await flowData.process() and read flowData.device. TypeScript declarations ship with the packages.
The on-premise examples keep a Device Detection or IP Intelligence data file fresh by watching the file, polling on an interval, or updating at start-up. Cloud examples look up devices by TAC or native model name, and fiftyone.ipintelligence.translation translates...