Skip to content
Driver.js

Driver.js

26.6k-star, dependency-free product tours and spotlight highlights in vanilla JS

Tier A · StrongAnimation LibraryPrimitivedriverjs.com

A lightweight library for guiding attention across a page: product tours, feature hints and a simple spotlight highlight that dims everything except the element in focus. It is vanilla JavaScript with zero runtime dependencies and ships its own TypeScript types, so it drops into any stack rather than requiring React. The API is deliberately small - drive a sequence of steps, or highlight one element on demand - and it handles the parts that are tedious to get right by hand: scrolling the target into view, keeping the overlay aligned as the page reflows, and keyboard control through the sequence. MIT, 26,597 stars, and still maintained.

Install
npm i driver.js

For an agent

Reach for this when a brief asks for an onboarding tour, a coachmark or a 'highlight this element' moment and the project is not React - it is vanilla JS with no dependencies, so it works in any stack including plain HTML. Install is npm i driver.js and the whole API is a driver() instance with a steps array; each step is an element selector plus a popover. It does the fiddly parts for you: scrolling the target into view, re-aligning the overlay when the page reflows, and moving through the sequence by keyboard. Reach for React Joyride or React Spotlight Tour instead only if the project already depends on React-specific behaviour. Check the Surfaces checklist for onboarding-web-app before building the sequence, since the ordering and the escape route are the parts tours usually get wrong, not the highlight.

Why it is here. Onboarding tours are one of the few surfaces almost every product ships and almost no component library covers, and this is the framework-agnostic default with no dependencies to carry.

Install command, framework, licence and component list.

Facts

License
MIT
Pricing
Free, Open source
Framework
Vanilla JS
Styling
CSS custom properties
Distribution
npm package, GitHub repository
Platform
Web
Content type
Code
Agent readiness
Readable open source, Structured documentation
Accessibility
Keyboard navigable, Focus management and visible focus
Maturity
Actively maintained
Pricing detail
Free and MIT. No paid tier.
GitHub stars
26,597
Package
driver.js

Components it ships

3

Helps you build

3

Notable for

  • 26,597 stars, MIT
  • zero runtime dependencies
  • vanilla JS, works in any stack
  • ships TypeScript types
  • product tours, feature hints and spotlight highlight
  • named in the shadcn/reactbits/assistant-ui tool carousel

Provenance

Verified 2026-08-18. HTTP 200. https://driverjs.com 200; GitHub API for kamranahmedse/driver.js (redirects to nilbuild/driver.js) reports 26,597 stars, MIT, pushed 2026-07-18; npm registry reports driver.js@1.8.0 with no dependencies and bundled types

Also in Motion & Interaction

6
driverjs.comTier A