# fnando/browser

Do some browser detection with Ruby. Includes ActionController integration.

Repository: https://github.com/fnando/browser
Canonical: https://ross.abutalabs.com/products/fnando-browser
Language: Ruby
License: MIT
License Family: permissive
Topics: ruby, rails, user-agent, browser-detection
Last push: 2025-06-10T23:37:39+00:00

## Health v2 (maintenance only)
Score: 44/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 26, release rhythm 35, longevity 100
- inputs: {"age_days": 5892, "days_push": 449, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2499, forks 365 (observed 2026-08-28T04:06:56.884543+00:00)

## What it is
A Ruby gem for detecting browsers, bots, devices, and platforms from user agent strings. It includes ActionController integration for Rails applications.

## Use cases
- detect browser type and version from user agent in Ruby
- identify bots and search engine crawlers in a Rails app
- detect mobile devices and tablets from request headers
- serve different content based on browser or platform
- detect iOS or Android version from user agent
- block or flag bot traffic in a web application

## When to choose
- you need user agent parsing in Ruby or Rails
- you want device, platform, and bot detection in one gem
- you need ActionController integration for request-based detection

## When to avoid
- you need client-side feature detection rather than user agent sniffing
- your project is not in Ruby
- you need high-throughput log analysis of user agents at scale

## Facets
- artifact type: library
- maturity: active
- function: parser, developer-tools
- domain: web-development, backend
- platform: ruby
- tags: user-agent, browser-detection, rails, actioncontroller

## Member repositories
- fnando/browser (main) score 44

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.884543+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:27:00.107949+00:00, confidence not recorded.
  - readme: https://github.com/fnando/browser (fetched 2026-08-28T04:06:56.884543+00:00, sha 61b5cc1f9000)
- Data as of 2026-08-30T08:39:29.467469+00:00.
