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

goey-toast-angular

v1.2.7

Published

Angular-native gooey toast notifications inspired by goey-toast

Readme

goey-toast-angular

Angular-native gooey toast notifications inspired by goey-toast.

Status

  • ✅ Buildable Angular library (ng-packagr)
  • ✅ Unit tests (Vitest + coverage)
  • ✅ CI workflow (test + build)
  • ✅ npm-ready package metadata
  • ✅ Example app snippets in examples/

Install

npm install goey-toast-angular

Quick start

import { Component, inject } from '@angular/core';
import { GoeyToasterComponent, GoeyToastService } from 'goey-toast-angular';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [GoeyToasterComponent],
  template: `
    <goey-toaster position="bottom-right" />
    <button (click)="save()">Save</button>
  `,
})
export class AppComponent {
  private toast = inject(GoeyToastService);

  save() {
    this.toast.success('Saved!', { description: 'Your changes are synced.' });
  }
}

CSS Assets

ng-package.json ships these style assets:

  • goey-toaster.component.css
  • goey-toast-item.component.css

Angular should normally apply component styles automatically. If your consumer build strips or externalizes library styles, include both assets explicitly:

@import 'goey-toast-angular/goey-toaster.component.css';
@import 'goey-toast-angular/goey-toast-item.component.css';

Or add the same package-root paths (goey-toast-angular/goey-toaster.component.css and goey-toast-angular/goey-toast-item.component.css) to the consumer app's angular.json styles array.

API

GoeyToastService

  • show(title, options?)
  • success(title, options?)
  • error(title, options?)
  • warning(title, options?)
  • info(title, options?)
  • loading(title, options?)
  • dismiss(id?)
  • update(id, patch)
  • setDefaults({ duration, spring, bounce, ... })
  • promise(promise, { loading, success, error }, options?)

Common GoeyToastOptions fields include:

  • fillColor, borderColor, borderWidth
  • typeColors (Partial<Record<GoeyToastType, string>>) for per-type tone overrides
  • radius ({ pill?: number; body?: number; action?: number | string })
  • timing.displayDuration, spring, bounce

GoeyToasterComponent

<goey-toaster position="bottom-right"></goey-toaster>

position supports:

  • top-left
  • top-center
  • top-right
  • bottom-left
  • bottom-center
  • bottom-right

Promise toast example

this.toast.promise(apiCall(), {
  loading: 'Saving...',
  success: () => 'Saved successfully',
  error: (e) => `Failed: ${e?.message ?? 'Unknown error'}`,
});

Development

npm install
npm test
npm run build

Release flow (automated)

This repo uses:

  • release-please.yml to open/update release PRs, create GitHub Releases, and publish to npm
  • publish.yml as a manual fallback publish workflow (workflow_dispatch)

Typical flow:

  1. Merge feature/fix PRs into master
  2. Release Please updates/opens the release PR
  3. Squash-merge the release PR
  4. GitHub Release is created
  5. publish.yml publishes to npm via Trusted Publishing (OIDC)

Live examples

Publishing to npm

  1. Login:
npm login
  1. Optional dry run:
npm pack --dry-run
  1. Publish:
npm publish --access public

If the unscoped name is taken later, use a scoped package name like @malachibazar/goey-toast-angular.

License

MIT