Ross ROSS = Recommend OSS · open-source software intelligence for agents

sindresorhus/devtools-detect

Detect if DevTools is open and its orientation observed · 2026-08-28

github.com/sindresorhus/devtools-detect · homepage · HTML · MIT (permissive) · archived observed · 2026-08-28

Health v2 · maintenance only

10/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100

Flags: archived

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4810
  • days_rel: n/a
  • days_push: 862
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2136 stars · 221 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A small JavaScript library that detects whether browser DevTools is open and its orientation, emitting a 'devtoolschange' event on changes. It works across Chrome, Safari, Firefox, and Opera DevTools, though the README notes it now suffers from false positives.

Use cases

  • detect if devtools is open in the browser
  • pause canvas rendering when devtools is open
  • show debug styles when devtools is open
  • get notified when devtools opens or closes
  • check devtools orientation in a react app

When to choose

  • you need a lightweight, dependency-free browser-side devtools detection with an event-based API
  • you want a quick check of devtools open state or orientation in Chrome, Safari, Firefox, or Opera

When to avoid

  • you need reliable, false-positive-free detection — the README warns browsers changed and detection is now unreliable
  • you need to detect undocked DevTools, which is not supported
  • you need server-side or non-browser detection

Facets

library · maturity maintenance

developer-tools browser-extension developer-tools web-development browser-extensions browser devtools detection browser-api javascript frontend

2 sources

Member repositories

RepositoryRoleHealth v2
sindresorhus/devtools-detectmain10

For agents

markdown · JSON · MCP: product_card(name="sindresorhus/devtools-detect")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem