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

ngx-pulse-toast

v0.0.9

Published

Angular toast notification library

Downloads

48

Readme

🔥 NgxPulseToast – Angular Toast Notification Library

NgxPulseToast is a lightweight and flexible Angular toast notification library that helps you display success, error, warning, and information messages beautifully. It includes 3 customizable toast styles, supports animations, progress bars, and user interaction for confirmation alerts.


✨ Features

  • 🎨 3 unique toast styles:
    • Style 1 (basic) – Minimalistic and clean.
    • Style 2 (modern) – Vibrant design with background effects.
    • Style 3 (elegant) – Compact with clean buttons layout.
  • Progress bar support with configurable duration.
  • 🔔 Supports different toast types: success, error, warning, info.
  • ⚡ Works with Angular v15+.
  • 🖱️ Fully reactive: Listen to user actions (Accept/Cancel).
  • 🌗 Customizable button labels.
  • Buttons can be enabled or disabled in all styles using the withActions option.
  • 🎨 Tailwind CSS supported – Bootstrap will be supported in the future.

📦 Installation

Install the package via npm:

npm install ngx-pulse-toast

Import the module into your Angular app:

import { NgxPulseToastModule } from 'ngx-pulse-toast';

@NgModule({
  imports: [NgxPulseToastModule, ...],
})
export class AppModule {}

🚀 Basic Usage

Import it into html file first

<ngx-pulse-toast [position]="'bottom-center'" [showIcon]="true" [showProgressBar]="true"
 [design]="'basic'"></ngx-pulse-toast>

and then Inject the service and show a toast:

constructor(private toast: ToastService) {}

showToast() {
  this.toast.show('Hello from toast!', 'success');
}

✅ With Accept/Cancel Buttons (Available in All Styles)

this.toast
  .show("Do you want to continue?", "success", {
    withActions: true,
    acceptButtonLabel: "Yes",
    cancelButtonLabel: "No",
  })
  .subscribe((result) => {
    if (result === "accept") {
      console.log("✅ User accepted the toast!");
    } else {
      console.log("❌ User canceled the toast.");
    }
  });

🎨 Toast Styles

Style 1 (basic)

Minimalistic design with icon, title, message, optional buttons, and progress bar.

Style 1 Preview


Style 2 (modern)

Visually enhanced toast with background elements, shadows, larger layout, optional buttons, and progress bar.

Style 2 Preview


Style 3 (elegant)

Compact and modern layout with buttons and progress bar.

Style 3 Preview


⚙️ Configuration Options

The show() method uses a configuration object for optional parameters:

show(
  message: string,
  type: 'success' | 'error' | 'info' | 'warning',
  options?: {
    duration?: number;
    withActions?: boolean;
    acceptButtonLabel?: string;
    cancelButtonLabel?: string;
  }
)

| Option | Type | Default | Description | | ------------------- | --------- | ------------ | --------------------------------------------------------------------------------------------------------- | | message | string | - | Toast message text. | | type | string | info | Toast type: success, error, warning, info. | | duration | number | 3000 | Auto-close duration (ms). | | withActions | boolean | false | Show Accept/Cancel buttons. | | acceptButtonLabel | string | Show Me | Label for the accept button. | | cancelButtonLabel | string | Cancel | Label for the cancel button. | | position | string | top-center | Position Locations : top-center, bottom-center, top-left, bottom-left,top-right, bottom-right | | showIcon | boolean | true | Show / Hide toast Icon. | | showProgressBar | boolean | true | Show / Hide toast progressbar. | | design | string | basic | Toast design : basic, modern , elegent. |


🔧 Building from Source

Clone the repository and build the library:

ng build ngx-pulse-toast

The build output will be placed in the dist/ directory.


🚀 Publishing to NPM (for maintainers)

cd dist/ngx-pulse-toast
npm publish

📚 Additional Resources


🙌 Author

NgxPulseToast is developed and maintained by Kashif Imran.
Contributions and feedback are welcome!


📜 License

This project is licensed under the MIT License – free to use and modify for commercial and personal projects.