EnjoyHint is a browser library for step-by-step tours, hints, and element highlights on websites and web apps. It ships as an npm package with ESM, CommonJS, and UMD builds.
Overview
EnjoyHint helps developers add interactive tutorials and on-page hints to a site or web application. Tours can spotlight UI elements, show descriptions, and walk users through a linear sequence of steps.
The current generation is built with Vite and TypeScript and has no runtime dependencies on jQuery or other libraries. Rendering uses native DOM APIs and SVG for overlays, spotlights, arrows, scrolling, and events. Installing through npm provides ESM, CommonJS, and minified UMD bundles; importing the package can inject required styles at runtime, while script-tag UMD usage still loads a separate CSS file.
Configuration is an ordered array of steps. Each step can tie an event and selector to hint text, or omit a selector for a full-screen dimmed step with centered text. Steps support shapes such as circle or rect, margins, timeouts, custom and keyboard-driven advancement, skip and navigation buttons, RTL tour chrome via a dir option, HTML in descriptions, and targets inside same-origin iframes including nested frames.
Angular can import the ESM or CJS build like other libraries; tours should start after targets exist and be torn down when the host view goes away. Highlights inside Angular Material dialogs are supported. A React hooks integration is planned but not part of the 5.0.0 core release.
Key features
- Linear step-by-step tours
- SVG spotlight and arrows
- No runtime npm dependencies
- ESM, CJS, and UMD builds
- RTL tour chrome option
- Same-origin iframe targets
- Targetless full-screen steps
- Angular and Material dialog support
Use cases
- Onboarding tours in web applications
- Highlighting UI elements with hints
- Guided walkthroughs on marketing sites
- In-app feature discovery scripts