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

@andreasnicolaou/ngx-toastify

v1.0.1

Published

Angular wrapper for @andreasnicolaou/toastify — a lightweight toast notification manager.

Readme

NgxToastify — @andreasnicolaou/ngx-toastify

Angular wrapper for @andreasnicolaou/toastify — a lightweight, customizable toast notification manager.

GitHub contributors GitHub License GitHub package.json version NPM Downloads

📦 Installation

npm install @andreasnicolaou/ngx-toastify @andreasnicolaou/toastify

Make sure both ngx-toastify and its underlying core package are installed.

🚀 Quick Start

  1. Import NgxToastifyModule in your AppModule
import { NgxToastifyModule } from '@andreasnicolaou/ngx-toastify';

@NgModule({
  imports: [
    NgxToastifyModule.forRoot('top-right', {
      maxToasts: 3,
      customClasses: 'my-toast',
    }),
  ],
})
export class AppModule {}

forRoot() is optional. If omitted, it will use default values.

  1. Use the NgxToastifyService in your components
import { Component } from '@angular/core';
import { NgxToastifyService } from '@andreasnicolaou/ngx-toastify';

@Component({
  selector: 'app-example',
  template: `<button (click)="showToast()">Show Toast</button>`,
})
export class ExampleComponent {
  constructor(private ngxToastifyService: NgxToastifyService) {}

  showToast() {
    this.ngxToastifyService.success({ title: 'Success!', message: 'This is a toast message.' });
  }
}

🧩 Features

  • Simple toast API: success, error, info, warning, default
  • Uses @andreasnicolaou/toastify under the hood
  • Optional configuration using forRoot()
  • Type-safe toast options
  • Custom CSS class support

🛠 API

NgxToastifyService Methods

| Method | Parameters | Description | | --------- | ---------------------------------------------------------------- | --------------------- | | default | { title: string, message?: string }, options?: ToastifyOptions | Shows a default toast | | light | { title: string, message?: string }, options?: ToastifyOptions | Shows a light toast | | success | { title: string, message?: string }, options?: ToastifyOptions | Shows a success toast | | error | { title: string, message?: string }, options?: ToastifyOptions | Shows an error toast | | warning | { title: string, message?: string }, options?: ToastifyOptions | Shows a warning toast | | info | { title: string, message?: string }, options?: ToastifyOptions | Shows an info toast |

  • title: Required — the headline of the toast
  • message: Optional — the body text (defaults to '')
  • options: Optional — configuration object from the core @andreasnicolaou/toastify package

🎨 Styles

To include the styles from @andreasnicolaou/toastify, add the CSS manually:

// angular.json
"styles": [
  "node_modules/@andreasnicolaou/toastify/dist/styles.css"
]

📦 Contribution

Contributions are welcome! If you encounter issues or have ideas to enhance the library, feel free to submit an issue or pull request.