kaimallea/isMobile
A simple JS library that detects mobile devices. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5151
- days_rel: n/a
- days_push: 1033
- n_releases_24m: 0
Adoption not part of the score
2366 stars · 234 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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
library · maturity maintenance
http-client developer-tools web-development frontend developer-tools browser cross-platform user-agent-detection mobile-detection device-detection typescript tiny-library nodejs
1 source
- readme: https://github.com/kaimallea/isMobile · fetched 2026-08-28 · 8079e99f0563
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| kaimallea/isMobile | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="kaimallea/isMobile")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem