# kaimallea/isMobile

A simple JS library that detects mobile devices.

Repository: https://github.com/kaimallea/isMobile
Canonical: https://ross.abutalabs.com/products/ismobile
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2023-11-04T13:00:29+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5151, "days_push": 1033, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2366, forks 234 (observed 2026-08-28T04:06:41.568827+00:00)

## What it is
A small (~1.3KB minified) TypeScript/JavaScript library that detects mobile devices by inspecting the browser environment or a user-agent string in Node.js. It returns a structured object classifying devices by vendor (Apple, Android, Amazon, Windows, etc.) and type (phone, tablet).

## Use cases
- redirect mobile visitors to a separate mobile site as early as possible
- detect phones and tablets server-side from the user-agent string
- reduce payload size by serving different content to mobile devices
- check if a user is on an iPhone, iPad, or Android device in the browser
- handle edge cases that responsive design cannot solve
- detect OkHttp or Amazon Silk user agents

## When to choose
- you need a tiny, dependency-free script that runs fast in the <head> for early mobile redirection
- you need server-side device detection in Node.js from a user-agent string
- responsive design alone cannot handle your edge case

## When to avoid
- you just need responsive layouts - CSS media queries and mobile-first design are usually enough
- you need detailed, up-to-date device capability data (screen size, OS version) - use a full device-detection database instead
- you need actively evolving vendor support - the project is in maintenance mode with infrequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, developer-tools
- domain: web-development, frontend, developer-tools
- platform: browser, cross-platform
- tags: user-agent-detection, mobile-detection, device-detection, typescript, tiny-library, nodejs

## Member repositories
- kaimallea/isMobile (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:41.568827+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:35:58.182075+00:00, confidence not recorded.
  - readme: https://github.com/kaimallea/isMobile (fetched 2026-08-28T04:06:41.568827+00:00, sha 8079e99f0563)
- Data as of 2026-08-30T08:39:29.467469+00:00.
