No description, website, or topics provided.
JavaScript HTML Makefile
Switch branches/tags
Nothing to show
Clone or download

Fingerbank Javascript client


The Fingerbank client is a Javascript client that can accuratly determine what kind of device is using your application based on the client user agent. It uses the data collected by the Fingerbank project and it's public API to allow the discovery of more than 5000 devices including detailed information of most of the Android devices.


You can install the client with bower

# bower install fingerbank-client

And import dist/fingerbank-client.js in your application

You can also add the following tag to your webpage :

<script src=""></script>


First, you need to initialize the client.

var client = new FingerbankClient();

And you can then interogate the API with a user agent

var endpoint = client.endpointFromUserAgent("Some user agent string")

You can also get the Endpoint object from the currently connected browser

var endpoint = client.endpointFromCurrentUserAgent()

Here are the most interesting attributes/methods for an endpoint     // friendly device name
endpoint.parents  // friendly names of the hierarchy of this device. From closest to furtest
endpoint.version  // The OS version of the device.
endpoint.hasParent("Generic Android") // Check if the device has for parent 'Generic Android'"Samsung Android") // Check if the device is or has for parent Samsung Android


An example is provided in this repository in index.html.