Build step-by-step product tours that guide new users through your app's features with highlighted elements and explanatory popovers.
Add contextual help overlays that dim the background while users fill out forms or complete specific tasks.
Create focus-directing highlights on individual page elements to draw attention during user interactions or announcements.
Implement modal-style overlays or 'lights off' effects similar to video player controls for better visual isolation.
Driver.js is a small JavaScript library that draws attention to specific elements on a web page, highlighting them with a spotlight effect and dimming everything else around them. The most common use is building product tours: step-by-step guides that walk new users through an application's features by pointing out each part of the interface in sequence, with an explanation shown in a popover (a small tooltip-like bubble). But tours are just one use case. The library can also highlight a single element to draw a user's focus while they interact with something else, show contextual help with a dimmed background while a user fills out a form, create modal-style overlays, or simulate a "Turn off the Lights" effect like those on video players. All of these share the same underlying mechanism: a configurable overlay that isolates part of the page visually. Driver.js is written in TypeScript, has no external dependencies, and weighs about 5 kilobytes compressed, making it one of the lightest options in this category. It is keyboard-controllable and works across all major browsers. You would use it when building a web application where you need to onboard new users, explain features contextually, or direct attention to a specific part of the interface. It is available as an npm package and is MIT licensed.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.