npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@andresciceri/ngx-intro

v0.0.4

Published

Angular wrapper for intro.js

Readme

ngx-intro

An Angular library that provides a simple integration of Intro.js to create interactive guides and step-by-step tutorials in Angular applications.

npm version License: MIT

Features

  • Complete integration of Intro.js with Angular
  • Injectable service to start, control, and customize interactive guides
  • Support for multiple visual themes
  • Simple and easy-to-use API
  • Fully typed with TypeScript

Installation

npm i @andresciceri/ngx-intro --save

CSS Styles Setup

To include the Intro.js styles in your Angular application, add the following import to your styles.css or styles.scss file:

@import '../../../node_modules/@andresciceri/ngx-intro/assets/introjs.css';

If you want to use a specific theme from Intro.js, also add the corresponding import:

@import '../../../node_modules/@andresciceri/ngx-intro/assets/introjs-modern.css';

Basic Usage

  1. Import the module in your Angular application:
import { IntrojsService } from '@andresciceri/ngx-intro';
  1. Inject the service into your component:
constructor(private introService: IntrojsService) { }
  1. Define your steps and start the tour:
ngOnInit() {
  const steps = [
    {
      element: '#step1',
      intro: 'This is the first step',
      step: 0,
      title: 'First Step',
      position: 'floating',
      scrollTo: 'element',
    },
    {
      element: '#step2',
      intro: 'This is the second step',
      step: 1,
      title: 'Second Step',
      position: 'floating',
      scrollTo: 'element',
    }
  ];
  
  this.introService.startTour(steps);
}

API

IntrojsService

  • startTour(steps: IntroStep[], options?: Options): void - Starts a tour with the defined steps and options
  • exitTour(force: boolean): void - Exits the current tour
  • onComplete(callback: () => void): void - Sets a callback for when the tour is completed
  • onExit(callback: () => void): void - Sets a callback for when the tour is exited
  • applyTheme(themeUrl: string): void - Applies a custom theme to change the appearance of the tour

Available Themes

The library includes the following themes that can be applied with applyTheme():

  • introjs.css - Standard theme
  • introjs-dark.css - Dark theme
  • introjs-flattener.css - Flat theme
  • introjs-modern.css - Modern theme
  • introjs-nassim.css - Nassim theme
  • introjs-nazanin.css - Nazanin theme
  • introjs-royal.css - Royal theme

Examples

import { Component, OnInit } from '@angular/core';
import { IntrojsService } from '@andresciceri/ngx-intro';

@Component({
  selector: 'app-demo',
  template: `
    <div id="step1">First element</div>
    <div id="step2">Second element</div>
    <button (click)="startDemo()">Start Demo</button>
  `
})
export class DemoComponent implements OnInit {
  
  constructor(private introService: IntrojsService) {}
  
  ngOnInit() {
    // Apply a theme
    this.introService.applyTheme('assets/introjs-dark.css');
    
    // Configure callbacks
    this.introService.onComplete(() => {
      console.log('Tour completed');
    });
    
    this.introService.onExit(() => {
      console.log('Tour cancelled');
    });
  }
  
  startDemo() {
    const steps = [
      {
        element: '#step1',
        intro: 'First step of the tour',
        title: 'Step 1',
        position: 'bottom'
      },
      {
        element: '#step2',
        intro: 'Second step of the tour',
        title: 'Step 2',
        position: 'right'
      }
    ];
    
    // Additional options
    const options = {
      showStepNumbers: true,
      exitOnOverlayClick: false,
      showBullets: true
    };
    
    this.introService.startTour(steps, options);
  }
}

Development

This library was generated with Nx.

Running unit tests

nx test ngx-intro-js

License

MIT