Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

astro-toolbar-ua

Latest version: v0.1.4

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: guillevc
0 Stars
0 Forks
1 Versions
67 Downloads
TypeScript Repo language

Scan summary

astro-toolbar-ua was last scanned on 29 Nov 2026 at version 0.1.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 29 Nov 2026.
  • Findings: No rules fired in version 0.1.4.
  • Downloads: 67 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.4 LATEST 29 Nov 2026 No rules fired

No rules fired in 0.1.4

Findings

Findings for v0.1.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

astro-toolbar-ua

Star on GitHub npm version license

Test platform detection and browser-specific behavior without leaving your browser — switch user agent strings directly from the Astro dev toolbar.

Install

Need to check how your site behaves on iOS, Android, or Safari? Add it in one command:

# npm
npx astro add astro-toolbar-ua

# pnpm
pnpm astro add astro-toolbar-ua

# yarn
yarn astro add astro-toolbar-ua

Or install manually:

npm install -D astro-toolbar-ua
// astro.config.mjs
import { defineConfig } from "astro/config";
import toolbarUA from "astro-toolbar-ua";

export default defineConfig({
  integrations: [toolbarUA()],
});

Usage

Open the UA Switch panel in the Astro dev toolbar. Pick a preset or paste a custom UA string. The page reloads with the new user agent applied.

A notification dot appears on the toolbar icon when a UA override is active.

Presets
Category Presets
Desktop macOS, Windows, Linux
Mobile iOS, Android
Browsers Safari, Firefox, Edge

You can also enter any custom UA string directly.

How it works

  1. A synchronous <head> script reads a localStorage key and overrides navigator.userAgent via Object.defineProperty — before any page scripts run
  2. The toolbar UI writes the selected UA string to localStorage and reloads the page
  3. Only runs during astro dev — production builds are not affected

Good to know

  • Only overrides client-side navigator.userAgent. Does not modify server-side request headers.
  • Object.defineProperty on navigator.userAgent works in Chromium and Firefox. Safari may not support it in all versions.

Support

If you find this useful, star the repo on GitHub — it helps others discover it.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm astro-toolbar-ua

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229