MCPcopy
hub / github.com/usablica/intro.js

github.com/usablica/intro.js @v8.3.2 sqlite

repository ↗ · DeepWiki ↗ · release v8.3.2 ↗
270 symbols 728 edges 112 files 103 documented · 38%
README

Intro.js

Build Status npm

User Onboarding and Product Walkthrough Library

Where to get

You can obtain your local copy of Intro.js from:

1) This GitHub repository, using git clone https://github.com/usablica/intro.js.git

2) Using yarn yarn add intro.js

3) Using npm npm install intro.js --save

4) Download it from CDN (1, 2)

How to use

Intro.js can be added to your site in three simple steps:

1) Include intro.js and introjs.css (or the minified version for production) in your page. Use introjs-rtl.min.css for Right-to-Left language support.

CDN hosted files are available at jsDelivr (click Show More) & cdnjs.

2) Add data-intro and data-step to your HTML elements. To add hints you should use data-hint attribute.

For example:

```html


See all attributes [here](https://introjs.com/docs/intro/attributes/).

**3)** Call this JavaScript function:
```javascript
introJs().start();

Optionally, pass one parameter to introJs function to limit the presentation section.

For example introJs(".introduction-farm").start(); runs the introduction only for elements with class='introduction-farm'.

Documentation

Please visit Documentation.

Using with:

Intro.js has many wrappers for different purposes. Please visit Documentation for more info.

Build

First you should install nodejs and npm, then first run this command: npm install to install all dependencies.

Now you can run this command to minify all static resources:

npm run build

Contributors ✨

Afshin Mehrabani 💻 📖 bozdoz 💻 📖

Support/Discussion

Usage Trends

License

Commercial license

If you want to use Intro.js for a commercial application, theme or plugin the commercial license is the appropriate license. With this option, your source code is kept proprietary. Purchase a commercial license at introjs.com

Open-source license

GNU AGPLv3

Extension points exported contracts — how you extend this code

Package (Interface)
(no doc) [2 implementers]
src/packages/package.ts
Events (Interface)
* DOMEvent Handles all DOM events * * methods: * * on - add event handler * off - remove event
src/util/DOMEvent.ts
Chainable (Interface)
(no doc)
cypress/support/index.d.ts
Dependencies (Interface)
* Interface representing dependencies with sets for getters and setters.
src/packages/dom/index.ts
Window (Interface)
(no doc)
cypress/support/index.d.ts
State (Interface)
(no doc)
src/packages/dom/index.ts
TourOptions (Interface)
(no doc)
src/packages/tour/option.ts
HintOptions (Interface)
(no doc)
src/packages/hint/option.ts

Core symbols most depended-on inside this repo

start
called by 62
src/packages/tour/tour.ts
getOption
called by 56
src/packages/package.ts
setOptions
called by 51
src/packages/package.ts
getMockTour
called by 28
src/packages/tour/mock.ts
getCurrentStep
called by 21
src/packages/tour/tour.ts
exit
called by 20
src/packages/tour/tour.ts
nextStep
called by 18
cypress/support/index.d.ts
nextStep
called by 15
src/packages/tour/steps.ts

Shape

Function 147
Method 107
Class 8
Interface 8

Languages

TypeScript100%

Modules by API surface

src/packages/tour/tour.ts58 symbols
src/packages/hint/hint.ts41 symbols
src/packages/dom/index.test.ts23 symbols
src/packages/dom/index.ts19 symbols
src/packages/tour/components/TourTooltip.ts11 symbols
tests/jest/helper.ts10 symbols
src/packages/package.ts6 symbols
src/index.ts6 symbols
src/util/DOMEvent.ts5 symbols
src/packages/tooltip/tooltip.ts5 symbols
src/util/queryElement.ts4 symbols
src/util/cookie.ts4 symbols

Dependencies from manifests, versioned

@babel/core7.12.3 · 1×
@babel/preset-env7.20.2 · 1×
@babel/preset-typescript7.21.0 · 1×
@rollup/plugin-commonjs24.0.1 · 1×
@rollup/plugin-json6.0.0 · 1×
@rollup/plugin-node-resolve15.0.1 · 1×
@rollup/plugin-typescript11.1.2 · 1×
@types/jest29.4.2 · 1×
@types/node20.4.9 · 1×
autoprefixer9.0.0 · 1×
babel-jest29.2.2 · 1×
bootstrap3.3.7 · 1×

For agents

$ claude mcp add intro.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact