driver.js
27,049
Stars
1,218
Forks
194
Watchers
1
Open Issues
MIT
许可证
TypeScript
语言
2018-03-11
创建时间
2026-11-11
最近更新
项目能做什么
轻量且零依赖的 JavaScript 库,用于在页面中创建引导聚焦流程。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<br /><br />
<h1 align="center"><img height="150" src="https://driverjs.com/mascot-head.png?v=1" /><br> Driver.js</h1>
<p align="center">
<a href="https://github.com/nilbuild/driver.js/blob/master/license">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" />
</a>
<a href="https://www.jsdelivr.com/package/npm/driver.js">
<img src="https://data.jsdelivr.com/v1/package/npm/driver.js/badge?style=rounded" alt="jsdelivr hits" />
</a>
<a href="https://npmjs.org/package/driver.js">
<img src="https://img.shields.io/npm/dm/driver.js" alt="downloads" />
</a>
</p>
<p align="center">
<b>Powerful, highly customizable library for Product Tours and Feature Introductions</b></br>
<sub>No external dependencies, light-weight, supports all major browsers and highly customizable </sub><br>
</p>
<br />
- **Simple**: is simple to use and has no external dependency at all
- **Light-weight**: is just 5kb gzipped as compared to other libraries which are +12kb gzipped
- **Highly customizable**: has a powerful API and can be used however you want
- **Highlight anything**: highlight any (literally any) element on page
- **Feature introductions**: create powerful feature introductions for your web applications
- **Focus shifters**: add focus shifters for users
- **User friendly**: Everything is controllable by keyboard
- **TypeScript**: Written in TypeScript
- **Consistent behavior**: usable across all browsers
- **MIT Licensed**: free for personal and commercial use
<br />
## Documentation
For demos and documentation, visit [driverjs.com](https://driverjs.com)
<br />
## So, yet another tour library?
**No**, it's more than a tour library. **Tours are just one of the many use-cases**. Driver.js can be used wherever you need some sort of overlay for the page; some common usecases could be: highlighting a page component when user is interacting with it to keep them focused, providing contextual help e.g. popover with dimmed background when user is filling a form, using it as a focus shifter to bring user's attention to some component on page, using it to simulate those "Turn off the Lights" widgets that you might have seen on video players online, usage as a simple modal, and of-course product tours etc.
Driver.js is written in Vanilla TypeScript, has zero dependencies and is highly customizable. It has several options allowing you to change how it behaves and also **provides you the hooks** to manipulate the elements as they are highlighted, about to be highlighted, or deselected.
> Also, comparing the size of Driver.js with other libraries, it's the most light-weight, it is **just ~5kb gzipped** while others are 12kb+.
<br>
## Developing locally
The library lives in `src/`. To try your changes against a set of live examples, run the playground — an Astro app in `playground/` that imports the library straight from source, so edits hot-reload instantly:
```sh
pnpm install
pnpm run playground:install
pnpm dev
```
Each ex
阅读完整原文
商业机会分析 AI 生成
无代码可视化产品引导 SaaS(Chrome 插件 + 脚本托管)
| 产品构想 | 基于 driver.js 轻量无依赖的特性,开发浏览器可视化选取插件与云端配置后台。产品或运营人员无需前端发版,通过点选页面元素即可生成并发布产品引导流程(推测)。 |
| 核心功能 | 页面 DOM 元素可视化点选、步骤文案与样式配置、单行 JS 代码嵌入发布、基础条件触发规则。 |
| 目标用户 | 缺乏前端人力排期的中小 SaaS 团队产品经理、运营人员及独立开发者(推测)。 |
| 难度/周期 | 中等(需处理 SPA 动态路由、DOM 变化稳定性及跨域嵌入兼容问题)(推测) · 1-2 个月完成 MVP(推测) · 成本:极低,主要为轻量级后端配置存储与静态 CDN 托管成本(推测) |
| 收费模式 | 按月活引导触发次数(MAU)或站点数量采用 Freemium 订阅制收费(推测)。 |
| 竞争风险 | 成熟商业竞品较多;浏览器 DOM 结构频繁改动可能导致引导定位失效;需与纯开源自写代码做价值区隔。 |
| 依据 | 尚需验证的假设 |
用户引导转化漏斗与行为分析插件
| 产品构想 | 在 driver.js 聚焦与引导流程之上封装数据埋点与分析看板,帮助团队量化每个引导步骤的跳过率、完成率及对后续留存的影响(推测)。 |
| 核心功能 | 引导步进事件自动采集、步骤流失漏斗图、A/B 测试不同引导文案效果、特定用户分群触发。 |
| 目标用户 | 关注 Onboarding 转化率的 SaaS 增长团队与产品负责人(推测)。 |
| 难度/周期 | 中低(前端事件拦截较简单,重点在轻量级数据统计看板设计)(推测) · 1 个月左右完成基础闭环(推测) · 成本:中低,随事件上报量增加会产生时序或分析型数据库存储成本(推测) |
| 收费模式 | 按月度事件追踪量(Events)分档订阅收费(推测)。 |
| 竞争风险 | 用户可能更倾向于直接使用通用埋点工具(如统计分析 SaaS)而非为引导单独付费。 |
| 依据 | AI推测 |
面向多框架的高级 UI 模板库与定制咨询服务
| 产品构想 | 利用 MIT 协议允许商用的特点,针对 React/Vue/Next.js 等主流生态构建开箱即用的高颜值引导弹窗模板库(含暗黑模式、多语言、无障碍适配),并提供企业定制对接服务(推测)。 |
| 核心功能 | 主流前端框架组件化封装、多种现代设计风格主题包(如适配主流 CSS 框架)、复杂交互流程模板、私有化定制支持。 |
| 目标用户 | 追求快速上线且注重 UI 一致性的外包团队、初创公司前端工程师(推测)。 |
| 难度/周期 | 低(纯前端工程封装与设计能力要求,无复杂运维)(推测) · 2-4 周(推测) · 成本:极低,主要为个人时间与展示站域名/托管费用(推测) |
| 收费模式 | 模板包一次性买断(Lifetime Deal)或企业授权许可,叠加按小时/项目计费的定制集成服务(推测)。 |
| 竞争风险 | 前端开发者有能力自行封装基础样式,付费天花板取决于模板设计与复杂场景的省时程度。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| chrisneagu/FTC-Skystone-Dark-Angels-Romania-2020 | 中文介绍暂未生成 NOTICE This repository contains the public FTC SDK for the S |
325 | Java |
| microsoft/hol-azure-machine-learning | 中文介绍暂未生成 Introduction to Machine Learning and Azure Machine Learning |
289 | JavaScript |
| Sfedfcv/redesigned-pancake | 中文介绍暂未生成 Skip to content github / docs Code Issues 80 Pull requests 3 |
278 | - |
| nvisium-jack-mannino/OWASP-GoatDroid-Project | 中文介绍暂未生成 *This project is no longer maintained* OWASP GoatDroid is a |
256 | Java |
| Aastha2104/Parkinson-Disease-Prediction | 中文介绍暂未生成 Introduction Parkinson’s Disease is the second most prevale |
197 | Python |
| jettbrains/-L- | 中文介绍暂未生成 W3C Strategic Highlights September 2019 This report was pr |
169 | - |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2018-03-11,近 30 天仍在推送,发布过 28 个 Release |
| 社区活跃 | Star 27,049 / Fork 1,218 / Issue 1(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/nilbuild/driver.js.git cd driver.js # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。