npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fetoolkit/user-agent

v2.1.0

Published

![](https://fejumvuajiwc28287693.gcdn.ntruss.com/fetoolkit/fetoolkit_thumbnail.png) (This thumbnail was created by Chat GPT)

Readme

FEToolkit/User-Agent

(This thumbnail was created by Chat GPT)

English | 한국어

FEToolkit User-Agent is a utility library that accurately parses and analyzes browser User-Agent information. It prioritizes the User-Agent Client Hints API and falls back to parsing traditional User-Agent strings for browsers that don't support it.

1. Compatibility

| Browser | enabled | | :-----------------------------------------: | :-----: | | chromium based browsers | | | Google Chrome | ✅ | | Naver Whale | ✅ | | Opera | ✅ | | MicroSoft Edge | ✅ | | OpenAI Atlas | ✅ | | Samsung Internet | ✅ | | webkit based browsers | | | Safari | ✅ | | etc | | | Firefox | ✅ |

2. Getting Started

2-1. Installation

  • npm
    npm i @fetoolkit/user-agent
  • yarn
    yarn add @fetoolkit/user-agent
  • pnpm
    pnpm add @fetoolkit/user-agent

3. Usage

getUserAgent

Retrieves the current browser's User-Agent information. Provides more accurate information when User-Agent Client Hints API is supported, and falls back to parsing traditional User-Agent strings when not supported.

import { getUserAgent } from '@fetoolkit/user-agent';

// Use as an async function
const agentInfo = await getUserAgent();

console.log(agentInfo);
// Example output:
// {
//   browser: {
//     name: 'chrome',
//     version: '120.0.0.0',
//     majorVersion: 120,
//     webkit: false,
//     webkitVersion: '-1',
//     chromium: true,
//     chromiumVersion: '120.0.6099.109',
//     webview: false,
//     isEdgeBrowser: false,
//     jsEngine: 'v8
//   },
//   os: {
//     name: 'window',
//     version: '10.0.0',
//     majorVersion: 10
//   },
//   isMobile: false
// }

Notice

  • in OpenAI Atlas, browser name will be return as 'chrome'(Nov 2025)
    • Atlas's own UA Brand Information is not registered yet.

Return Data Structure

AgentInfo

interface AgentInfo {
  browser: AgentBrowserInfo;
  os: AgentOSInfo;
  isMobile: boolean;
}

AgentBrowserInfo

interface AgentBrowserInfo {
  name: string; // Browser name (chrome, firefox, safari, etc.)
  version: string; // Browser version
  majorVersion: number; // Major version number
  webkit: boolean; // Whether it's a WebKit-based browser
  webkitVersion: string; // WebKit version
  chromium: boolean; // Whether it's a Chromium-based browser
  chromiumVersion: string; // Chromium version
  webview: boolean; // Whether it's a WebView environment
  isEdgeBrowser: boolean; // Whether it's Edge browser
  jsEngine: JavaScriptEngine; // JavaScript Engine of Browser
}

AgentOSInfo

interface AgentOSInfo {
  name: string; // Operating system name (window, mac, ios, android, etc.)
  version: string; // Operating system version
  majorVersion: number; // Major version number
}

JavaScriptEngine

// Supported browsers: Google Chrome, MS Edge, Opera, Naver Whale, Firefox, Apple Safari, OpenAI Atlas
// OpenAI Atlas is a Chromium-based browser that uses v8.
type JavaScriptEngine =
  | 'v8'
  | 'spidermonkey'
  | 'javascriptcore'
  | 'rhino'
  | 'chakra'
  | 'unknown';

Supported Operating Systems

  • Windows: Windows 10, Windows 11, Windows Phone, etc.
  • macOS: All versions
  • iOS: All versions
  • Android: All versions

Features

  • User-Agent Client Hints API Priority: Provides more accurate browser information
  • Fallback Support: Works reliably on legacy browsers
  • TypeScript Support: Complete type definitions provided
  • Lightweight: Fast loading with minimal dependencies
  • Mobile Support: Perfect support for mobile browsers and WebView environments