2017/01/01 - Apache DeviceMap has been retired.

For more information, please explore the Attic.

BrowserMap

BrowserMap is a client side Javascript mechanism to analyze the User Agent and detect a device your browser runs on.

It is fairly close to Apache Cordova but while Cordova / Phonegap runs in a "tiny browser" wrapped into a native executable, BrowserMap runs in any full scale web browser with JavaScript support.

Example of Debugging Info - BrowserMap

BrowserMap.version=1.4.0
Modernizr.touch=true
Modernizr.csstransforms3d=true
window.devicePixelRatio=2
window.orientation=undefined
navigator.vendor=Google Inc.
navigator.platform=Win32
navigator.appName=Netscape
navigator.appVersion=5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
navigator.appCodeName=Mozilla
navigator.userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
screenWidth=1280
screenHeight=720
clientWidth=1280
orientation=landscape
portrait=false
landscape=true
screenWidthDependingOnOrientation=1280
clientWidthDependingOnOrientation=1280
devicePixelRatio=2
canResizeBrowserWindow=false

Test functions: 
function (){return BrowserMap.probe("devicePixelRatio")>=2}