focus-visible is a JavaScript polyfill that enhances accessibility by providing a CSS class (.js-focus-visible) to elements only when they receive focus via keyboard interaction. This allows developers to apply distinct styling for keyboard focus, improving the user experience for those navigating with a keyboard or assistive technologies. It helps in differentiating between mouse and keyboard focus, addressing a common UX challenge. This package increases website accessibility for keyboard users.
The focus-visible npm package saw initial releases in early 2018, peaking in April. Version 5.x arrived in mid-2019, with sparse updates in 2020 and a single release in August 2024. Since then, there have been no further releases in 2025. The package appears to be in a state of low development activity.
Focus-visible npm package downloads peaked in May 2025 at 2.36 million, following consistent growth after March 2024. Download counts remained stable until a decline in August 2025. September 2025 shows a significant drop, likely due to incomplete monthly data.