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

jet-snackbar

v2.0.0

Published

A customizable Angular snackbar library built with Angular Material, providing success, warning, and error notification types with beautiful theming.

Readme

JetSnackbar

A customizable Angular snackbar library built with Angular Material, providing success, warning, and error notification types with beautiful theming.

Features

  • 🎨 Pre-built themes for success, warning, and error notifications
  • 🔧 Fully customizable styling
  • 📱 Responsive design
  • ⚡ Built with Angular 20 and Angular Material
  • 🚀 Easy to integrate and use

Installation

npm install jet-snackbar

Dependencies

This library requires Angular Material. If you haven't installed it yet:

ng add @angular/material

Setup

1. Import the Module

Add JetSnackbarModule to your app module:

import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { JetSnackbarModule } from "jet-snackbar";

import { AppComponent } from "./app.component";

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, JetSnackbarModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

2. Import the Styles

Add the theme styles to your global styles.scss file:

// Import jet-snackbar themes
@use "jet-snackbar/src/lib/themes.scss";

Usage

Inject the Service

import { Component } from '@angular/core';
import { JetSnackbarService } from 'jet-snackbar';

@Component({
  selector: 'app-example',
  templateUrl: './example.component.html'
})
export class ExampleComponent {
  constructor(private jetSnackbarService: JetSnackbarService) {} 
  
  Or
  
  private jetSnackbarService = inject(JetSnackbarService)


  this.jetSnackbarService.showSnackbar(title: string, msg: string, color: "snackbar-success" | "snackbar-error" | "snackbar-warning", duration: number, button?: string )

example

this.jetSnackbarService.showSnackbar("Success", "Form successfully updated", "snackbar-success", 3000, "Close" )
}

Service Methods

The JetSnackbarService provides the following methods:

showSnackbar(title: string, msg: string, color: "snackbar-success" | "snackbar-error" | "snackbar-warning", duration: number, button?: string )

Shows a notification with styling based on the color parameter.

Styling

The library comes with pre-built CSS themes. You can customize the colors by overriding the CSS custom properties:

:root {
  --success-color: #4caf50; // Green for success
  --warning-color: #ff9800; // Orange for warnings
  --error-color: #f44336; // Red for errors
}

Custom Styling

You can override the default styles by targeting the snackbar classes:

.snackbar-success {
  --mdc-snackbar-container-color: var(--success-color) !important;
  color: white;

  .mat-simple-snackbar-action {
    color: white;
  }
}

.snackbar-warning {
  --mdc-snackbar-container-color: var(--warning-color) !important;
  color: white;

  .mat-simple-snackbar-action {
    color: white;
  }
}

.snackbar-error {
  --mdc-snackbar-container-color: var(--error-color) !important;
  color: white;

  .mat-simple-snackbar-action {
    color: white;
  }
}

Peer Dependencies

  • @angular/core: ^20.0.0
  • @angular/material: ^20.0.0
  • @angular/cdk: ^20.0.0

Compatibility

  • Angular 20+
  • Angular Material 20+

Development

This library was built with Angular CLI version 19.

Building

ng build jet-snackbar

Testing

ng test jet-snackbar

Publishing

ng build jet-snackbar
cd dist/jet-snackbar
npm publish

License

MIT License

Support

For issues and feature requests, please create an issue on the project repository.