mrkeyoor.comAsk

nilbuild/driver.jstested 30 Nov 2026commit 7c442ae

driver.js review

Our Driver.js repository run passed all 812 tests, while a separate Node run of the README snippet stopped at its CSS import.

  • README install 1.2 s
  • README snippet failed
812/812tests passed
  • 436 KB on disk
  • 0 dependencies
Webevaluationupdated 30 Nov 2026
+29stars / 7d

Driver.js adds guided tours, highlighted controls, contextual hints and onboarding checklists to an existing webpage. You write the steps in JavaScript to explain the interface and guide users through actions.

Verdict

Our Driver.js repository run passed all 812 tests, while a separate Node run of the README snippet stopped at its CSS import. Use it if developers own your onboarding and can coordinate tour steps with application state. Skip it if your product team needs visual authoring without developer work: the basic workflow defines steps in JavaScript.

Driver.js infographic: explain the interface and guide users through actions, plus our test result and who it suits
Tested 30 November 2026: the README snippet failed with "TypeError". Before that: 812 of 812 source tests passed; npm install took 1.2 s.

We ran it

Lab card: what happened when we ran driver.js
Lab card from our sandbox run
Screenshot of driver.js (driverjs.com)
driverjs.com
Install✓ · 16s778 packages · 452 MB
Build✓ · 59s
Tests✓ · 40s812 passed · 0 failed of 812 (vitest)
Repo307 files~29,152 lines of source · 7 MB · 1 CI workflows

Answers from our run

Does driver.js build from source?

Dependencies installed in 16 seconds (778 packages), and the build succeeded in 59 seconds. We cloned commit 7c442ae into a clean Debian container with 3 CPUs and no project-specific setup.

Do driver.js's tests pass?

Yes. The project's own test command finished in 40 seconds and reported 812 passed, 0 failed (vitest).

Who should not use driver.js?

Product teams needing visual authoring without a developer: the documented workflow defines steps in JavaScript.

What are the alternatives to driver.js?

Shepherd.js, Intro.js, Appcues. Our Driver.

