antfu-collective / ua-parser-modern
PublicJavaScript library to detect Browser and OS info from User-Agent data, rewritten in ESM and TS
A compact JavaScript library that analyzes visitor description strings to identify browsers, rendering engines, operating systems, processors, and device types.
How It Works
You hear about a simple tool that figures out browsers, operating systems, and devices from a short visitor description string.
You grab the lightweight file that's ready to use in web pages or behind-the-scenes services.
Slip the tool into your website's code so it can start reading visitor info right away.
The tool automatically grabs and deciphers the special string every visitor sends, revealing their setup.
You receive easy-to-understand facts like the browser name, phone or computer type, and system version.
Use the details to show the perfect layout, features, or content for each visitor's device.
Everyone enjoys a site that feels just right on their phone, tablet, or computer.
Star Growth
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 RepurposeSimilar repos coming soon.