antfu-collective

JavaScript library to detect Browser and OS info from User-Agent data, rewritten in ESM and TS

60
0
100% credibility
Found Mar 10, 2026 at 50 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A compact JavaScript library that analyzes visitor description strings to identify browsers, rendering engines, operating systems, processors, and device types.

How It Works

1
🔍 Discover the Device Detector

You hear about a simple tool that figures out browsers, operating systems, and devices from a short visitor description string.

2
📥 Pick Up the Tool

You grab the lightweight file that's ready to use in web pages or behind-the-scenes services.

3
🌐 Add It to Your Site

Slip the tool into your website's code so it can start reading visitor info right away.

4
Parse the Visitor Info

The tool automatically grabs and deciphers the special string every visitor sends, revealing their setup.

5
📊 Get Clear Details

You receive easy-to-understand facts like the browser name, phone or computer type, and system version.

6
🎨 Tailor the Experience

Use the details to show the perfect layout, features, or content for each visitor's device.

Delight Your Visitors

Everyone enjoys a site that feels just right on their phone, tablet, or computer.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 50 to 60 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ua-parser-modern?

ua-parser-modern is a compact JavaScript library that parses user-agent strings to extract browser name and version, OS details, CPU architecture, engine, and device type or model. Rewritten in ESM and TypeScript, it runs in browsers (auto-detecting navigator.userAgent) or Node.js (via request headers), delivering structured data like "Chrome 120 on Android tablet." It tackles the mess of custom regexes for browser and data detection in analytics, logging, or conditional rendering.

Why is it gaining traction?

This MIT-licensed fork of ua-parser-js dodges the original's AGPL shift, retaining vast detection for obscure browsers, OSes, and devices while shrinking to 6KB gzipped. TypeScript support and simple API—pass a UA string, get a result object—make it a no-fuss pick over bulkier alternatives. Devs in javascript github projects value its reliability for quick browser insights without license drama.

Who should use this?

Node.js backend engineers parsing headers for user segmentation or fraud checks. Frontend devs building multi-device UIs needing OS/browser flags. Teams using javascript github api or pages for client-side analytics on browser and data patterns.

Verdict

Grab it for lightweight, MIT-safe UA parsing in modern JS stacks, especially if dodging AGPL. Low 16 stars and 1.0% credibility signal early maturity—pair with tests—but its proven regex base makes it viable for non-critical javascript library github repo needs.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.