Setup3/5In our 2026-11-30 run it installed as the README says in 1.2 s, but the README’s “Usage” example failed as written with “TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css"…”.Editor’s note: The repository harness passed installation, build and tests; a separate Node snippet stopped at its CSS import before a browser tour ran.
Docs3/5The README has an install section (“Install”) and a usage section (“Usage”), but its “Usage” example failed as written in our 2026-11-30 run (“TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css"…”).Editor’s note: We checked installation, configuration, basic usage and interactive-action guides; a complete application integration was outside our run.
Community5/5Last push on 2026-11-14, 27,322 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Historical issues show maintainer replies and user workarounds; this sample cannot measure current support response times or production adoption.
Maturity5/5Latest release 1.14.0 on 2026-11-13, repository created 2018-03-11 and its test suite passed in our sandbox (812 of 812 passed).Editor’s note: All 812 recorded tests passed, but our run did not assess browser behavior, accessibility conformance or production onboarding outcomes.

How we score

Who it’s for

Frontend developers who want MIT-licensed onboarding and control over the steps.
Teams that can coordinate target selectors, rendering and asynchronous application actions.
Products needing a small contextual explanation as well as longer guided tasks.

Who it’s NOT for

Product teams needing visual authoring without a developer: the documented workflow defines steps in JavaScript.
Flows expecting Previous to undo completed application actions: the action-tour guide says the page keeps its current state.
WeWeb teams needing a proven NPM-plugin recipe from this review: the community thread ends without a working resolution.

Setup reality

Our November 30 repository run at 7c442ae installed successfully in 16 seconds, recorded 778 dependencies and used 452 MB on disk. The build passed in 59 seconds. Tests passed in 40 seconds: Vitest reported 812 passed and 0 failed out of 812.

Browser setup needs the library, CSS, target elements and your step configuration. The installation guide provides module and CDN paths; hints and checklists have separate entries, and hints use their own stylesheet. Application actions and target timing still need your code.

A separate README-snippet run with Node stopped at the CSS import with ERR_UNKNOWN_FILE_EXTENSION. That run did not reach a browser tour. The repository harness used 3 CPUs, 8 GB RAM and image label lab-node:22; actual runtime and operating-system versions require the raw toolchain logs.

Short answer: use it when developers own the onboarding

Choose Driver.js if developers own your onboarding and application state; skip it if your product team needs visual authoring without developer work. Our repository run passed all 812 tests, but the separate README-snippet run stopped at the CSS import. The basic workflow defines steps in code, while the iTechGuides review points teams needing visual configuration toward managed onboarding products.

The useful distinction is how much application behavior you want to own. The newer package covers tours, hints and checklists, and its documentation explains delayed targets and action-driven steps. You still decide which action counts as success and what should happen when a target never arrives. The 1.14.0 package description and action-tour guide make that division clear.

Tours, hints and checklists are separate choices

Driver.js 1.14.0 lists tours, highlights, hints and onboarding checklists. Its npm description lists those features, alongside action-driven steps that wait for a click, typed input or selection. A popover is the small explanation beside a control. A highlight dims the rest of the page so that control stands out.

Choose the smallest interaction that teaches the task. The basic-usage guide documents a single highlight without navigation buttons, a sequence of steps, and hints that leave the page usable. A hint can explain an export button without asking someone to sit through a tour. A sequence makes more sense when the next control depends on what the person just did.

The package has separate hints, checklist and headless entries. The package documentation names driver.js/hints, driver.js/checklist and driver.js/headless. Don't assume one import enables every widget. The installation guide supplies separate stylesheets, and the basic tour example imports both the JavaScript factory and tour CSS.

What people use driver.js for

People have used Driver.js for dashboard help, exploratory onboarding work and frontend integration experiments. The strongest examples describe a specific task and outcome, rather than promising better activation simply because a tour exists.

Who used it What they did What happened
LogRocket's tutorial author Added search-field contextual help and a feature tour to an example dashboard Published an implementation and linked a working CodePen example
An OpenRefine forum contributor Compared libraries for explaining features and loading example data Found Driver.js easier to understand and configure in an exploratory evaluation
manurueda in GitHub issue #22 Integrated highlighting into a React component Reported success after moving instance creation into componentDidMount
matte00 in GitHub issue #162 Tried an Angular wizard whose input appeared after clicking Edit Static targets worked, but the dynamic target returned a missing-element error
A WeWeb community user Tried highlighting through WeWeb's NPM plugin Could not initialize the library and asked for setup help

The OpenRefine discussion is particularly useful because another participant corrected the comparison: Shepherd also supports asynchronous work through promises and native event listeners. Preference for Driver.js's configuration was the evaluator's judgment. It wasn't a demonstration that the competing library lacked async support, as abbe98 explained in the reply.

What happened when we ran it

Our November 30 README-snippet run stopped with TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css". The separate quickstart run used commit 7c442ae7e272 as its repository reference and ran the README Usage JavaScript block unedited with Node. It used a fresh unprivileged lab-node:22 container configured with 2 CPUs and 4 GB RAM, without published ports or secrets.

The sequence matters. The runner obtained the package, then executed the example. Node reached driver.js/dist/driver.css and exited with the unknown-file-extension error. The finding is specific to that execution path. It never reached a visible tour. The official browser example imports CSS too, so your application needs a way to load that stylesheet. The installation guide also provides a script-and-link CDN route. The quickstart container's teardown completed successfully.

The repository harness separately checked the development workspace at 7c442ae on November 30, using 3 CPUs, 8 GB RAM and image label lab-node:22.

Repository step Our result What it tells you
Install Succeeded in 16 seconds; 778 dependencies recorded; 452 MB on disk The workspace dependency setup completed
Build Succeeded in 59 seconds The recorded build completed
Tests Succeeded in 40 seconds; Vitest reported 812 passed, 0 failed out of 812 The recorded suite passed

Those are our repository measurements, covering a pnpm monorepo with 307 files, about 29,152 source lines and a 7 MB checkout. The scan found one CI workflow, no Dockerfile and no tests directory. A directory name is a weak signal here: the executed suite supplies the useful result. The workspace's 452 MB footprint describes development setup, not what a visitor downloads.

Where people get stuck: rendering and old examples

Starting a tour before its target exists is a recurring integration problem in the historical React and Angular threads. In issue #22, manurueda reported that creating the instance after mounting worked; NatashaKSS supplied a useEffect equivalent. Use the current factory API when following that lifecycle advice, because the thread also contains older constructor and stylesheet names.

Symptom What the reporter or maintainer said How to read it today
React example fails during rendering manurueda moved initialization to componentDidMount in #22 A reported lifecycle workaround, with current setup and cleanup guidance linked by the basic-usage docs
Input appears only after clicking Edit matte00 reported Element to highlight #ffl_step2 not found in #162 The maintainer said the v1 rewrite should remove it; newer docs describe explicit waiting
Tour shows only a dark background keke1123 reported the failure in #258 An early reply suggested stopping propagation; the maintainer said v1 no longer needed that workaround
Highlight becomes white inside a positioned parent raisoblast reported the conflict in #31 The maintainer announced a fix and raisoblast confirmed success; later plugin reports in the thread had different outcomes
Animation obscures children of fixed or sticky parents Participants in #133 disabled animation or altered CSS The maintainer later said the v1 rewrite should eliminate the issue

Newer documentation gives you a more direct approach to delayed targets. waitForElement waits for the next control, while skipMissingElement skips an optional target after the wait expires. Without a different missing-element policy, the guide says an absent target gets a centered popover. These are documented choices, so decide whether a missing control means "optional" or "something went wrong" in your product.

Selectors also matter after rendering. The interactive-tour guide says a replacement element matching the selector becomes the new target. An element object has nothing to look up after replacement. Prefer a stable selector when your framework replaces DOM nodes, the browser's objects representing page elements. That is the documented recovery boundary.

Action tours can get stuck on their own rules

Blocking clicks while waiting for a click creates a step that cannot complete. The action-driven-tour guide explicitly warns against that combination. disableActiveInteraction: "clicks" preserves hover behavior, but it blocks the same gesture that advanceOn: "click" needs. The docs say Driver.js warns in the console.

There is a second trap for menus: blocking a click cannot undo an earlier pointer press. The guide says onInteraction sees the click after pointerdown has already reached the app on highlighted and allowed elements. If your menu closes on that earlier event, rejecting the later click won't reopen it. This is event ordering described by the documentation, rather than a missing-target bug.

Going back also leaves the application in its current state. The docs recommend hiding Previous after an action where returning would confuse the user. A tour that teaches sending an invitation needs to account for the invitation already being sent. Your success condition belongs in the app: the guide's when callback checks the result after the application handles the event, and advance() can continue after asynchronous work finishes. The action recipes explain both mechanisms.

Interaction blocking is not a permission system

The action-tour documentation says key presses are not reported by onInteraction, so typing continues. Its interaction controls describe which gestures reach the page, including allowed elements and blocked clicks. Treat those as teaching controls. Application permissions and form validation still need to enforce what a user may do, independently of whether the tour is open.

Keyboard control, focus management and screen-reader announcements are advertised in the 1.14.0 package description. The configuration reference documents keyboard navigation and focus choices. If you change where keyboard focus goes or prevent closing, you are changing the interaction someone must use to finish the task. Accessibility belongs in the finished flow you ship, including the application's controls and your explanatory text.

Driver.js vs Shepherd.js, Intro.js and managed onboarding

Shepherd.js is the closest comparison in the OpenRefine discussion, while Intro.js was excluded there over licensing. Pick a Driver.js alternative by the work you want to own, then examine that product's current terms and integration path. The OpenRefine exchange is an evaluation by participants, not a comparative benchmark.

Candidate Reason to consider it What the comparison actually supports
Driver.js You prefer its code-defined steps and frontend-independent approach The OpenRefine evaluator preferred its understandable configuration
Shepherd.js You want another library for asynchronous guided steps abbe98 specifically describes promises and native event listeners, correcting the evaluator's omission
Intro.js You are comparing another page-onboarding library The OpenRefine evaluator rejected its AGPL terms for their needs; that is their licensing decision
userTourKit You want React hooks and packaged analytics or scheduling Its vendor comparison advertises those capabilities, but its Driver.js feature table needs corrections
Appcues and similar managed products Your product team needs visual configuration and workflow management The iTechGuides review recommends that broader category for this audience

The first three rows draw on the OpenRefine discussion. The last two reflect userTourKit's own positioning and iTechGuides' recommendation. These are reasons to shortlist products, rather than measured winners.

What the other reviews get wrong

The iTechGuides review and listing exclude checklists, but Driver.js 1.14.0 explicitly lists an onboarding checklist widget. Compare the review and listing with the newer npm package description. Their exclusion is outdated for that package.

The userTourKit comparison also says Driver.js lacks hints, element observation, screen-reader support, React-specific docs and a headless option. Each needs a narrower reading:

The vendor comparison contradicts itself on licensing too: it calls both libraries' cores MIT, then identifies userTourKit's core packages as BUSL-1.1 and source-available. Use its explicit package-license statement, rather than repeating the blanket MIT sentence. Driver.js's own package description says it is MIT licensed for personal and commercial use.

Questions people ask

Driver.js is a JavaScript library for adding tours, highlights, hints and onboarding checklists to a webpage, as the 1.14.0 package description explains.

What is Driver.js, and what can I build with it?

Driver.js can explain a single control, walk through a sequence or wait for a user action. The basic-usage guide shows tours and single highlights, while the action guide teaches tasks such as choosing a role and submitting an invitation.

Where are the Driver.js npm package, GitHub repository, and demos?

The Driver.js npm package is driver.js, the Driver.js GitHub repository is nilbuild/driver.js, and Driver.js demos are on driverjs.com. The package documentation links the docs and live demos.

Where can I find a practical Driver.js tour example?

LogRocket's Driver.js example adds contextual help to a dashboard search field and a tour to its components, with a linked working CodePen. For the current API, start with the official example using driver() and drive().

How do I use Driver.js inside React components?

Initialize after mounting, following the lifecycle workaround manurueda described in issue #22, and use the current setup and cleanup guidance. In the same thread, chrisk-7777 explains that converting JSX to an HTML string doesn't preserve React event handlers. A popover description isn't automatically a live React component.

How do I use Driver.js with Angular and conditionally rendered components?

Use the documented waiting and missing-target options for controls that appear after an action. The Angular 5 author of issue #162 hit a missing input after Edit, while the newer interactive-tour guide documents waitForElement and selector-based retargeting.

Should I choose Intro.js or Driver.js for page onboarding?

License fit can decide before interface details do: the OpenRefine evaluator rejected Intro.js's AGPL terms and continued comparing Driver.js with Shepherd. Their forum post explains that choice. Driver.js's package description states MIT licensing.

How do I install and initialize Driver.js in WeWeb using its NPM plugin?

The WeWeb author hit ReferenceError: driver is not defined and also reported "Cannot use import statement outside a module". The official installation guide distinguishes module imports from a CDN global. Those are different initialization paths. The WeWeb author reported failed initialization; the thread doesn't provide a completed WeWeb-specific recipe, so don't present a generic import as their solution.

Why does starting my tour show a dark background without a popover?

keke1123 reported that exact symptom in issue #258. A participant suggested stopping event propagation. The maintainer said v1.0 was rewritten from the ground up. He also said stopping propagation was no longer required and closed the issue. Don't add the historical workaround automatically to current code.

Why is my highlighted element invisible or white?

Issue #31 contains a positioned-parent stacking report, a maintainer fix and raisoblast's confirmation. Later comments concern plugin or CSS conflicts. In #9, lb13 confirmed that matching an anchor's background to its navbar solved white-text visibility. These historical cases had different causes and remedies.

How do I highlight targets created only after a user action?

waitForElement holds the current step while the next target appears. The interactive-tour guide documents the wait, fallback and skip options. Supply a selector for targets that may be replaced so the library can look up the replacement.

Can I run callbacks when users click Next, Previous, Close, or Done?

The configuration reference lists navigation, completion and destruction hooks. The request in issue #51 led to a maintainer reply pointing to simplified v1 lifecycle hooks; use the current reference to select the event you actually need.

Can I pause a tour while asynchronous operations create the next target?

The action guide documents calling advance() when the application finishes its work, and the interactive guide provides waiting for elements. Use the application-completion pattern when a successful save determines progress, and target waiting when appearance of the next control is sufficient.

What we have not tested yet

Our completed checks cover the repository harness and a README snippet executed with Node, not a browser walkthrough. We have not tested a complete React, Angular or WeWeb integration, mobile layouts, native dialogs, keyboard-only completion or a screen reader. The four YouTube entries have empty transcripts, so they supply no reproducible demonstration result. The Bilibili search title raises Intro.js versus Driver.js, without a transcript establishing the creator's verdict.

We have no measured onboarding completion, activation or support-reduction result. The LogRocket dashboard is a tutorial, the OpenRefine discussion is exploratory, and the WeWeb thread ends without a resolution. None supplies a production outcome to turn into a performance claim. Neither stars nor package downloads substitute for those outcomes.

We have not measured browser bundle size with JavaScript, required CSS and optional entries separated. Our recorded dependency count and disk footprint cover the workspace. We have no vulnerability-audit result or current WCAG conformance audit. Screen-reader announcements are a documented feature, not proof of conformance. The automatic recovery behavior described above comes from documentation, not a re-render test in our lab. The image label also leaves actual runtime and operating-system versions unconfirmed without the raw toolchain logs.

The next useful run is a browser task with a delayed target, an irreversible action and a keyboard-only completion path. Record the selected package version and application behavior at each step, including the target that never appears.

Alternatives

ProjectWhat it isPick it when
Shepherd.jsAnother guided-tour library discussed by the OpenRefine evaluators.Consider it when you want to compare configuration and asynchronous step handling; a forum respondent describes promise and event-listener support.
Intro.jsA page-onboarding alternative the OpenRefine evaluator considered.Consider it when its licensing fits your application; the OpenRefine evaluator rejected its AGPL terms for their needs.
AppcuesA managed onboarding product named in the editorial and OpenRefine discussions.Consider it when visual configuration and workflow management matter more than owning tour logic in JavaScript.

Sources

  1. driver.js
  2. Basic Usage - Driver.js
  3. Interactive Tours - Driver.js
  4. Action-Driven Tours - Driver.js
  5. Configuration - Driver.js
  6. Open source onboarding libraries
  7. How to use with React

More web reviews