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

@naniteninja/guarantee-ionic

v0.0.1

Published

A reusable Angular component library for building guided tutorials, walkthroughs, and UI overlays with interactive button groups and contextual instructions.

Readme

📘 Guarantee Tutorial Library

A reusable Angular component library for building guided tutorials, walkthroughs, and UI overlays with interactive button groups and contextual instructions.


🚀 Installation

Make sure you have Angular 17+ in your project. Then install the library and required dependencies:

npm install guarantee-tutorial

You will also need to install the following peer dependencies if not already present:

npm install @angular/material-moment-adapter moment ngx-bootstrap @ngx-translate/core @ngx-translate/http-loader leader-line angular-walkthrough

📦 Required Imports & Configuration

Add required scripts in angular.json. In your app’s angular.json, ensure you include the leader-line script:

"scripts": ["node_modules/leader-line/leader-line.min.js"]

Add translation support

import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
import { HttpClient } from '@angular/common/http';

export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}

export const appConfig: ApplicationConfig = {
providers: [
    importProvidersFrom(
    HttpClientModule,
    TranslateModule.forRoot({
        loader: {
        provide: TranslateLoader,
        useFactory: HttpLoaderFactory,
        deps: [HttpClient]
        }
    })
    ),
    provideRouter(routes),
    provideHttpClient()
]
};

🧩 Guarantee Tutorial Properties

import component to standalone component

// app.component.ts
import { GuaranteeTutorialComponent } from 'guarantee-tutorial';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [
    RouterOutlet,
    GuaranteeTutorialComponent,
    HttpClientModule
  ],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})

in html template include the component

// app.component.html
<lib-guarantee-tutorial 
    [buttonGroup]="[]"
    [tutorialWalkthrough]="{}">
</lib-guarantee-tutorial>

🔘 Button Group Configuration

Properties of Button Group:

| Name | Type | Description | |-----------|-------------|------------------------------| | id | string | Unique ID for button group | | layout | string | 'vert' or 'arc' layout | | buttons | buttons[] | List of button objects |

Properties of a Button:

| Name | Type | Description | |----------------------|-----------|----------------------------------------------------------------------------| | id | string | Unique button ID | | icon | string | (Optional) Icon image path | | maticon | string | (Optional) Material icon name | | label | string | Label text or i18n key app.button.label | | hideTitle | boolean | Hide label (default: false) | | size | string | Size options: 'xs', 'sm', 'md', 'lg', 'xl', 'xxl' | | action | string | Button click function name | | visible | boolean | Show/hide button | | main | boolean | Set as main button in 'arc' layout | | progress | boolean | Show progress bar | | progressPercentage | number | Required when progress is enabled | | offset.x | number | Horizontal offset | | offset.y | number | Vertical offset |

⚠️ App restart required if new icons/images are added.


🌐 i18n Button Labeling

  1. Files located at:
src/assets/i18n
  1. Add labels under app.button key:
{
  "app": {
    "button": {
      "next": "Next",
      "back": "Back"
    }
  }
}
  1. Falls back to default label if i18n not found.

🧭 Walkthrough Configuration

The walkthrough configuration are structured as following:

[Screen Name] : steps[]

Step Object:

| Name | Type | Description | |--------------------|-----------|------------------------------------------| | id | string | Step ID | | prevStepId | string | Previous step ID | | nextStepId | string | Next step ID | | focusElementId | string | HTML target selector | | focusBackdrop | boolean | Enable dark focus overlay | | contentAlign | string | 'left', 'right', 'center' | | contentVertAlign | string | 'top', 'bottom', 'center' | | showArrow | boolean | Show arrow indicator | | descr | descr[] | Description objects |

Description Object:

| Name | Type | Description | |---------|----------|------------------------------| | text | string | Walkthrough description text | | style | Object | Inline CSS using ngStyle |