Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Use Pro Business UA Parser

Blue Mouseb2583f8ffeb2
diff --git a/web/app/routes/_index.tsx b/web/app/routes/_index.tsx
index 920bceb18..eeff0a027 100644
--- a/web/app/routes/_index.tsx
+++ b/web/app/routes/_index.tsx
@@ -1,6 +1,7 @@
import { ArrowRightIcon } from '@heroicons/react/20/solid'
import { CheckIcon, CursorArrowRaysIcon, GlobeAltIcon } from '@heroicons/react/24/outline'
import { StarIcon } from '@heroicons/react/24/solid'
+import { UAParser } from '@ua-parser-js/pro-business'
import clsx from 'clsx'
import { motion } from 'framer-motion'
import _map from 'lodash/map'
@@ -11,7 +12,6 @@ import type { LoaderFunctionArgs } from 'react-router'
import { useLoaderData, Link, redirect } from 'react-router'
import type { SitemapFunction } from 'remix-sitemap'
import { ClientOnly } from 'remix-utils/client-only'
-import { UAParser } from 'ua-parser-js'
import { getGeneralStats, getPaymentMetainfo } from '~/api'
import Header from '~/components/Header'
diff --git a/web/knip.jsonc b/web/knip.jsonc
index 131ae0799..2c3dde29b 100644
--- a/web/knip.jsonc
+++ b/web/knip.jsonc
@@ -6,7 +6,6 @@
"@tailwindcss/typography",
"tailwindcss",
"eslint-import-resolver-node",
- "@types/ua-parser-js",
"eslint-import-resolver-typescript"
],
"ignoreBinaries": ["flyctl"],
diff --git a/web/package-lock.json b/web/package-lock.json
index 61d9880a3..acaf98880 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -16,7 +16,7 @@
"@react-router/serve": "^7.5.0",
"@swetrix/sdk": "^1.1.0",
"@tailwindcss/vite": "^4.1.4",
- "@types/ua-parser-js": "^0.7.39",
+ "@ua-parser-js/pro-business": "^2.0.3",
"axios": "^1.8.4",
"axios-auth-refresh": "^3.3.6",
"billboard.js": "^3.15.0",
@@ -54,8 +54,7 @@
"sonner": "^2.0.3",
"spacetime": "^7.9.0",
"swetrix": "^3.6.1",
- "timezone-soft": "^1.5.2",
- "ua-parser-js": "^2.0.3"
+ "timezone-soft": "^1.5.2"
},
"devDependencies": {
"@eslint/js": "^9.24.0",
@@ -3183,11 +3182,6 @@
"@types/react": "*"
}
},
- "node_modules/@types/ua-parser-js": {
- "version": "0.7.39",
- "resolved": "https://registry.npmjs.org/@types/ua-parser-js/-/ua-parser-js-0.7.39.tgz",
- "integrity": "sha512-P/oDfpofrdtF5xw433SPALpdSchtJmY7nsJItf8h3KXqOslkbySh8zq4dSWXH2oTjRvJ5PczVEoCZPow6GicLg=="
- },
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "8.30.1",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.30.1.tgz",
@@ -3372,6 +3366,38 @@
"url": "https://opencollective.com/eslint"
}
},
+ "node_modules/@ua-parser-js/pro-business": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@ua-parser-js/pro-business/-/pro-business-2.0.3.tgz",
+ "integrity": "sha512-EDaZRbjPDb/6izmEiFHcPdFO1lOqJnzIJm6jMdIj5jV6X/H/l6UMGlDsEGPItx36UHdPKoMGzRnGaqk2y7m4Wg==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/ua-parser-js"
+ },
+ {
+ "type": "paypal",
+ "url": "https://paypal.me/faisalman"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/faisalman"
+ }
+ ],
+ "dependencies": {
+ "@types/node-fetch": "^2.6.12",
+ "detect-europe-js": "^0.1.2",
+ "is-standalone-pwa": "^0.1.1",
+ "node-fetch": "^2.7.0",
+ "ua-is-frozen": "^0.1.2"
+ },
+ "bin": {
+ "pro-business": "script/cli.js"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
"node_modules/@unrs/resolver-binding-darwin-arm64": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.5.0.tgz",
@@ -10029,38 +10055,6 @@
}
]
},
- "node_modules/ua-parser-js": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-2.0.3.tgz",
- "integrity": "sha512-LZyXZdNttONW8LjzEH3Z8+6TE7RfrEiJqDKyh0R11p/kxvrV2o9DrT2FGZO+KVNs3k+drcIQ6C3En6wLnzJGpw==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/ua-parser-js"
- },
- {
- "type": "paypal",
- "url": "https://paypal.me/faisalman"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/faisalman"
- }
- ],
- "dependencies": {
- "@types/node-fetch": "^2.6.12",
- "detect-europe-js": "^0.1.2",
- "is-standalone-pwa": "^0.1.1",
- "node-fetch": "^2.7.0",
- "ua-is-frozen": "^0.1.2"
- },
- "bin": {
- "ua-parser-js": "script/cli.js"
- },
- "engines": {
- "node": "*"
- }
- },
"node_modules/ufo": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz",
diff --git a/web/package.json b/web/package.json
index ea8d89935..01598b688 100644
--- a/web/package.json
+++ b/web/package.json
@@ -30,7 +30,7 @@
"@react-router/serve": "^7.5.0",
"@swetrix/sdk": "^1.1.0",
"@tailwindcss/vite": "^4.1.4",
- "@types/ua-parser-js": "^0.7.39",
+ "@ua-parser-js/pro-business": "^2.0.3",
"axios": "^1.8.4",
"axios-auth-refresh": "^3.3.6",
"billboard.js": "^3.15.0",
@@ -68,8 +68,7 @@
"sonner": "^2.0.3",
"spacetime": "^7.9.0",
"swetrix": "^3.6.1",
- "timezone-soft": "^1.5.2",
- "ua-parser-js": "^2.0.3"
+ "timezone-soft": "^1.5.2"
},
"browserslist": {
"production": [